#include <lemon/graph_reader.h>
Definition at line 216 of file graph_reader.h.
Public Member Functions | |
GraphReader (std::istream &_is, Graph &_graph, const DefaultReader &_reader=DefaultReader()) | |
Construct a new GraphReader. | |
~GraphReader () | |
Destruct the graph reader. | |
template<typename Map> | |
GraphReader & | addNodeMap (std::string name, Map &map) |
Add a new node map reader command for the reader. | |
template<typename Reader, typename Map> | |
GraphReader & | addNodeMap (std::string name, Map &map, const Reader &reader=Reader()) |
Add a new node map reader command for the reader. | |
template<typename Reader> | |
GraphReader & | skipNodeMap (std::string name, const Reader &reader=Reader()) |
Add a new node map skipper command for the reader. | |
template<typename Map> | |
GraphReader & | addEdgeMap (std::string name, Map &map) |
Add a new edge map reader command for the reader. | |
template<typename Reader, typename Map> | |
GraphReader & | addEdgeMap (std::string name, Map &map, const Reader &reader=Reader()) |
Add a new edge map reader command for the reader. | |
template<typename Reader> | |
GraphReader & | skipEdgeMap (std::string name, const Reader &reader=Reader()) |
Add a new edge map skipper command for the reader. | |
GraphReader & | addNode (std::string name, Node &node) |
Add a new labeled node reader for the reader. | |
GraphReader & | addEdge (std::string name, Edge &edge) |
Add a new labeled edge reader for the reader. | |
void | run () |
Executes the reader commands. |
|
Construct a new GraphReader. It reads from the given map, it constructs the given map and it use the given reader as the default skipper. Definition at line 231 of file graph_reader.h. |
|
Destruct the graph reader. Definition at line 238 of file graph_reader.h. |
|
Add a new node map reader command for the reader. Definition at line 256 of file graph_reader.h. |
|
Add a new node map reader command for the reader. Definition at line 265 of file graph_reader.h. |
|
Add a new node map skipper command for the reader. Definition at line 279 of file graph_reader.h. |
|
Add a new edge map reader command for the reader. Definition at line 293 of file graph_reader.h. |
|
Add a new edge map reader command for the reader. Definition at line 303 of file graph_reader.h. |
|
Add a new edge map skipper command for the reader. Definition at line 317 of file graph_reader.h. |
|
Add a new labeled node reader for the reader. Definition at line 330 of file graph_reader.h. |
|
Add a new labeled edge reader for the reader. Definition at line 341 of file graph_reader.h. |
|
Executes the reader commands. Definition at line 352 of file graph_reader.h. |