ListNode
LinkedList.h

ListNode

A node of a linked list
Description
ListNode should be a parent class for any derived class which need to incorporate
the functionality of a linked list. To incorporate a linked list into
a class, the class should first inherit from ListNode using the format
class SomeDataClass : public ListNode<SomeDataClass>. The class may then be
instanced using the LinkedList template like so: LinkedList<SomeDataClass> MyListOfData;
Definition
template <typename ELEMENT> class ListNode : public ListNodeBase
Base Classes
ListNodeBase Used internally to encapsulate functionality that is independent of the template parameter.
Contructor
ListNode();
Member Functions
ListNode::GetPreviousNodeReturns a pointer to the prior element in the list
ListNode::GetNextNodeReturns a pointer to the next element in the list
Operators
const ELEMENT& operator=(const ListNode<ELEMENT> &source);Returns a copy of the requested element. In order to ensure proper functionality of this
operator, the ELEMENT class should provide an assignment operator, which should invoke
the assignment operator of the base class, using the format ListNode::operator=(*this);.
See Also
LinkedList