iRoCS Toolbox  1.1.0
Public Member Functions
atb::BasicTreeNode< KeyT, ContentT > Class Template Reference

#include <ATBBasicTree.hh>

Collaboration diagram for atb::BasicTreeNode< KeyT, ContentT >:

Public Member Functions

 BasicTreeNode (KeyT const &key, ContentT const &content=ContentT())
 
 ~BasicTreeNode ()
 
void addChild (BasicTreeNode< KeyT, ContentT > *child)
 
std::list< BasicTreeNode< KeyT, ContentT > * > const & children () const
 
std::list< BasicTreeNode< KeyT, ContentT > * > & children ()
 
ContentT const content () const
 
KeyT const key () const
 
BasicTreeNode< KeyT, ContentT > const * parent () const
 
BasicTreeNode< KeyT, ContentT > * parent ()
 
void removeChild (BasicTreeNode< KeyT, ContentT > *child)
 
void reparent (BasicTreeNode< KeyT, ContentT > *parent)
 
BasicTreeNode< KeyT, ContentT > const * root () const
 
BasicTreeNode< KeyT, ContentT > * root ()
 
void setContent (const ContentT &content)
 
void setKey (const KeyT &key)
 

Detailed Description

template<typename KeyT, typename ContentT>
class atb::BasicTreeNode< KeyT, ContentT >

Definition at line 38 of file ATBBasicTree.hh.

Constructor & Destructor Documentation

◆ BasicTreeNode()

template<typename KeyT, typename ContentT>
atb::BasicTreeNode< KeyT, ContentT >::BasicTreeNode ( KeyT const &  key,
ContentT const &  content = ContentT() 
)
inline

Definition at line 43 of file ATBBasicTree.hh.

◆ ~BasicTreeNode()

template<typename KeyT, typename ContentT>
atb::BasicTreeNode< KeyT, ContentT >::~BasicTreeNode ( )
inline

Definition at line 48 of file ATBBasicTree.hh.

Member Function Documentation

◆ key()

template<typename KeyT, typename ContentT>
KeyT const atb::BasicTreeNode< KeyT, ContentT >::key ( ) const
inline

◆ setKey()

template<typename KeyT, typename ContentT>
void atb::BasicTreeNode< KeyT, ContentT >::setKey ( const KeyT &  key)
inline

Definition at line 60 of file ATBBasicTree.hh.

◆ content()

template<typename KeyT, typename ContentT>
ContentT const atb::BasicTreeNode< KeyT, ContentT >::content ( ) const
inline

Definition at line 65 of file ATBBasicTree.hh.

Referenced by atb::BasicTreeNode< KeyT, ContentT >::setContent().

◆ setContent()

template<typename KeyT, typename ContentT>
void atb::BasicTreeNode< KeyT, ContentT >::setContent ( const ContentT &  content)
inline

Definition at line 70 of file ATBBasicTree.hh.

◆ parent() [1/2]

template<typename KeyT, typename ContentT>
BasicTreeNode<KeyT, ContentT> const* atb::BasicTreeNode< KeyT, ContentT >::parent ( ) const
inline

Definition at line 75 of file ATBBasicTree.hh.

Referenced by atb::BasicTreeNode< KeyT, ContentT >::reparent().

◆ parent() [2/2]

template<typename KeyT, typename ContentT>
BasicTreeNode<KeyT, ContentT>* atb::BasicTreeNode< KeyT, ContentT >::parent ( )
inline

Definition at line 80 of file ATBBasicTree.hh.

◆ children() [1/2]

template<typename KeyT, typename ContentT>
std::list<BasicTreeNode<KeyT, ContentT>*> const& atb::BasicTreeNode< KeyT, ContentT >::children ( ) const
inline

Definition at line 85 of file ATBBasicTree.hh.

Referenced by atb::operator<<().

◆ children() [2/2]

template<typename KeyT, typename ContentT>
std::list<BasicTreeNode<KeyT, ContentT>*>& atb::BasicTreeNode< KeyT, ContentT >::children ( )
inline

Definition at line 90 of file ATBBasicTree.hh.

◆ root() [1/2]

template<typename KeyT, typename ContentT>
BasicTreeNode<KeyT, ContentT> const* atb::BasicTreeNode< KeyT, ContentT >::root ( ) const
inline

Definition at line 95 of file ATBBasicTree.hh.

◆ root() [2/2]

template<typename KeyT, typename ContentT>
BasicTreeNode<KeyT, ContentT>* atb::BasicTreeNode< KeyT, ContentT >::root ( )
inline

Definition at line 100 of file ATBBasicTree.hh.

◆ reparent()

template<typename KeyT, typename ContentT>
void atb::BasicTreeNode< KeyT, ContentT >::reparent ( BasicTreeNode< KeyT, ContentT > *  parent)
inline

◆ addChild()

template<typename KeyT, typename ContentT>
void atb::BasicTreeNode< KeyT, ContentT >::addChild ( BasicTreeNode< KeyT, ContentT > *  child)
inline

Definition at line 114 of file ATBBasicTree.hh.

◆ removeChild()

template<typename KeyT, typename ContentT>
void atb::BasicTreeNode< KeyT, ContentT >::removeChild ( BasicTreeNode< KeyT, ContentT > *  child)
inline

Definition at line 119 of file ATBBasicTree.hh.


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