Base Framework
|
Binary node. More...
#include <base/collection/BinaryNode.h>
Public Member Functions | |
BinaryNode (BinaryNode *_parent, NullPtr left, NullPtr right, const TYPE &_value) | |
BinaryNode (BinaryNode *_parent, NullPtr left, NullPtr right, TYPE &&_value) | |
BinaryNode (BinaryNode *_parent, BinaryNode *_left, BinaryNode *_right, const TYPE &_value) | |
BinaryNode (BinaryNode *_parent, BinaryNode *_left, BinaryNode *_right, TYPE &&_value) | |
BinaryNode * | getParent () const noexcept |
void | setParent (BinaryNode *parent) noexcept |
BinaryNode * | getLeft () const noexcept |
void | setLeft (BinaryNode *left) noexcept |
BinaryNode * | getRight () const noexcept |
void | setRight (BinaryNode *right) noexcept |
TYPE & | getValue () noexcept |
const TYPE & | getValue () const noexcept |
void | setValue (const TYPE &value) |
void | setValue (TYPE &&value) |
Binary node.
A binary linked node. This class is used by the binary tree collection.
|
inline |
Initializes a binary node.
parent | The parent node of this node. |
value | The value to be associated with the node. |
|
inline |
Initializes a binary node.
parent | The parent node of this node. |
value | The value to be associated with the node. |
|
inline |
Initializes a binary node.
parent | The parent node of this node. |
left | The left child node. |
right | The right child node. |
value | The value to be associated with the node. |
|
inline |
Initializes a binary node.
parent | The parent node of this node. |
left | The left child node. |
right | The right child node. |
value | The value to be associated with the node. |
|
inlinenoexcept |
Returns the left child node.
|
inlinenoexcept |
Returns the parent node.
|
inlinenoexcept |
Returns the right child node.
|
inlinenoexcept |
Returns the value of the node.
|
inlinenoexcept |
Returns the value of the node.
|
inlinenoexcept |
Sets the left child node.
|
inlinenoexcept |
Sets the parent node.
|
inlinenoexcept |
Sets the right child node.
|
inline |
Sets the value of the node.
|
inline |
Sets the value of the node.