bpp-phyl3  3.0.0
bpp::PreOrderTreeIterator Class Reference

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

+ Inheritance diagram for bpp::PreOrderTreeIterator:
+ Collaboration diagram for bpp::PreOrderTreeIterator:

Public Member Functions

 PreOrderTreeIterator (const TreeTemplate< Node > &tree)
 
 ~PreOrderTreeIterator ()
 
const Nodenext ()
 
void init ()
 
const Nodebegin ()
 
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 94 of file TreeIterator.h.

Constructor & Destructor Documentation

◆ PreOrderTreeIterator()

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

Definition at line 98 of file TreeIterator.h.

◆ ~PreOrderTreeIterator()

bpp::PreOrderTreeIterator::~PreOrderTreeIterator ( )
inline

Definition at line 104 of file TreeIterator.h.

Member Function Documentation

◆ begin()

const Node * TreeIterator::begin ( )
inherited

Definition at line 26 of file TreeIterator.cpp.

◆ end()

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

Definition at line 73 of file TreeIterator.h.

◆ init()

void TreeIterator::init ( )
inherited

Definition at line 14 of file TreeIterator.cpp.

◆ next()

const Node * PreOrderTreeIterator::next ( )
virtual

Implements bpp::TreeIterator.

Definition at line 114 of file TreeIterator.cpp.

References bpp::Node::getNumberOfSons().

◆ operator++()

TreeIterator & TreeIterator::operator++ ( )
inherited

Definition at line 43 of file TreeIterator.cpp.

Member Data Documentation

◆ currNode_

const Node* bpp::TreeIterator::currNode_
protectedinherited

Definition at line 40 of file TreeIterator.h.

◆ nodeToLastVisitedSonIndex_

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

Definition at line 43 of file TreeIterator.h.

◆ nodeToSonVisited_

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

Definition at line 42 of file TreeIterator.h.

◆ nodeToVisited_

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

Definition at line 41 of file TreeIterator.h.

◆ tree_

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

Definition at line 39 of file TreeIterator.h.


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