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

GraphWriter Class Template Reference

#include <lemon/graph_writer.h>

List of all members.


Detailed Description

template<typename _Graph, typename _WriterTraits = DefaultWriterTraits>
class lemon::GraphWriter< _Graph, _WriterTraits >

The writer class for the graph output.
See also:
GraphReader

Graph Input-Output

Definition at line 149 of file graph_writer.h.

Public Member Functions

 GraphWriter (std::ostream &_os, Graph &_graph)
 Construct a new GraphWriter.
 ~GraphWriter ()
 Destruct the graph writer.
template<typename Map>
GraphWriteraddNodeMap (std::string name, const Map &map)
 Add a new node map writer command for the writer.
template<typename Writer, typename Map>
GraphWriteraddNodeMap (std::string name, const Map &map, const Writer &writer=Writer())
 Add a new node map writer command for the writer.
template<typename Map>
GraphWriteraddEdgeMap (std::string name, const Map &map)
 Add a new edge map writer command for the writer.
template<typename Writer, typename Map>
GraphWriteraddEdgeMap (std::string name, const Map &map, const Writer &writer=Writer())
 Add a new edge map writer command for the writer.
GraphWriteraddNode (std::string name, const Node &node)
 Add a new labeled node writer for the writer.
GraphWriteraddEdge (std::string name, const Edge &edge)
 Add a new labeled edge writer for the writer.
void run ()
 Executes the writer commands.


Constructor & Destructor Documentation

GraphWriter std::ostream &  _os,
Graph &  _graph
[inline]
 

Construct a new GraphWriter. It writes from the given map, it constructs the given map and it use the given writer as the default skipper.

Definition at line 165 of file graph_writer.h.

~GraphWriter  )  [inline]
 

Destruct the graph writer.

Definition at line 171 of file graph_writer.h.


Member Function Documentation

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

Add a new node map writer command for the writer.

Definition at line 190 of file graph_writer.h.

Here is the call graph for this function:

GraphWriter& addNodeMap std::string  name,
const Map &  map,
const Writer &  writer = Writer()
[inline]
 

Add a new node map writer command for the writer.

Definition at line 199 of file graph_writer.h.

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

Add a new edge map writer command for the writer.

Definition at line 212 of file graph_writer.h.

Here is the call graph for this function:

GraphWriter& addEdgeMap std::string  name,
const Map &  map,
const Writer &  writer = Writer()
[inline]
 

Add a new edge map writer command for the writer.

Definition at line 222 of file graph_writer.h.

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

Add a new labeled node writer for the writer.

Definition at line 232 of file graph_writer.h.

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

Add a new labeled edge writer for the writer.

Definition at line 240 of file graph_writer.h.

void run  )  [inline]
 

Executes the writer commands.

Definition at line 248 of file graph_writer.h.


The documentation for this class was generated from the following file:
Generated on Mon Feb 21 15:02:33 2005 for LEMON by  doxygen 1.4.1