PathDumper Class Template Reference
[Concepts]


Detailed Description

template<typename _Digraph>
class lemon::concepts::PathDumper< _Digraph >

A skeleton structure for path dumpers. The path dumpers are the generalization of the paths. The path dumpers can enumerate the arcs of the path wheter in forward or in backward order. In most time these classes are not used directly rather it used to assign a dumped class to a real path type.

The main purpose of this concept is that the shortest path algorithms can enumerate easily the arcs in reverse order. If we would like to give back a real path from these algorithms then we should create a temporarly path object. In LEMON such algorithms gives back a path dumper what can assigned to a real path and the dumpers can be implemented as an adaptor class to the predecessor map.

Template Parameters:
_Digraph The digraph type in which the path is.
The paths can be constructed from any path type by a template constructor or a template assignment operator. #include <lemon/concepts/path.h>

List of all members.

Classes

class  ArcIt
 LEMON style iterator for path arcs. More...
class  RevArcIt
 LEMON style iterator for path arcs. More...

Public Types

typedef _Digraph Digraph
 Type of the underlying digraph.
typedef Digraph::Arc Arc
 Arc type of the underlying digraph.
typedef False RevPathTag
 Forward or reverse dumping.

Public Member Functions

int length () const
 Length of the path ie. the number of arcs in the path.
bool empty () const
 Returns whether the path is empty.


Member Typedef Documentation

typedef False RevPathTag

If the RevPathTag is defined and true then reverse dumping is provided in the path dumper. In this case instead of the ArcIt the RevArcIt iterator should be implemented in the dumper.


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

Generated on Sun Oct 12 20:09:59 2008 for LEMON by  doxygen 1.5.7.1