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

Search Toolkit Book for CPhyTreeLabelTracker

Tree visitor, finds all labels and node colors for leafes. More...

#include <algo/phy_tree/phytree_format/phytree_simplify.hpp>

+ Collaboration diagram for CPhyTreeLabelTracker:

Public Types

typedef map< string, stringTLabelColorMap
 
typedef TLabelColorMap::iterator TLabelColorMap_I
 

Public Member Functions

 CPhyTreeLabelTracker (const string &label, const string &color, CBioTreeDynamic &tree)
 
ETreeTraverseCode operator() (CBioTreeDynamic::CBioNode &node, int delta)
 
const stringGetError (void) const
 
TLabelColorMap_I Begin (void)
 
TLabelColorMap_I End (void)
 
unsigned int GetNumLabels (void) const
 
bool FoundQueryNode (void) const
 
bool FoundSeqFromType (void) const
 
bool FoundSeqFromVerifiedMat (void) const
 
bool FoundSeqReferenceDB (void) const
 
bool FoundSeqKmerBlast (void) const
 
int GetLeafCount (void) const
 

Protected Member Functions

bool x_IsQuery (const CBioTreeDynamic::CBioNode &node) const
 
bool x_IsSeqFromType (const CBioTreeDynamic::CBioNode &node) const
 
bool x_IsSeqFromVerifiedMat (const CBioTreeDynamic::CBioNode &node) const
 
bool x_IsSeqReferenceDB (const CBioTreeDynamic::CBioNode &node) const
 
bool x_IsSeqKmerBlast (const CBioTreeDynamic::CBioNode &node) const
 

Protected Attributes

string m_LabelFeatureTag
 
string m_ColorFeatureTag
 
TLabelColorMap m_LabelsColors
 
string m_Error
 
bool m_FoundQueryNode
 
bool m_FoundSeqFromType
 
int m_LeafCount
 
bool m_FoundSeqFromVerifiedMat
 
bool m_FoundSeqReferenceDB
 
bool m_FoundSeqKmerBlast
 

Detailed Description

Tree visitor, finds all labels and node colors for leafes.

Definition at line 107 of file phytree_simplify.hpp.

Member Typedef Documentation

◆ TLabelColorMap

Definition at line 110 of file phytree_simplify.hpp.

◆ TLabelColorMap_I

Definition at line 111 of file phytree_simplify.hpp.

Constructor & Destructor Documentation

◆ CPhyTreeLabelTracker()

CPhyTreeLabelTracker::CPhyTreeLabelTracker ( const string label,
const string color,
CBioTreeDynamic tree 
)

Member Function Documentation

◆ Begin()

TLabelColorMap_I CPhyTreeLabelTracker::Begin ( void  )
inline

Definition at line 119 of file phytree_simplify.hpp.

References map_checker< Container >::begin(), and m_LabelsColors.

◆ End()

TLabelColorMap_I CPhyTreeLabelTracker::End ( void  )
inline

Definition at line 120 of file phytree_simplify.hpp.

References map_checker< Container >::end(), and m_LabelsColors.

◆ FoundQueryNode()

bool CPhyTreeLabelTracker::FoundQueryNode ( void  ) const
inline

Definition at line 122 of file phytree_simplify.hpp.

References m_FoundQueryNode.

◆ FoundSeqFromType()

bool CPhyTreeLabelTracker::FoundSeqFromType ( void  ) const
inline

Definition at line 123 of file phytree_simplify.hpp.

References m_FoundSeqFromType.

◆ FoundSeqFromVerifiedMat()

bool CPhyTreeLabelTracker::FoundSeqFromVerifiedMat ( void  ) const
inline

Definition at line 124 of file phytree_simplify.hpp.

References m_FoundSeqFromVerifiedMat.

◆ FoundSeqKmerBlast()

bool CPhyTreeLabelTracker::FoundSeqKmerBlast ( void  ) const
inline

Definition at line 126 of file phytree_simplify.hpp.

References m_FoundSeqKmerBlast.

◆ FoundSeqReferenceDB()

bool CPhyTreeLabelTracker::FoundSeqReferenceDB ( void  ) const
inline

Definition at line 125 of file phytree_simplify.hpp.

References m_FoundSeqReferenceDB.

◆ GetError()

const string& CPhyTreeLabelTracker::GetError ( void  ) const
inline

Definition at line 118 of file phytree_simplify.hpp.

References m_Error.

◆ GetLeafCount()

int CPhyTreeLabelTracker::GetLeafCount ( void  ) const
inline

Definition at line 127 of file phytree_simplify.hpp.

References m_LeafCount.

◆ GetNumLabels()

unsigned int CPhyTreeLabelTracker::GetNumLabels ( void  ) const
inline

Definition at line 121 of file phytree_simplify.hpp.

References m_LabelsColors, and map_checker< Container >::size().

◆ operator()()

ETreeTraverseCode CPhyTreeLabelTracker::operator() ( CBioTreeDynamic::CBioNode &  node,
int  delta 
)

◆ x_IsQuery()

bool CPhyTreeLabelTracker::x_IsQuery ( const CBioTreeDynamic::CBioNode &  node) const
protected

◆ x_IsSeqFromType()

bool CPhyTreeLabelTracker::x_IsSeqFromType ( const CBioTreeDynamic::CBioNode &  node) const
protected

◆ x_IsSeqFromVerifiedMat()

bool CPhyTreeLabelTracker::x_IsSeqFromVerifiedMat ( const CBioTreeDynamic::CBioNode &  node) const
protected

◆ x_IsSeqKmerBlast()

bool CPhyTreeLabelTracker::x_IsSeqKmerBlast ( const CBioTreeDynamic::CBioNode &  node) const
protected

◆ x_IsSeqReferenceDB()

bool CPhyTreeLabelTracker::x_IsSeqReferenceDB ( const CBioTreeDynamic::CBioNode &  node) const
protected

Member Data Documentation

◆ m_ColorFeatureTag

string CPhyTreeLabelTracker::m_ColorFeatureTag
protected

Definition at line 138 of file phytree_simplify.hpp.

Referenced by operator()().

◆ m_Error

string CPhyTreeLabelTracker::m_Error
protected

Definition at line 140 of file phytree_simplify.hpp.

Referenced by CPhyTreeLabelTracker(), GetError(), and operator()().

◆ m_FoundQueryNode

bool CPhyTreeLabelTracker::m_FoundQueryNode
protected

Definition at line 141 of file phytree_simplify.hpp.

Referenced by FoundQueryNode(), and operator()().

◆ m_FoundSeqFromType

bool CPhyTreeLabelTracker::m_FoundSeqFromType
protected

Definition at line 142 of file phytree_simplify.hpp.

Referenced by FoundSeqFromType(), and operator()().

◆ m_FoundSeqFromVerifiedMat

bool CPhyTreeLabelTracker::m_FoundSeqFromVerifiedMat
protected

Definition at line 144 of file phytree_simplify.hpp.

Referenced by FoundSeqFromVerifiedMat(), and operator()().

◆ m_FoundSeqKmerBlast

bool CPhyTreeLabelTracker::m_FoundSeqKmerBlast
protected

Definition at line 146 of file phytree_simplify.hpp.

Referenced by FoundSeqKmerBlast(), and operator()().

◆ m_FoundSeqReferenceDB

bool CPhyTreeLabelTracker::m_FoundSeqReferenceDB
protected

Definition at line 145 of file phytree_simplify.hpp.

Referenced by FoundSeqReferenceDB(), and operator()().

◆ m_LabelFeatureTag

string CPhyTreeLabelTracker::m_LabelFeatureTag
protected

Definition at line 137 of file phytree_simplify.hpp.

Referenced by operator()().

◆ m_LabelsColors

TLabelColorMap CPhyTreeLabelTracker::m_LabelsColors
protected

Definition at line 139 of file phytree_simplify.hpp.

Referenced by Begin(), CPhyTreeLabelTracker(), End(), GetNumLabels(), and operator()().

◆ m_LeafCount

int CPhyTreeLabelTracker::m_LeafCount
protected

Definition at line 143 of file phytree_simplify.hpp.

Referenced by CPhyTreeLabelTracker(), GetLeafCount(), and operator()().


The documentation for this class was generated from the following files:
Modified on Fri Jul 12 16:19:00 2024 by modify_doxy.py rev. 669887