All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
List of all members | Public Types | Public Member Functions | Related Functions
SourceMap< GR > Class Template Reference

Detailed Description

template<typename GR>
class lemon::SourceMap< GR >

SourceMap provides access for the source node of each arc in a digraph, which is returned by the source() function of the digraph.

Template Parameters
GRThe digraph type.
See Also
TargetMap

#include <lemon/maps.h>

Public Types

typedef GR::Arc Key
 The key type (the Arc type of the digraph).
 
typedef GR::Node Value
 The value type (the Node type of the digraph).
 

Public Member Functions

 SourceMap (const GR &digraph)
 Constructor.
 
Value operator[] (const Key &arc) const
 

Related Functions

(Note that these are not member functions.)

template<typename GR >
SourceMap< GR > sourceMap (const GR &graph)
 Returns a SourceMap class.
 

Constructor & Destructor Documentation

SourceMap ( const GR &  digraph)
inlineexplicit

Constructor.

Parameters
digraphThe digraph that the map belongs to.

Member Function Documentation

Value operator[] ( const Key arc) const
inline

Returns the source node of the given arc.