31.01.2014 Views

Version 5.0 The LEDA User Manual

Version 5.0 The LEDA User Manual

Version 5.0 The LEDA User Manual

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

ool it.valid( ) returns true if and only if end of sequence not yet<br />

passed, i.e. if there is a face in the face set that was<br />

not yet passed.<br />

bool it.eol( ) returns !it.valid( ) which is true if and only if there is<br />

no successor face left, i.e. if all faces of the face set<br />

are passed (eol: end of list).<br />

FaceIt& ++it performs one step forward in the list of faces of the<br />

associated graph. If there is no successor face, it.eol( )<br />

will be true afterwards. This method returns a reference<br />

to it.<br />

Precondition: it.valid( ) returns true.<br />

FaceIt& −−it performs one step backward in the list of faces of<br />

the associated graph. If there is no predecessor face,<br />

it.eol( ) will be true afterwards. This method returns<br />

a reference to it.<br />

Precondition: it.valid( ) returns true.<br />

4. Implementation<br />

Creation of an iterator and all methods take constant time.<br />

13.5 Adjacency Iterators for leaving edges ( OutAdjIt<br />

)<br />

1. Definition<br />

a variable it of class OutAdjIt is an adjacency iterator that marks a node (which is fixed<br />

in contrast to linear node iterators) and iterates over the edges that leave this node.<br />

<strong>The</strong>re is a variant of the adjacency iterators, so–called circulators which are heavily used<br />

in the CGAL 2 . <strong>The</strong> names of the classes are OutAdjCirc and InAdjCirc and their<br />

interfaces are completely equal to the iterator versions while they internally use e.g.<br />

cyclic adj succ() instead of adj succ().<br />

#include < <strong>LEDA</strong>/graph/graph iterator.h ><br />

2. Creation<br />

OutAdjIt it; introduces a variable it of this class associated with no graph.<br />

2 See the CGAL homepage at http://www.cs.uu.nl/CGAL/.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!