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

UndirEdgeWriter Class Template Reference
[Input Output]

#include <lemon/lemon_writer.h>

Inherits CommonSectionWriterBase.

Inheritance diagram for UndirEdgeWriter:

Inheritance graph
[legend]
List of all members.

Detailed Description

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

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

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


Public Member Functions

template<typename _IdWriter>
 UndirEdgeWriter (LemonWriter &_writer, const _IdWriter &_idWriter, const std::string &_id=std::string())
 Constructor.
virtual ~UndirEdgeWriter ()
 Destructor.
void writeEdge (const std::string &name, const Edge &item)
 Add an edge writer command for the UndirEdgeWriter.
void writeUndirEdge (const std::string &name, const UndirEdge &item)
 Add an undirected edge writer command for the UndirEdgeWriter.

Protected Member Functions

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


Constructor & Destructor Documentation

UndirEdgeWriter LemonWriter _writer,
const _IdWriter &  _idWriter,
const std::string _id = std::string()
[inline]
 

Constructor for UndirEdgeWriter. It creates the UndirEdgeWriter and attach it into the given LemonWriter. The given _IdWriter will write the undirected edges' id what can be an undirected edgeset writer.

virtual ~UndirEdgeWriter  )  [inline, virtual]
 

Destructor for UndirEdgeWriter.


Member Function Documentation

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

Add an edge writer command for the UndirEdgeWriter.

void writeUndirEdge const std::string name,
const UndirEdge &  item
[inline]
 

Add an undirected edge writer command for the UndirEdgeWriter.

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

It gives back true when the header line start with @undiredges, and the header line's id and the writer's id are the same.

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 Sat Aug 27 14:15:58 2005 for LEMON by  doxygen 1.4.4