PathReader Class Template Reference

#include <lemon/path_utils.h>

List of all members.


Detailed Description

template<typename Path>
class lemon::PathReader< Path >

This class can read paths from files. You can store paths in distinict mapset or in attributes section.

      GraphReader<SmartGraph> gr(std::cout, g);
      NodeMapReader<SmartGraph> nmr(gr, g, gr);
     
      SmartGraph::NodeMap<Path<SmartGraph> > pnm(g);
      nmr.readNodeMap("pnm", pnm, PathReader<Path<SmartGraph> >(gr));
     
      gr.run();

Warning:
Do not use this class to read node or edge map values from nodesets or edgesets. The edges are not surely constructed when the edge list should be read. Rather use NodeMapReader, EdgeSetReader or UEdgeSetReader to read distinict map sets from file.

Public Member Functions

template<typename EdgeLabelReader>
 PathReader (const EdgeLabelReader &_edgeLabelReader)
 Constructor.
void read (std::istream &is, Value &value) const
 Reader function.

Constructor & Destructor Documentation

PathReader ( const EdgeLabelReader &  _edgeLabelReader  )  [inline, explicit]

The paramter shold be an edge label reader which could be a GraphReader or an EdgeSetReader.


Member Function Documentation

void read ( std::istream &  is,
Value value 
) const [inline]

Reads the path from the current stream. The representation is the edge labels beetween parentheses.


The documentation for this class was generated from the following file:

Generated on Sat Apr 19 14:21:14 2008 for LEMON by  doxygen 1.5.5