PathReader< Path > Class Template Reference


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.
#include <lemon/path_utils.h>

List of all members.

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.


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