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

#include <tree.hpp>

Public Member Functions

const TreeNode< T > * croot () const
 Constant pointer to the root of the tree. More...
 
template<typename Vect >
const TreeNode< T > * find (const Vect &concatenated_values, bool partial_allowed=false)
 
TreeNode< T > * root ()
 Mutable pointer to the root of the tree. More...
 
 Tree ()
 

Private Member Functions

void print_impl (std::ostream &os, const TreeNode< T > *node, int indent) const
 

Private Attributes

std::unique_ptr< TreeNode< 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 85 of file tree.hpp.

Constructor & Destructor Documentation

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

Definition at line 88 of file tree.hpp.

Member Function Documentation

template<typename T>
const TreeNode<T>* RosIntrospection::details::Tree< T >::croot ( ) const
inline

Constant pointer to the root of the tree.

Definition at line 98 of file tree.hpp.

template<typename T >
template<typename Vect >
const TreeNode< 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 180 of file tree.hpp.

template<typename T>
void RosIntrospection::details::Tree< T >::print_impl ( std::ostream &  os,
const TreeNode< T > *  node,
int  indent 
) const
inlineprivate

Definition at line 151 of file tree.hpp.

template<typename T>
TreeNode<T>* RosIntrospection::details::Tree< T >::root ( )
inline

Mutable pointer to the root of the tree.

Definition at line 101 of file tree.hpp.

Friends And Related Function Documentation

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

Definition at line 104 of file tree.hpp.

Member Data Documentation

template<typename T>
std::unique_ptr<TreeNode<T> > RosIntrospection::details::Tree< T >::_root
private

Definition at line 113 of file tree.hpp.


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


ros_type_introspection
Author(s): Davide Faconti
autogenerated on Thu May 16 2019 02:39:10