NCBI C++ ToolKit
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
IPhyloTreeVisitor Class Reference

Search Toolkit Book for IPhyloTreeVisitor

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

+ Inheritance diagram for IPhyloTreeVisitor:
+ Collaboration diagram for IPhyloTreeVisitor:

Public Types

typedef CPhyloTree TTreeType
 
typedef CPhyloTree::TTreeIdx TTreeIdx
 
typedef CPhyloTree::TNodeType TNodeType
 

Public Member Functions

 IPhyloTreeVisitor (TTreeType *tree)
 
virtual ~IPhyloTreeVisitor ()
 
ETreeTraverseCode operator() (TTreeType &tree, TTreeIdx tree_node, int delta)
 

Protected Member Functions

virtual ETreeTraverseCode x_OnStepRight (TTreeIdx x_node)
 
virtual ETreeTraverseCode x_OnStepLeft (TTreeIdx x_node)
 
virtual ETreeTraverseCode x_OnStepDown (TTreeIdx x_node)
 
virtual ETreeTraverseCode x_OnStep (TTreeIdx x_node, int delta)
 

Protected Attributes

TTreeTypem_Tree
 

Detailed Description

Definition at line 51 of file phylo_tree_algorithm.hpp.

Member Typedef Documentation

◆ TNodeType

Definition at line 56 of file phylo_tree_algorithm.hpp.

◆ TTreeIdx

Definition at line 55 of file phylo_tree_algorithm.hpp.

◆ TTreeType

Definition at line 54 of file phylo_tree_algorithm.hpp.

Constructor & Destructor Documentation

◆ IPhyloTreeVisitor()

IPhyloTreeVisitor::IPhyloTreeVisitor ( TTreeType tree)
inline

Definition at line 59 of file phylo_tree_algorithm.hpp.

◆ ~IPhyloTreeVisitor()

virtual IPhyloTreeVisitor::~IPhyloTreeVisitor ( )
inlinevirtual

Definition at line 60 of file phylo_tree_algorithm.hpp.

Member Function Documentation

◆ operator()()

ETreeTraverseCode IPhyloTreeVisitor::operator() ( TTreeType tree,
TTreeIdx  tree_node,
int  delta 
)

Definition at line 61 of file phylo_tree_algorithm.cpp.

References delta(), and x_OnStep().

◆ x_OnStep()

ETreeTraverseCode IPhyloTreeVisitor::x_OnStep ( TTreeIdx  x_node,
int  delta 
)
protectedvirtual

◆ x_OnStepDown()

ETreeTraverseCode IPhyloTreeVisitor::x_OnStepDown ( TTreeIdx  x_node)
protectedvirtual

Reimplemented in CPhyloTreeCalculator.

Definition at line 77 of file phylo_tree_algorithm.cpp.

References eTreeTraverse.

Referenced by x_OnStep().

◆ x_OnStepLeft()

ETreeTraverseCode IPhyloTreeVisitor::x_OnStepLeft ( TTreeIdx  x_node)
protectedvirtual

Reimplemented in CPhyloTreeCalculator.

Definition at line 87 of file phylo_tree_algorithm.cpp.

References eTreeTraverse.

Referenced by x_OnStep().

◆ x_OnStepRight()

ETreeTraverseCode IPhyloTreeVisitor::x_OnStepRight ( TTreeIdx  x_node)
protectedvirtual

Reimplemented in CPhyloTreeCalculator.

Definition at line 82 of file phylo_tree_algorithm.cpp.

References eTreeTraverse.

Referenced by x_OnStep().

Member Data Documentation

◆ m_Tree

TTreeType* IPhyloTreeVisitor::m_Tree
protected

The documentation for this class was generated from the following files:
Modified on Wed Jun 12 11:12:57 2024 by modify_doxy.py rev. 669887