EdgeWriter Class Template Reference
[Input Output]

#include <lemon/lemon_writer.h>

Inherits LemonWriter::SectionWriter.

Inheritance diagram for EdgeWriter:

Inheritance graph
[legend]
List of all members.

Detailed Description

template<typename _Graph>
class lemon::EdgeWriter< _Graph >

The edges section's header line is @edges edges_name, but the edges_name may be empty.

Each line in the section contains the name of the edge and then the edge label.


Public Member Functions

template<typename _LabelWriter>
 EdgeWriter (LemonWriter &_writer, const _LabelWriter &_labelWriter, const std::string &_name=std::string())
 Constructor.
virtual ~EdgeWriter ()
 Destructor.
void writeEdge (const std::string &name, const Edge &item)
 Add an edge writer command for the EdgeWriter.

Protected Member Functions

virtual std::string header ()
 The header of the section.
virtual void write (std::ostream &os)
 Writer function of the section.


Constructor & Destructor Documentation

EdgeWriter LemonWriter _writer,
const _LabelWriter &  _labelWriter,
const std::string &  _name = std::string()
[inline]
 

Constructor for EdgeWriter. It creates the EdgeWriter and attach it into the given LemonWriter. The given _LabelWriter will write the edges' label what can be a edgeset writer.

virtual ~EdgeWriter  )  [inline, virtual]
 

Destructor for EdgeWriter.


Member Function Documentation

void writeEdge const std::string &  name,
const Edge &  item
[inline]
 

Add an edge writer command for the EdgeWriter.

virtual std::string header  )  [inline, protected, virtual]
 

It gives back the header of the section.

Implements LemonWriter::SectionWriter.

virtual void write std::ostream &  os  )  [inline, protected, virtual]
 

Write the content of the section.

Implements LemonWriter::SectionWriter.


The documentation for this class was generated from the following file:
Generated on Fri Feb 3 18:42:03 2006 for LEMON by  doxygen 1.4.6