vg
tools for working with variation graphs
Public Member Functions | Public Attributes | List of all members
vg::TreeNode< T > Struct Template Reference

#include <utility.hpp>

Public Member Functions

 TreeNode ()
 
 ~TreeNode ()
 
void for_each_preorder (function< void(TreeNode< T > *)> lambda)
 
void for_each_postorder (function< void(TreeNode< T > *)> lambda)
 

Public Attributes

v
 
vector< TreeNode< T > * > children
 
TreeNode< T > * parent
 

Constructor & Destructor Documentation

◆ TreeNode()

template<typename T >
vg::TreeNode< T >::TreeNode ( )
inline

◆ ~TreeNode()

template<typename T >
vg::TreeNode< T >::~TreeNode ( )
inline

Member Function Documentation

◆ for_each_postorder()

template<typename T >
void vg::TreeNode< T >::for_each_postorder ( function< void(TreeNode< T > *)>  lambda)
inline

◆ for_each_preorder()

template<typename T >
void vg::TreeNode< T >::for_each_preorder ( function< void(TreeNode< T > *)>  lambda)
inline

Member Data Documentation

◆ children

template<typename T >
vector<TreeNode<T>*> vg::TreeNode< T >::children

◆ parent

template<typename T >
TreeNode<T>* vg::TreeNode< T >::parent

◆ v

template<typename T >
T vg::TreeNode< T >::v

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