Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
RosMsgParser::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 ()
 
template<class Functor >
void visit (Functor &func, const TreeNode< T > *node) const
 

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 RosMsgParser::details::Tree< T >

Definition at line 173 of file tree.hpp.

Constructor & Destructor Documentation

◆ Tree()

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

Definition at line 176 of file tree.hpp.

Member Function Documentation

◆ croot()

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

Constant pointer to the root of the tree.

Definition at line 189 of file tree.hpp.

◆ find()

template<typename T >
template<typename Vect >
const TreeNode< T > * RosMsgParser::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 289 of file tree.hpp.

◆ print_impl()

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

Definition at line 260 of file tree.hpp.

◆ root()

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

Mutable pointer to the root of the tree.

Definition at line 195 of file tree.hpp.

◆ visit()

template<typename T >
template<class Functor >
void RosMsgParser::details::Tree< T >::visit ( Functor &  func,
const TreeNode< T > *  node 
) const
inline

Definition at line 207 of file tree.hpp.

Friends And Related Function Documentation

◆ operator<<

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

Definition at line 200 of file tree.hpp.

Member Data Documentation

◆ _root

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

Definition at line 219 of file tree.hpp.


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


plotjuggler
Author(s): Davide Faconti
autogenerated on Mon Nov 11 2024 03:23:52