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

Search Toolkit Book for CTreeCont

#include "ctreecont.hpp"
(Private to src/objects/taxon1.)

+ Collaboration diagram for CTreeCont:

Public Member Functions

 CTreeCont ()
 
CTreeIteratorGetIterator ()
 
CTreeConstIteratorGetConstIterator () const
 
bool SetRoot (CTreeContNodeBase *root)
 
const CTreeContNodeBaseGetRoot () const
 
bool AddNode (CTreeContNodeBase *pParentNode, CTreeContNodeBase *pNewNode)
 
void Clear ()
 
 ~CTreeCont ()
 

Private Member Functions

void DeleteSubtree (CTreeContNodeBase *stroot, CTreeIterator *pCur)
 
void Done (CTreeContNodeBase *node)
 
void MoveNode (CTreeContNodeBase *node2move, CTreeContNodeBase *new_parent)
 
void MoveChildren (CTreeContNodeBase *old_parent, CTreeContNodeBase *new_parent)
 
void Merge (CTreeContNodeBase *src, CTreeContNodeBase *dst, CTreeIterator *pCur)
 
void AddChild (CTreeContNodeBase *parent)
 
void DelNodeInternal (CTreeContNodeBase *pN)
 

Private Attributes

CTreeContNodeBasem_root
 

Friends

class CTreeIterator
 
class CTreeConstIterator
 

Detailed Description

Definition at line 96 of file ctreecont.hpp.

Constructor & Destructor Documentation

◆ CTreeCont()

CTreeCont::CTreeCont ( )
inline

Definition at line 101 of file ctreecont.hpp.

References m_root.

◆ ~CTreeCont()

CTreeCont::~CTreeCont ( )

Definition at line 496 of file ctreecont.cpp.

References DelNodeInternal(), and m_root.

Member Function Documentation

◆ AddChild()

void CTreeCont::AddChild ( CTreeContNodeBase parent)
private

Definition at line 450 of file ctreecont.cpp.

Referenced by CTreeIterator::AddChild(), and CTreeIterator::AddSibling().

◆ AddNode()

bool CTreeCont::AddNode ( CTreeContNodeBase pParentNode,
CTreeContNodeBase pNewNode 
)

◆ Clear()

void CTreeCont::Clear ( void  )
inline

Definition at line 121 of file ctreecont.hpp.

References DelNodeInternal(), and m_root.

◆ DeleteSubtree()

void CTreeCont::DeleteSubtree ( CTreeContNodeBase stroot,
CTreeIterator pCur 
)
private

Definition at line 376 of file ctreecont.cpp.

Referenced by CTreeIterator::DeleteSubtree().

◆ DelNodeInternal()

void CTreeCont::DelNodeInternal ( CTreeContNodeBase pN)
private

◆ Done()

void CTreeCont::Done ( CTreeContNodeBase node)
private

◆ GetConstIterator()

CTreeConstIterator * CTreeCont::GetConstIterator ( ) const

Definition at line 368 of file ctreecont.cpp.

References CTreeConstIterator.

Referenced by CTaxon1::GetTreeIterator().

◆ GetIterator()

CTreeIterator * CTreeCont::GetIterator ( void  )

◆ GetRoot()

const CTreeContNodeBase* CTreeCont::GetRoot ( void  ) const
inline

Definition at line 116 of file ctreecont.hpp.

References m_root.

Referenced by CTaxon1::GetPopsetJoin().

◆ Merge()

void CTreeCont::Merge ( CTreeContNodeBase src,
CTreeContNodeBase dst,
CTreeIterator pCur 
)
private

Definition at line 468 of file ctreecont.cpp.

Referenced by CTreeIterator::Merge().

◆ MoveChildren()

void CTreeCont::MoveChildren ( CTreeContNodeBase old_parent,
CTreeContNodeBase new_parent 
)
private

Definition at line 432 of file ctreecont.cpp.

Referenced by CTreeIterator::MoveChildren().

◆ MoveNode()

void CTreeCont::MoveNode ( CTreeContNodeBase node2move,
CTreeContNodeBase new_parent 
)
private

Definition at line 414 of file ctreecont.cpp.

Referenced by CTreeIterator::MoveNode().

◆ SetRoot()

bool CTreeCont::SetRoot ( CTreeContNodeBase root)
inline

Friends And Related Function Documentation

◆ CTreeConstIterator

friend class CTreeConstIterator
friend

Definition at line 98 of file ctreecont.hpp.

Referenced by GetConstIterator().

◆ CTreeIterator

friend class CTreeIterator
friend

Definition at line 97 of file ctreecont.hpp.

Referenced by GetIterator().

Member Data Documentation

◆ m_root

CTreeContNodeBase* CTreeCont::m_root
private

The documentation for this class was generated from the following files:
Modified on Fri Sep 20 14:57:32 2024 by modify_doxy.py rev. 669887