#include <stringtree.hpp>
Public Member Functions | |
const TreeElement< T > * | croot () const |
Constant pointer to the root of the tree. | |
template<typename Vect > | |
const TreeElement< T > * | find (const Vect &concatenated_values, bool partial_allowed=false) |
template<typename Vect > | |
void | insert (const Vect &concatenated_values) |
TreeElement< T > * | root () |
Mutable pointer to the root of the tree. | |
Tree () | |
Private Member Functions | |
void | print_impl (std::ostream &os, const typename TreeElement< T >::ChildrenVector &children, int indent) const |
Private Attributes | |
TreeElement< T > | _root |
Friends | |
std::ostream & | operator<< (std::ostream &os, const Tree &_this) |
Definition at line 88 of file stringtree.hpp.
RosIntrospection::details::Tree< T >::Tree | ( | ) | [inline] |
Definition at line 91 of file stringtree.hpp.
const TreeElement<T>* RosIntrospection::details::Tree< T >::croot | ( | ) | const [inline] |
Constant pointer to the root of the tree.
Definition at line 110 of file stringtree.hpp.
const TreeElement< T > * RosIntrospection::details::Tree< T >::find | ( | const Vect & | concatenated_values, |
bool | partial_allowed = false |
||
) | [inline] |
Find a set of elements in the tree and return the pointer to the leaf. The first element of the concatenated_values should be a root of the Tree. The leaf corresponds to the last element of concatenated_values in the Tree.
Definition at line 226 of file stringtree.hpp.
void RosIntrospection::details::Tree< T >::insert | ( | const Vect & | concatenated_values | ) | [inline] |
Add the elements to the tree and return the pointer to the leaf. The leaf correspnds to the last element of concatenated_values in the Tree.
Definition at line 201 of file stringtree.hpp.
void RosIntrospection::details::Tree< T >::print_impl | ( | std::ostream & | os, |
const typename TreeElement< T >::ChildrenVector & | children, | ||
int | indent | ||
) | const [inline, private] |
Definition at line 163 of file stringtree.hpp.
TreeElement<T>* RosIntrospection::details::Tree< T >::root | ( | ) | [inline] |
Mutable pointer to the root of the tree.
Definition at line 113 of file stringtree.hpp.
std::ostream& operator<< | ( | std::ostream & | os, |
const Tree< T > & | _this | ||
) | [friend] |
Definition at line 116 of file stringtree.hpp.
TreeElement<T> RosIntrospection::details::Tree< T >::_root [private] |
Definition at line 125 of file stringtree.hpp.