Public Member Functions | Private Member Functions | Private Attributes | Friends
RosIntrospection::details::Tree< T > Class Template Reference

#include <stringtree.hpp>

Inheritance diagram for RosIntrospection::details::Tree< T >:
Inheritance graph
[legend]

List of all members.

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)

Detailed Description

template<typename T>
class RosIntrospection::details::Tree< T >

Definition at line 88 of file stringtree.hpp.


Constructor & Destructor Documentation

template<typename T>
RosIntrospection::details::Tree< T >::Tree ( ) [inline]

Definition at line 91 of file stringtree.hpp.


Member Function Documentation

template<typename T>
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.

template<typename T >
template<typename Vect >
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.

template<typename T >
template<typename Vect >
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.

template<typename T>
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.

template<typename T>
TreeElement<T>* RosIntrospection::details::Tree< T >::root ( ) [inline]

Mutable pointer to the root of the tree.

Definition at line 113 of file stringtree.hpp.


Friends And Related Function Documentation

template<typename T>
std::ostream& operator<< ( std::ostream &  os,
const Tree< T > &  _this 
) [friend]

Definition at line 116 of file stringtree.hpp.


Member Data Documentation

template<typename T>
TreeElement<T> RosIntrospection::details::Tree< T >::_root [private]

Definition at line 125 of file stringtree.hpp.


The documentation for this class was generated from the following file:


ros_type_introspection
Author(s): Davide Faconti
autogenerated on Sun Oct 1 2017 02:54:53