The StringTreeLeaf 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.hpp>
Public Member Functions | |
| StringTreeLeaf () | |
| std::string | toStdString () const |
| int | toStr (std::string &destination) const |
| Utility functions to print the entire branch. More... | |
Public Attributes | |
| boost::container::static_vector< uint16_t, 8 > | index_array |
| const StringTreeNode * | node_ptr |
Static Public Attributes | |
| static constexpr const char | NUM_PLACEHOLDER = '#' |
| static constexpr const char | SEPARATOR = '/' |
The StringTreeLeaf 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 79 of file stringtree.hpp.
|
inline |
Definition at line 112 of file stringtree.hpp.
|
inline |
Definition at line 90 of file stringtree.hpp.
| int Ros2Introspection::StringTreeLeaf::toStr | ( | std::string & | destination | ) | const |
Utility functions to print the entire branch.
Definition at line 73 of file stringtree.cpp.
| boost::container::static_vector<uint16_t,8> Ros2Introspection::StringTreeLeaf::index_array |
Definition at line 85 of file stringtree.hpp.
| const StringTreeNode* Ros2Introspection::StringTreeLeaf::node_ptr |
Definition at line 83 of file stringtree.hpp.
|
static |
Definition at line 97 of file stringtree.hpp.
|
static |
Definition at line 96 of file stringtree.hpp.