|
libxr
1.0
Want to be the best embedded framework
|
RamFS 的自定义节点片段 / Custom-node fragment of RamFS
More...
#include <custom.hpp>
Public Member Functions | |
| Custom (const char *name, uint32_t kind=0, void *context=nullptr) | |
| 构造自定义节点 / Construct a custom node | |
Public Member Functions inherited from FsNode | |
| FsNodeType | GetNodeType () const |
| 获取节点类型 / Get the node type | |
| const char * | GetName () const |
| 获取节点名称 / Get the node name | |
Data Fields | |
| uint32_t | kind_ = 0 |
| 用户定义类型标签 / User-defined kind tag. | |
| void * | context_ = nullptr |
| 用户自管上下文指针 / Caller-owned user context pointer. | |
Private Member Functions | |
| Custom () | |
| 构造一个空自定义节点壳 / Construct one empty custom-node shell | |
Additional Inherited Members | |
Protected Member Functions inherited from FsNode | |
| FsNode (FsNodeType node_type) | |
| 用指定节点类型构造基类部分 / Construct the base node with a given node type | |
| FsNode (const FsNode &other) | |
| 拷贝构造节点基类部分 / Copy-construct the base-node portion | |
| FsNode & | operator= (const FsNode &)=delete |
Protected Attributes inherited from FsNode | |
| const char * | name_ = nullptr |
| 节点名称缓冲区 / Retained node-name buffer. | |
| FsNodeType | type_ |
| 节点运行时类型 / Runtime node type. | |
| Dir * | parent_ = nullptr |
| 父目录;根目录保持为空 / Parent directory; stays null for the root. | |
| Tree::Node< FsNode * > | tree_node_ |
| 当前节点挂进目录树时使用的树节点包装 / Tree node wrapper used when inserted into a directory tree. | |
RamFS 的自定义节点片段 / Custom-node fragment of RamFS
用户自定义节点,RamFS 仅负责命名和查找 / User-defined node; RamFS only stores and finds it by name
Definition at line 9 of file custom.hpp.
|
explicit |
构造自定义节点 / Construct a custom node
| name | 节点名称 / Node name |
| kind | 用户定义类型 / User-defined kind |
| context | 用户上下文指针 / User context pointer |
| void* Custom::context_ = nullptr |
用户自管上下文指针 / Caller-owned user context pointer.
Definition at line 23 of file custom.hpp.
| uint32_t Custom::kind_ = 0 |
用户定义类型标签 / User-defined kind tag.
Definition at line 22 of file custom.hpp.