|
libxr
Embedded C++ framework for bare-metal, RTOS and Linux
|
红黑树的泛型数据节点,继承自 BaseNode Generic data node for Red-Black Tree, inheriting from BaseNode.
More...
#include <rbt.hpp>
Public Member Functions | |
| Node () | |
| 默认构造函数,初始化数据为空 Default constructor initializing an empty node. | |
| Node (const Data &data) | |
| 使用指定数据构造节点 Constructor initializing a node with the given data. | |
| template<typename... Args> | |
| Node (Args... args) | |
| 通过参数列表构造节点 / Constructor initializing a node using arguments list. | |
| operator Data & () | |
| Node & | operator= (const Data &data) |
| Data * | operator-> () |
| const Data * | operator-> () const |
| Data & | operator* () |
Public Attributes | |
| Data | data_ |
| 存储的数据 / Stored data. | |
Public Attributes inherited from LibXR::RBTree< Key >::BaseNode | |
| Key | key |
| 节点键值 / Key associated with the node. | |
| RbtColor | color |
| 节点颜色 / Color of the node. | |
| BaseNode * | left = nullptr |
| 左子节点 / Left child node. | |
| BaseNode * | right = nullptr |
| 右子节点 / Right child node. | |
| BaseNode * | parent = nullptr |
| 父节点 / Parent node. | |
| size_t | size |
| 节点大小 / Size of the node. | |
Additional Inherited Members | |
Protected Member Functions inherited from LibXR::RBTree< Key >::BaseNode | |
| BaseNode (size_t size) | |
| 基本节点构造函数 / Constructor for BaseNode. | |
红黑树的泛型数据节点,继承自 BaseNode Generic data node for Red-Black Tree, inheriting from BaseNode.
| Data | 存储的数据类型 / Type of data stored in the node. |
|
inline |
默认构造函数,初始化数据为空 Default constructor initializing an empty node.
Definition at line 69 of file rbt.hpp.
|
inlineexplicit |
|
inlineexplicit |
通过参数列表构造节点 / Constructor initializing a node using arguments list.
| Args | 参数类型 / Types of arguments for data initialization. |
| args | 数据构造参数 / Arguments used for constructing the data. |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |