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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

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

2. Creation<br />

FaceIt it;<br />

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

FaceIt it(const leda :: graph& G);<br />

introduces a variable it of this class associated with G.<br />

<strong>The</strong> graph is initialized by G. <strong>The</strong> face is initialized by<br />

G.first face( ).<br />

FaceIt it(const leda :: graph& G, leda :: face n);<br />

3. Operations<br />

void it.init(const leda :: graph& G)<br />

introduces a variable it of this class marked with n and associated<br />

with G.<br />

Precondition: n is a face of G.<br />

associates it with G and marks it with G.first face( ).<br />

void it.init(const leda :: graph& G, const leda :: face& v)<br />

associates it with G and marks it with v.<br />

void it.reset( ) resets it to G.first face( ), where G is the associated<br />

graph.<br />

void it.make invalid( ) makes it invalid, i.e. it.valid( ) will be false afterwards<br />

and it marks no face.<br />

void it.reset end( ) resets it to G.last face( ), where G is the associated<br />

graph.<br />

void it.update(leda :: face n)<br />

FaceIt&<br />

it = const FaceIt& it2<br />

it marks n afterwards.<br />

it is afterwards associated with the same graph and<br />

face as it2 . This method returns a reference to it.<br />

bool<br />

it == const FaceIt& it2<br />

returns true if and only if it and it2 are equal, i.e. if<br />

the marked faces are equal.<br />

leda :: face it.get face( ) returns the marked face or nil if it.valid( ) returns<br />

false.<br />

const leda :: graph& it.get graph( )<br />

returns the associated graph.

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

Saved successfully!

Ooh no, something went wrong!