NCBI C++ ToolKit
Public Member Functions | Protected Types | Private Attributes | List of all members
CTreeConvert2ContainerFunc< TBioTreeContainer, TTreeType > Class Template Reference

Search Toolkit Book for CTreeConvert2ContainerFunc

Visitor functor to convert phylo tree nodes to ASN.1 BioTree container. More...

#include <gui/widgets/phylo_tree/phylo_tree_algorithm.hpp>

Public Member Functions

 CTreeConvert2ContainerFunc (TBioTreeContainer *tree_container, TTreeIdx root_idx)
 
ETreeTraverseCode operator() (TTreeType &tree, TTreeIdx node_idx, int delta_level)
 

Protected Types

typedef TTreeType::TNodeType TTreeNodeType
 
typedef TTreeType::TTreeIdx TTreeIdx
 
typedef TTreeNodeType::TValueType TNodeValueType
 
typedef TBioTreeContainer::TNodes TCNodeSet
 
typedef TCNodeSet::Tdata TNodeList
 
typedef TNodeList::value_type::element_type TCNode
 
typedef TCNode::TFeatures TCNodeFeatureSet
 
typedef TCNodeFeatureSet::Tdata TNodeFeatureList
 
typedef TNodeFeatureList::value_type::element_type TCNodeFeature
 

Private Attributes

TBioTreeContainer * m_Container
 
TNodeListm_NodeList
 
TTreeIdx m_RootIdx
 

Detailed Description

template<class TBioTreeContainer, class TTreeType>
class CTreeConvert2ContainerFunc< TBioTreeContainer, TTreeType >

Visitor functor to convert phylo tree nodes to ASN.1 BioTree container.

Definition at line 790 of file phylo_tree_algorithm.hpp.

Member Typedef Documentation

◆ TCNode

template<class TBioTreeContainer , class TTreeType >
typedef TNodeList::value_type::element_type CTreeConvert2ContainerFunc< TBioTreeContainer, TTreeType >::TCNode
protected

Definition at line 799 of file phylo_tree_algorithm.hpp.

◆ TCNodeFeature

template<class TBioTreeContainer , class TTreeType >
typedef TNodeFeatureList::value_type::element_type CTreeConvert2ContainerFunc< TBioTreeContainer, TTreeType >::TCNodeFeature
protected

Definition at line 803 of file phylo_tree_algorithm.hpp.

◆ TCNodeFeatureSet

template<class TBioTreeContainer , class TTreeType >
typedef TCNode::TFeatures CTreeConvert2ContainerFunc< TBioTreeContainer, TTreeType >::TCNodeFeatureSet
protected

Definition at line 800 of file phylo_tree_algorithm.hpp.

◆ TCNodeSet

template<class TBioTreeContainer , class TTreeType >
typedef TBioTreeContainer::TNodes CTreeConvert2ContainerFunc< TBioTreeContainer, TTreeType >::TCNodeSet
protected

Definition at line 797 of file phylo_tree_algorithm.hpp.

◆ TNodeFeatureList

template<class TBioTreeContainer , class TTreeType >
typedef TCNodeFeatureSet::Tdata CTreeConvert2ContainerFunc< TBioTreeContainer, TTreeType >::TNodeFeatureList
protected

Definition at line 801 of file phylo_tree_algorithm.hpp.

◆ TNodeList

template<class TBioTreeContainer , class TTreeType >
typedef TCNodeSet::Tdata CTreeConvert2ContainerFunc< TBioTreeContainer, TTreeType >::TNodeList
protected

Definition at line 798 of file phylo_tree_algorithm.hpp.

◆ TNodeValueType

template<class TBioTreeContainer , class TTreeType >
typedef TTreeNodeType::TValueType CTreeConvert2ContainerFunc< TBioTreeContainer, TTreeType >::TNodeValueType
protected

Definition at line 795 of file phylo_tree_algorithm.hpp.

◆ TTreeIdx

template<class TBioTreeContainer , class TTreeType >
typedef TTreeType::TTreeIdx CTreeConvert2ContainerFunc< TBioTreeContainer, TTreeType >::TTreeIdx
protected

Definition at line 794 of file phylo_tree_algorithm.hpp.

◆ TTreeNodeType

template<class TBioTreeContainer , class TTreeType >
typedef TTreeType::TNodeType CTreeConvert2ContainerFunc< TBioTreeContainer, TTreeType >::TTreeNodeType
protected

Definition at line 793 of file phylo_tree_algorithm.hpp.

Constructor & Destructor Documentation

◆ CTreeConvert2ContainerFunc()

template<class TBioTreeContainer , class TTreeType >
CTreeConvert2ContainerFunc< TBioTreeContainer, TTreeType >::CTreeConvert2ContainerFunc ( TBioTreeContainer *  tree_container,
TTreeIdx  root_idx 
)
inline

Member Function Documentation

◆ operator()()

template<class TBioTreeContainer , class TTreeType >
ETreeTraverseCode CTreeConvert2ContainerFunc< TBioTreeContainer, TTreeType >::operator() ( TTreeType &  tree,
TTreeIdx  node_idx,
int  delta_level 
)
inline

Member Data Documentation

◆ m_Container

template<class TBioTreeContainer , class TTreeType >
TBioTreeContainer* CTreeConvert2ContainerFunc< TBioTreeContainer, TTreeType >::m_Container
private

Definition at line 860 of file phylo_tree_algorithm.hpp.

◆ m_NodeList

template<class TBioTreeContainer , class TTreeType >
TNodeList* CTreeConvert2ContainerFunc< TBioTreeContainer, TTreeType >::m_NodeList
private

◆ m_RootIdx

template<class TBioTreeContainer , class TTreeType >
TTreeIdx CTreeConvert2ContainerFunc< TBioTreeContainer, TTreeType >::m_RootIdx
private

The documentation for this class was generated from the following file:
Modified on Wed Feb 28 07:12:58 2024 by modify_doxy.py rev. 669887