主题域(Domain)管理器,用于组织多个主题。Domain manager for organizing multiple topics.
More...
#include <message.hpp>
|
| Domain (const char *name) |
| 构造函数,初始化或查找指定名称的主题域。Constructor initializing or looking up a domain by name.
|
|
|
RBTree< uint32_t >::Node< RBTree< uint32_t > > * | node_ |
| 指向该域的根节点。Pointer to the root node of the domain.
|
|
主题域(Domain)管理器,用于组织多个主题。Domain manager for organizing multiple topics.
Definition at line 151 of file message.hpp.
◆ Domain()
LibXR::Topic::Domain::Domain |
( |
const char * | name | ) |
|
|
inline |
构造函数,初始化或查找指定名称的主题域。Constructor initializing or looking up a domain by name.
- Parameters
-
name | 主题域的名称。Name of the domain. |
Definition at line 159 of file message.hpp.
160 {
162 {
164 {
166 new RBTree<uint32_t>([](const uint32_t &a, const uint32_t &b)
167 { return static_cast<int>(a) - static_cast<int>(b); });
168 }
169 }
170
172
174
175 if (domain != nullptr)
176 {
178 return;
179 }
180
182 [](const uint32_t &a, const uint32_t &b)
183 { return static_cast<int>(a) - static_cast<int>(b); });
184
186 }
static uint32_t Calculate(const void *raw, size_t len)
计算数据的 CRC32 校验码 / Computes the CRC32 checksum for the given data
红黑树的泛型数据节点,继承自 BaseNode (Generic data node for Red-Black Tree, inheriting from BaseNode).
红黑树实现,支持泛型键和值,并提供线程安全操作 (Red-Black Tree implementation supporting generic keys and values with thread...
Node< Data > * Search(const Key &key)
搜索红黑树中的节点 (Search for a node in the Red-Black Tree).
void Insert(BaseNode &node, KeyType &&key)
在树中插入新节点 (Insert a new node into the tree).
RBTree< uint32_t >::Node< RBTree< uint32_t > > * node_
指向该域的根节点。Pointer to the root node of the domain.
static RBTree< uint32_t > * domain_
主题域的红黑树结构,存储不同的主题 Red-Black Tree structure for storing different topics in the domain
◆ node_
RBTree<uint32_t>::Node<RBTree<uint32_t> >* LibXR::Topic::Domain::node_ |
指向该域的根节点。Pointer to the root node of the domain.
Definition at line 191 of file message.hpp.
The documentation for this class was generated from the following file: