|
libUTL++
|
Singly-linked list node. More...
#include <SlistNode.h>
Public Member Functions | |
| SlistNode () | |
| Constructor. | |
| SlistNode (const Object *object) | |
| Constructor. More... | |
| void | addAfter (SlistNode *node) |
| Add self after the given node. More... | |
| void | addBefore (SlistNode *node) |
| Add self before the given node. More... | |
| Object * | get () const |
| Get the contained object. More... | |
| bool | isTail () const |
| Determine whether self is the tail node. More... | |
| bool | isSentinelTail () const |
| Determine whether self is a "sentinal" tail node. More... | |
| SlistNode * | next () const |
| Get the next node (= self if self is tail node). More... | |
| void | setNext (SlistNode *node) |
| Set the next node. More... | |
| SlistNode * | remove (SlistNode *prev=nullptr) |
| Remove self from the list. More... | |
| void | set (const Object *object) |
| Set the contained object. More... | |
Singly-linked list node.
Attributes
Definition at line 26 of file SlistNode.h.
|
inline |
Constructor.
| object | contained object |
Definition at line 41 of file SlistNode.h.
References utl::init().
| void utl::SlistNode::addAfter | ( | SlistNode * | node | ) |
Add self after the given node.
| void utl::SlistNode::addBefore | ( | SlistNode * | node | ) |
Add self before the given node.
|
inline |
Get the contained object.
Definition at line 54 of file SlistNode.h.
|
inline |
Determine whether self is the tail node.
Definition at line 61 of file SlistNode.h.
|
inline |
Determine whether self is a "sentinal" tail node.
Definition at line 68 of file SlistNode.h.
References utl::maxObject.
|
inline |
Get the next node (= self if self is tail node).
Definition at line 75 of file SlistNode.h.
|
inline |
Set the next node.
Definition at line 82 of file SlistNode.h.
Remove self from the list.
| prev | previous node |
|
inline |