Revision: 9035
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at October 17, 2008 22:56 by itsok2kry
Initial Code
template < class T > class LinkedList; template < class T > class LinkedNode { private: T value; // our generic value LinkedList< T > * list; // the linked list we're part of LinkedNode< T > * previousNode; // the previous node LinkedNode< T > * nextNode; // the next node public: LinkedNode< T >( LinkedList< T > plist, LinkedNode< T > pNode, T * val ); // constructor LinkedNode< T > * next( void ); // return the next node LinkedNode< T > * previous( void ); // return the previous node T getValue( void ); // return the value we're holding void setNextNode( LinkedNode< T > next ); };
Initial URL
Initial Description
Initial Title
Linked List (LinkedNode.h)
Initial Tags
Initial Language
C++