The FieldTreeLeaf is, as the name suggests, a leaf (terminal node) of a StringTree. It provides the pointer to the node and a list of numbers that represent the index that corresponds to the placeholder "#". More...
#include <stringtree_leaf.hpp>
Public Attributes | |
SmallVector< uint16_t, 4 > | index_array |
const FieldTreeNode * | node |
The FieldTreeLeaf is, as the name suggests, a leaf (terminal node) of a StringTree. It provides the pointer to the node and a list of numbers that represent the index that corresponds to the placeholder "#".
For example if you want to represent the string
foo/2/bar/3/hello/world
This would correspond to a branch of the tree (from root to the leaf) equal to these 6 nodes, where "foo" is the root and "world" is the leaf
foo -> # -> bar -> # ->hello -> world
array_size will be equal to two and index_array will contain these numbers {2,3}
Definition at line 85 of file stringtree_leaf.hpp.
SmallVector<uint16_t, 4> RosMsgParser::FieldLeaf::index_array |
Definition at line 88 of file stringtree_leaf.hpp.
const FieldTreeNode* RosMsgParser::FieldLeaf::node |
Definition at line 87 of file stringtree_leaf.hpp.