UEdgeReader Class Template Reference
[Section readers and writers]

#include <lemon/lemon_reader.h>

Inherits LemonReader::SectionReader.

Inheritance diagram for UEdgeReader:

Inheritance graph
[legend]
List of all members.

Detailed Description

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

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

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


Public Member Functions

template<typename _LabelReader>
 UEdgeReader (LemonReader &_reader, const _LabelReader &_labelReader, const std::string &_name=std::string())
 Constructor.
virtual ~UEdgeReader ()
 Destructor.
void readUEdge (const std::string &name, UEdge &item)
 Add an undirected edge reader command for the UEdgeReader.
void readEdge (const std::string &name, Edge &item)
 Add an edge reader command for the UEdgeReader.

Protected Member Functions

virtual bool header (const std::string &line)
 Gives back true when the SectionReader can process the section with the given header line.
virtual void read (std::istream &is)
 Reader function of the section.


Constructor & Destructor Documentation

UEdgeReader ( LemonReader _reader,
const _LabelReader &  _labelReader,
const std::string &  _name = std::string() 
) [inline]

Constructor for UEdgeReader. It creates the UEdgeReader and attach it into the given LemonReader. It will use the given undirected edge id reader to give back the edges. The reader will read the section only if the _name and the uedges_name are the same.

virtual ~UEdgeReader (  )  [inline, virtual]

Destructor for UEdgeReader.


Member Function Documentation

void readUEdge ( const std::string &  name,
UEdge &  item 
) [inline]

Add an undirected edge reader command for the UEdgeReader.

void readEdge ( const std::string &  name,
Edge &  item 
) [inline]

Add an edge reader command for the UEdgeReader.

virtual bool header ( const std::string &  line  )  [inline, protected, virtual]

It gives back true when the header line start with @edges, and the header line's name and the reader's name are the same.

Implements LemonReader::SectionReader.

virtual void read ( std::istream &  is  )  [inline, protected, virtual]

It reads the content of the section.

Implements LemonReader::SectionReader.


The documentation for this class was generated from the following file:
Generated on Tue Oct 31 09:50:55 2006 for LEMON by  doxygen 1.5.1