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

UndirEdgeReader Class Template Reference
[Input Output]

#include <lemon/lemon_reader.h>

Inherits CommonSectionReaderBase.

Inheritance diagram for UndirEdgeReader:

Inheritance graph
[legend]
List of all members.

Detailed Description

template<typename _Graph>
class lemon::UndirEdgeReader< _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 name of the undirected edge and then the undirected edge id.


Public Member Functions

template<typename _IdReader>
 UndirEdgeReader (LemonReader &_reader, const _IdReader &_idReader, const std::string &_id=std::string())
 Constructor.
virtual ~UndirEdgeReader ()
 Destructor.
void readUndirEdge (const std::string &name, UndirEdge &item)
 Add an undirected edge reader command for the UndirEdgeReader.
void readEdge (const std::string &name, Edge &item)
 Add an edge reader command for the UndirEdgeReader.

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

UndirEdgeReader LemonReader _reader,
const _IdReader &  _idReader,
const std::string _id = std::string()
[inline]
 

Constructor for UndirEdgeReader. It creates the UndirEdgeReader 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 _id and the undiredges_id are the same.

virtual ~UndirEdgeReader  )  [inline, virtual]
 

Destructor for UndirEdgeReader.


Member Function Documentation

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

Add an undirected edge reader command for the UndirEdgeReader.

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

Add an edge reader command for the UndirEdgeReader.

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 id and the reader's id 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 Sat Aug 27 14:15:47 2005 for LEMON by  doxygen 1.4.4