|
| Node () |
| 默认构造函数,初始化节点大小。 Default constructor initializing the node size.
|
|
| Node (const Data &data) |
| 使用数据值构造 Node 节点。 Constructs a Node with the given data value.
|
|
template<typename... Args> |
| Node (Args &&... args) |
| 通过参数列表构造节点 (Constructor initializing a node using arguments list).
|
|
Node & | operator= (const Data &data) |
| 赋值运算符重载,允许直接对节点赋值。 Overloaded assignment operator for assigning values to the node.
|
|
Data * | operator-> () noexcept |
| 操作符重载,提供数据访问接口。 Operator overloads providing access to the data.
|
|
const Data * | operator-> () const noexcept |
|
Data & | operator* () noexcept |
|
| operator Data & () noexcept |
|
| BaseNode (size_t size) |
| 构造 BaseNode 并设置节点大小。 Constructs a BaseNode and sets its size.
|
|
| ~BaseNode () |
| 析构函数,确保节点不会在列表中残留。 Destructor ensuring the node does not remain in the list.
|
|
template<typename Data>
class LibXR::List::Node< Data >
数据节点模板,继承自 BaseNode
,用于存储具体数据类型。 Template data node that inherits from BaseNode
to store specific data types.
- Template Parameters
-
Data | 存储的数据类型。 The type of data stored. |
Definition at line 59 of file list.hpp.