Base Framework
|
#include <base/collection/DoubleLinkedNode.h>
Public Member Functions | |
DoubleLinkedNode (NullPtr, NullPtr, const TYPE &_value) | |
DoubleLinkedNode (NullPtr, NullPtr, TYPE &&_value) | |
DoubleLinkedNode (DoubleLinkedNode *_next, DoubleLinkedNode *_previous) | |
DoubleLinkedNode (DoubleLinkedNode *_next, DoubleLinkedNode *_previous, const TYPE &_value) | |
DoubleLinkedNode (DoubleLinkedNode *_next, DoubleLinkedNode *_previous, TYPE &&_value) | |
DoubleLinkedNode * | getNext () const noexcept |
void | setNext (DoubleLinkedNode *next) noexcept |
DoubleLinkedNode * | getPrevious () const noexcept |
void | setPrevious (DoubleLinkedNode *previous) noexcept |
TYPE & | getValue () noexcept |
const TYPE & | getValue () const noexcept |
void | setValue (const TYPE &value) noexcept |
void | setValue (TYPE &&value) noexcept |
TYPE & | operator* () noexcept |
const TYPE & | operator* () const noexcept |
Protected Member Functions | |
DoubleLinkedNode (int, int, const TYPE &_value) | |
Protected Attributes | |
DoubleLinkedNode * | next = nullptr |
DoubleLinkedNode * | previous = nullptr |
TYPE | value |
Double linked node.
A double linked node. This class is used by collections that only require bidirectional traversal of elements.
|
inline |
Initializes a linked node with no previous and next node.
|
inline |
Initializes a linked node with no previous and next node.
|
inline |
Initializes a linked node with default construction of value.
next | The next node in the container. |
previous | The previous node in the container. |
|
inline |
Initializes a linked node.
next | The next node in the container. |
previous | The previous node in the container. |
value | The value to be associated with the node. |
|
inline |
Initializes a linked node.
next | The next node in the container. |
previous | The previous node in the container. |
value | The value to be associated with the node. |
|
inlinenoexcept |
Returns the next node.
|
inlinenoexcept |
Returns the previous node.
|
inlinenoexcept |
Returns the value of the node.
|
inlinenoexcept |
Returns the value of the node.
|
inlinenoexcept |
Sets the next node.
|
inlinenoexcept |
Sets the previous node.
|
inlinenoexcept |
Sets the value of the node.
|
inlinenoexcept |
Sets the value of the node.
|
protected |
The next node in the container.
|
protected |
The previous node in the container.
|
protected |
The value associated with the node.