 |
Xyris
0.5
|
Go to the documentation of this file.
145 while ((back = RemoveBack())) {
153 InsertBefore(head, val);
164 InsertAfter(tail, val);
196 if (newNode->
Next()) {
void InsertBefore(LinkedListNode< T > *next, T val)
LinkedListNode< T > * head
LinkedListNode * Next()
Get the next node in the linked list.
LinkedListNode * Previous()
Get the previous node in the linked list.
LinkedListNode(T v, LinkedListNode *n, LinkedListNode *p)
Construct a new Linked List Node object.
LinkedListNode< T > * RemoveBack()
LinkedListNode< T > * Tail()
Get pointer to the tail node.
void SetNext(LinkedListNode *n)
Set the node's next pointer.
T & Data()
Return the data stored by the node.
void SetData(T v)
Set the node's data.
size_t Count()
Get the number of items in the linked list.
void SetPrevious(LinkedListNode *n)
Set the node's previous pointer.
LinkedListNode()
Construct a new Linked List Node object.
LinkedListNode< T > * tail
bool IsEmpty()
Check if the linked list is empty.
LinkedListNode< T > * RemoveFront()
LinkedListNode< T > * Head()
Get pointer to the head node.
void InsertAfter(LinkedListNode< T > *prev, T val)
LinkedListNode< T > * RemoveBefore(LinkedListNode< T > *node)
void Remove(LinkedListNode< T > *del)
LinkedListNode(T v)
Construct a new Linked List Node object.
LinkedListNode< T > * RemoveAfter(LinkedListNode< T > *node)