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

#include <utility.hpp>

Public Types

typedef TreeNode< T > Node
 

Public Member Functions

 Tree (Node *r=0)
 
 ~Tree ()
 
void for_each_preorder (function< void(Node *)> lambda)
 
void for_each_postorder (function< void(Node *)> lambda)
 

Public Attributes

Noderoot
 

Member Typedef Documentation

◆ Node

template<typename T >
typedef TreeNode<T> vg::Tree< T >::Node

Constructor & Destructor Documentation

◆ Tree()

template<typename T >
vg::Tree< T >::Tree ( Node r = 0)
inline

◆ ~Tree()

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

Member Function Documentation

◆ for_each_postorder()

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

◆ for_each_preorder()

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

Member Data Documentation

◆ root

template<typename T >
Node* vg::Tree< T >::root

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