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

Search Toolkit Book for CPhyloTreeSorter

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

+ Inheritance diagram for CPhyloTreeSorter:
+ Collaboration diagram for CPhyloTreeSorter:

Public Member Functions

 CPhyloTreeSorter (TTreeType *tree, bool x_order)
 
- Public Member Functions inherited from IPhyloTreeVisitor
 IPhyloTreeVisitor (TTreeType *tree)
 
virtual ~IPhyloTreeVisitor ()
 
ETreeTraverseCode operator() (TTreeType &tree, TTreeIdx tree_node, int delta)
 

Protected Member Functions

virtual ETreeTraverseCode x_OnStep (TTreeIdx node_idx, int delta)
 
- Protected Member Functions inherited from IPhyloTreeVisitor
virtual ETreeTraverseCode x_OnStepRight (TTreeIdx x_node)
 
virtual ETreeTraverseCode x_OnStepLeft (TTreeIdx x_node)
 
virtual ETreeTraverseCode x_OnStepDown (TTreeIdx x_node)
 

Private Attributes

bool m_Order
 

Additional Inherited Members

- Public Types inherited from IPhyloTreeVisitor
typedef CPhyloTree TTreeType
 
typedef CPhyloTree::TTreeIdx TTreeIdx
 
typedef CPhyloTree::TNodeType TNodeType
 
- Protected Attributes inherited from IPhyloTreeVisitor
TTreeTypem_Tree
 

Detailed Description

Definition at line 243 of file phylo_tree_algorithm.hpp.

Constructor & Destructor Documentation

◆ CPhyloTreeSorter()

CPhyloTreeSorter::CPhyloTreeSorter ( TTreeType tree,
bool  x_order 
)
inline

Definition at line 246 of file phylo_tree_algorithm.hpp.

Member Function Documentation

◆ x_OnStep()

ETreeTraverseCode CPhyloTreeSorter::x_OnStep ( TTreeIdx  node_idx,
int  delta 
)
protectedvirtual

Reimplemented from IPhyloTreeVisitor.

Definition at line 579 of file phylo_tree_algorithm.cpp.

References delta(), eTreeTraverse, m_Order, IPhyloTreeVisitor::m_Tree, and CPhyloTree::Sort().

Member Data Documentation

◆ m_Order

bool CPhyloTreeSorter::m_Order
private

Definition at line 254 of file phylo_tree_algorithm.hpp.

Referenced by x_OnStep().


The documentation for this class was generated from the following files:
Modified on Tue Feb 27 05:50:20 2024 by modify_doxy.py rev. 669887