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.

void parser.append(const char ∗ key)<br />

appends key to the current path.<br />

void parser.goback( )<br />

removes the last key word from the current path. If the current<br />

path is empty this operation has no effect.<br />

3.3 <strong>User</strong> Defined Rules<br />

void parser.add graph rule for cur path(gml graph rule f, gml value type t)<br />

adds graph rule f for value type t and for the current path.<br />

void parser.add node rule for cur path(gml node rule f, gml value type t)<br />

adds node rule f for value type t and for the current path.<br />

void parser.add edge rule for cur path(gml edge rule f, gml value type t)<br />

adds edge rule f for value type t and for the current path.<br />

void parser.add graph rule(gml graph rule f, gml value type t, char ∗ key = 0)<br />

adds graph rule f for value type t and path graph.key to<br />

parser, if key is specified. Otherwise, f is added for the current<br />

path.<br />

void parser.add node rule(gml node rule f, gml value type t, char ∗ key = 0)<br />

adds node rule f for path graph.node.key (or the current path,<br />

if no key is specified) and value type t to parser.<br />

void parser.add edge rule(gml edge rule f, gml value type t, char ∗ key = 0)<br />

void parser.add new graph rule(gml graph rule f)<br />

void parser.add new node rule(gml node rule f)<br />

void parser.add new edge rule(gml edge rule f)<br />

adds edge rule f for path graph.edge.key (or the current path,<br />

if no key is specified) and value type t to parser.<br />

adds graph rule f to parser. During parsing f is called whenever<br />

an object o with path graph and type gml list is encountered.<br />

f is called before objects in the list of o are parsed.<br />

adds node rule f for path graph.node and value type gml list<br />

to parser. f is called before objects in the corresponding list<br />

are parsed.<br />

adds edge rule f for path graph.edge and value type gml list<br />

to parser. f is called before objects in the corresponding list<br />

are parsed.

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

Saved successfully!

Ooh no, something went wrong!