libxr 1.0
Want to be the best embedded framework
|
数据节点模板,继承自 BaseNode
,用于存储具体数据类型。 Template data node that inherits from BaseNode
to store specific data types.
More...
#include <list.hpp>
Public Member Functions | |
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. | |
Data Fields | |
Data | data_ |
存储的数据。 The stored data. | |
![]() | |
BaseNode * | next_ = nullptr |
指向下一个节点的指针。 Pointer to the next node. | |
size_t | size_ |
当前节点的数据大小(字节)。 Size of the current node (in bytes). | |
数据节点模板,继承自 BaseNode
,用于存储具体数据类型。 Template data node that inherits from BaseNode
to store specific data types.
Data | 存储的数据类型。 The type of data stored. |
|
inline |
默认构造函数,初始化节点大小。 Default constructor initializing the node size.
Definition at line 66 of file list.hpp.
|
inlineexplicit |
通过参数列表构造节点 (Constructor initializing a node using arguments list).
Args | 参数类型 (Types of arguments for data initialization). |
args | 数据构造参数 (Arguments used for constructing the data). |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inline |
Data LibXR::List::Node< Data >::data_ |