#include <node.h>
Public Member Functions | |
Node (const T &=T()) | |
void | setObject (const T &) |
T & | getObject () |
void | setNextPtr (Node< T > *) |
Node< T > * | getNextPtr () const |
Constructor. Stores the object, which may be the default object, in this node. Sets this node's next pointer to null.
object | the object to be stored in this node |
void Node< T >::setObject | ( | const T & | object | ) |
Sets the object of this node.
object | the object to be stored in this node |
T & Node< T >::getObject | ( | ) |
Returns a reference to the object stored in this node
Sets the next pointer of this node.
nextPtr | the address to be stored in this node |
Returns the pointer stored in this node.