libUTL++
|
#include <ListNode.h>
Public Member Functions | |
ListNode () | |
Constructor. | |
ListNode (const Object *object) | |
Constructor. More... | |
void | addAfter (ListNode *node) |
Add self after the given node. More... | |
void | addBefore (ListNode *node) |
Add self before the given node. More... | |
Object * | get () const |
Get the contained object. More... | |
bool | isHead () const |
Determine whether self is the head node. More... | |
bool | isTail () const |
Determine whether self is the tail node. More... | |
bool | isSentinelTail () const |
Determine whether self is a "sentinal" tail node. More... | |
ListNode * | next () const |
Get the next node (= self if self is tail node). More... | |
void | setNext (ListNode *node) |
Set the next node. More... | |
ListNode * | prev () const |
Get the previous node (= nullptr if self is head node). More... | |
void | setPrev (ListNode *prev) |
Set the previous node. More... | |
void | remove () |
Remove self from the list. More... | |
void | set (const Object *object) |
Set the contained object. More... | |
List node.
Attributes
Definition at line 28 of file ListNode.h.
|
inline |
Constructor.
object | contained object |
Definition at line 43 of file ListNode.h.
References utl::init().
void utl::ListNode::addAfter | ( | ListNode * | node | ) |
Add self after the given node.
void utl::ListNode::addBefore | ( | ListNode * | node | ) |
Add self before the given node.
|
inline |
Get the contained object.
Definition at line 56 of file ListNode.h.
|
inline |
Determine whether self is the head node.
Definition at line 63 of file ListNode.h.
|
inline |
Determine whether self is the tail node.
Definition at line 70 of file ListNode.h.
|
inline |
Determine whether self is a "sentinal" tail node.
Definition at line 77 of file ListNode.h.
References utl::maxObject.
|
inline |
Get the next node (= self if self is tail node).
Definition at line 84 of file ListNode.h.
|
inline |
Set the next node.
Definition at line 91 of file ListNode.h.
|
inline |
Get the previous node (= nullptr if self is head node).
Definition at line 98 of file ListNode.h.
|
inline |
Set the previous node.
Definition at line 105 of file ListNode.h.
void utl::ListNode::remove | ( | ) |
Remove self from the list.
|
inline |
Set the contained object.
Definition at line 115 of file ListNode.h.
References utl::init().
Referenced by utl::Hashtable::setHashFunction().