EdgeReader< _Graph > Class Template Reference
[Section readers and writers]


Detailed Description

template<typename _Graph>
class lemon::EdgeReader< _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 id. #include <lemon/lemon_reader.h>

Inheritance diagram for EdgeReader< _Graph >:

Inheritance graph
[legend]

List of all members.

Public Member Functions

template<typename _LabelReader >
 EdgeReader (LemonReader &_reader, const _LabelReader &_labelReader, const std::string &_name=std::string())
 Constructor.
virtual ~EdgeReader ()
 Destructor.
void readEdge (std::string label, Edge &item)

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

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

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

virtual ~EdgeReader (  )  [inline, virtual]

Destructor for EdgeReader.


Member Function Documentation

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

Add an edge reader command for the EdgeReader.

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 SectionReader.

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

It reads the content of the section.

Implements SectionReader.


Generated on Thu Jun 4 04:05:05 2009 for LEMON by  doxygen 1.5.9