Base Framework
|
Single linked node. More...
#include <base/collection/SingleLinkedNode.h>
Public Member Functions | |
SingleLinkedNode (NullPtr, const TYPE &_value) noexcept | |
SingleLinkedNode (SingleLinkedNode *_next, const TYPE &_value) noexcept | |
SingleLinkedNode * | getNext () const noexcept |
void | setNext (SingleLinkedNode *next) noexcept |
TYPE * | getValue () noexcept |
const TYPE * | getValue () const noexcept |
void | setValue (const TYPE &value) noexcept |
Protected Member Functions | |
SingleLinkedNode (int, const TYPE &_value) noexcept | |
Protected Attributes | |
SingleLinkedNode * | next = nullptr |
TYPE | value |
Single linked node.
A single linked node. This class is used by collections that only require unidirectional traversal of elements.
|
inlinenoexcept |
Initializes a linked node.
next | The next node in the container. |
value | The value to be associated with the node. |
|
inlinenoexcept |
Initializes a linked node.
next | The next node in the container. |
value | The value to be associated with the node. |
|
inlinenoexcept |
Returns the next node.
|
inlinenoexcept |
Returns the value of the node.
|
inlinenoexcept |
Returns the value of the node.
|
inlinenoexcept |
Sets the next node.
|
inlinenoexcept |
Sets the value of the node.
|
protected |
The next node in the container.
|
protected |
The value associated with the node.