Public Member Functions | List of all members
EdgeChain Class Reference

#include <ap_tree_nlen.hxx>

Inheritance diagram for EdgeChain:
Inheritance graph
Collaboration diagram for EdgeChain:
Collaboration graph

Public Member Functions

 EdgeChain (AP_tree_edge *start_, EdgeSpec whichEdges, bool depthFirst, const AP_tree_nlen *skip=NULp, bool includeStart=true)
 ~EdgeChain ()
size_t size () const
 operator bool () const
AP_tree_edgeoperator* ()
const EdgeChainoperator++ ()
void restart ()

Detailed Description

Definition at line 355 of file ap_tree_nlen.hxx.

Constructor & Destructor Documentation

EdgeChain::EdgeChain ( AP_tree_edge start_,
EdgeSpec  whichEdges,
bool  depthFirst,
const AP_tree_nlen *  skip = NULp,
bool  includeStart = true 

build a chain of edges for further processing

startEgdestart edge
whichEdgesspecifies which edges get chained
depthFirsttrue -> insert leafs before inner nodes (but whole son-subtree before other-son-subtree)
skipprevious node (will not recurse beyond)
includeStartinclude startEdge in chain?

Definition at line 172 of file AP_tree_edge.cxx.

References ap_assert, GBK_terminate(), AP_tree_edge::is_root_edge(), NULp, AP_tree_edge::otherNode(), and AP_tree_edge::sonNode().

EdgeChain::~EdgeChain ( )

Definition at line 362 of file ap_tree_nlen.hxx.

Member Function Documentation

size_t EdgeChain::size ( ) const
EdgeChain::operator bool ( ) const

Definition at line 367 of file ap_tree_nlen.hxx.

AP_tree_edge* EdgeChain::operator* ( )

Definition at line 370 of file ap_tree_nlen.hxx.

const EdgeChain& EdgeChain::operator++ ( )

Definition at line 373 of file ap_tree_nlen.hxx.

References ap_assert.

void EdgeChain::restart ( )

Definition at line 378 of file ap_tree_nlen.hxx.

Referenced by AP_tree_edge::mixTree(), and AP_tree_edge::nni_rec().

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