14 template <
typename Data>
class List;
21 template <
typename Data>
Node< Data > * next() const
Get the next pointer.
Data & data()
Get a reference to the associated Data object.
void setPrev(Node< Data > *prev)
Set pointer to the previous Node.
Node()
Default constructor.
void attachNext(Node< Data > &other)
Set pointers connecting the other node after this node.
List< Data > & list() const
Get a reference to the List.
Node(const Node< Data > &other)
Copy constructor.
Node< Data > * prev() const
Get the previous pointer.
Utility classes for scientific computation.
void setList(List< Data > *list)
Set the list.
void clear()
Nullify previous and next pointers, and nullify the list pointer.
void attachPrev(Node< Data > &other)
Set pointers connecting the other node before this node.
Linked list class template.
Linked List Node, class template.
void setNext(Node< Data > *next)
Set pointer to the next Node.
void setList(List< Data > &list)
Set the list.
const Data & data() const
Get a const reference to the associated Data.