bpp-phyl3  3.0.0
bpp::TreeIterator Class Referenceabstract

#include <Bpp/Phyl/Legacy/TreeIterator.h>

+ Inheritance diagram for bpp::TreeIterator:
+ Collaboration diagram for bpp::TreeIterator:

Public Member Functions

 TreeIterator (const TreeTemplate< Node > &tree)
 
 TreeIterator (const TreeIterator &tree_iterator)
 
TreeIteratoroperator= (const TreeIterator &tree_iterator)
 
virtual ~TreeIterator ()
 
void init ()
 
const Nodebegin ()
 
virtual const Nodenext ()=0
 
TreeIteratoroperator++ ()
 
const Nodeend ()
 

Protected Attributes

const TreeTemplate< Node > & tree_
 
const NodecurrNode_
 
map< int, bool > nodeToVisited_
 
map< int, bool > nodeToSonVisited_
 
map< int, size_t > nodeToLastVisitedSonIndex_
 

Detailed Description

Definition at line 36 of file TreeIterator.h.

Constructor & Destructor Documentation

◆ TreeIterator() [1/2]

bpp::TreeIterator::TreeIterator ( const TreeTemplate< Node > &  tree)
inlineexplicit

Definition at line 47 of file TreeIterator.h.

◆ TreeIterator() [2/2]

bpp::TreeIterator::TreeIterator ( const TreeIterator tree_iterator)
inlineexplicit

Definition at line 55 of file TreeIterator.h.

◆ ~TreeIterator()

virtual bpp::TreeIterator::~TreeIterator ( )
inlinevirtual

Definition at line 65 of file TreeIterator.h.

Member Function Documentation

◆ begin()

const Node * TreeIterator::begin ( )

Definition at line 26 of file TreeIterator.cpp.

◆ end()

const Node* bpp::TreeIterator::end ( )
inline

Definition at line 73 of file TreeIterator.h.

◆ init()

void TreeIterator::init ( )

Definition at line 14 of file TreeIterator.cpp.

◆ next()

virtual const Node* bpp::TreeIterator::next ( )
pure virtual

◆ operator++()

TreeIterator & TreeIterator::operator++ ( )

Definition at line 43 of file TreeIterator.cpp.

◆ operator=()

TreeIterator& bpp::TreeIterator::operator= ( const TreeIterator tree_iterator)

Member Data Documentation

◆ currNode_

const Node* bpp::TreeIterator::currNode_
protected

Definition at line 40 of file TreeIterator.h.

◆ nodeToLastVisitedSonIndex_

map<int, size_t> bpp::TreeIterator::nodeToLastVisitedSonIndex_
protected

Definition at line 43 of file TreeIterator.h.

◆ nodeToSonVisited_

map<int, bool> bpp::TreeIterator::nodeToSonVisited_
protected

Definition at line 42 of file TreeIterator.h.

◆ nodeToVisited_

map<int, bool> bpp::TreeIterator::nodeToVisited_
protected

Definition at line 41 of file TreeIterator.h.

◆ tree_

const TreeTemplate<Node>& bpp::TreeIterator::tree_
protected

Definition at line 39 of file TreeIterator.h.


The documentation for this class was generated from the following files: