Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

GraphReader Class Template Reference

#include <lemon/graph_reader.h>

List of all members.


Detailed Description

template<typename _Graph, typename _ReaderTraits = DefaultReaderTraits>
class lemon::GraphReader< _Graph, _ReaderTraits >

The reader class for the graph input.
See also:
GraphWriter

Graph Input-Output

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>
GraphReaderaddNodeMap (std::string name, Map &map)
 Add a new node map reader command for the reader.
template<typename Reader, typename Map>
GraphReaderaddNodeMap (std::string name, Map &map, const Reader &reader=Reader())
 Add a new node map reader command for the reader.
template<typename Reader>
GraphReaderskipNodeMap (std::string name, const Reader &reader=Reader())
 Add a new node map skipper command for the reader.
template<typename Map>
GraphReaderaddEdgeMap (std::string name, Map &map)
 Add a new edge map reader command for the reader.
template<typename Reader, typename Map>
GraphReaderaddEdgeMap (std::string name, Map &map, const Reader &reader=Reader())
 Add a new edge map reader command for the reader.
template<typename Reader>
GraphReaderskipEdgeMap (std::string name, const Reader &reader=Reader())
 Add a new edge map skipper command for the reader.
GraphReaderaddNode (std::string name, Node &node)
 Add a new labeled node reader for the reader.
GraphReaderaddEdge (std::string name, Edge &edge)
 Add a new labeled edge reader for the reader.
void run ()
 Executes the reader commands.


Constructor & Destructor Documentation

GraphReader std::istream &  _is,
Graph &  _graph,
const DefaultReader &  _reader = DefaultReader()
[inline]
 

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.

~GraphReader  )  [inline]
 

Destruct the graph reader.

Definition at line 238 of file graph_reader.h.


Member Function Documentation

GraphReader& addNodeMap std::string  name,
Map &  map
[inline]
 

Add a new node map reader command for the reader.

Definition at line 256 of file graph_reader.h.

GraphReader& addNodeMap std::string  name,
Map &  map,
const Reader &  reader = Reader()
[inline]
 

Add a new node map reader command for the reader.

Definition at line 265 of file graph_reader.h.

GraphReader& skipNodeMap std::string  name,
const Reader &  reader = Reader()
[inline]
 

Add a new node map skipper command for the reader.

Definition at line 279 of file graph_reader.h.

GraphReader& addEdgeMap std::string  name,
Map &  map
[inline]
 

Add a new edge map reader command for the reader.

Definition at line 293 of file graph_reader.h.

GraphReader& addEdgeMap std::string  name,
Map &  map,
const Reader &  reader = Reader()
[inline]
 

Add a new edge map reader command for the reader.

Definition at line 303 of file graph_reader.h.

GraphReader& skipEdgeMap std::string  name,
const Reader &  reader = Reader()
[inline]
 

Add a new edge map skipper command for the reader.

Definition at line 317 of file graph_reader.h.

GraphReader& addNode std::string  name,
Node &  node
[inline]
 

Add a new labeled node reader for the reader.

Definition at line 330 of file graph_reader.h.

GraphReader& addEdge std::string  name,
Edge &  edge
[inline]
 

Add a new labeled edge reader for the reader.

Definition at line 341 of file graph_reader.h.

void run  )  [inline]
 

Executes the reader commands.

Definition at line 352 of file graph_reader.h.


The documentation for this class was generated from the following file:
Generated on Sat Mar 19 10:58:50 2005 for LEMON by  doxygen 1.4.1