My Project
Loading...
Searching...
No Matches
List of all members | Public Member Functions | Private Member Functions
MappableDigraphComponent< BAS >::NodeMap< V > Class Template Reference

Detailed Description

template<typename BAS = BaseDigraphComponent>
template<typename V>
class lemon::concepts::MappableDigraphComponent< BAS >::NodeMap< V >

Standard graph map for the nodes. It conforms to the ReferenceMap concept.

#include <lemon/concepts/graph_components.h>

+ Inheritance diagram for MappableDigraphComponent< BAS >::NodeMap< V >:

Public Member Functions

 NodeMap (const MappableDigraphComponent &digraph)
 Construct a new map.
 
 NodeMap (const MappableDigraphComponent &digraph, const V &value)
 Construct a new map with default value.
 
- Public Member Functions inherited from GraphMap< MappableDigraphComponent, Node, V >
 GraphMap (const MappableDigraphComponent &)
 Construct a new map.
 
 GraphMap (const MappableDigraphComponent &, const Value &)
 Construct a new map with default value.
 
- Public Member Functions inherited from ReferenceMap< K, T, R, CR >
Reference operator[] (const Key &)
 Returns a reference to the value associated with the given key.
 
ConstReference operator[] (const Key &) const
 Returns a const reference to the value associated with the given key.
 
void set (const Key &k, const Value &t)
 Sets the value associated with the given key.
 
- Public Member Functions inherited from ReadWriteMap< K, T >
Value operator[] (const Key &) const
 Returns the value associated with the given key.
 
void set (const Key &, const Value &)
 Sets the value associated with the given key.
 
- Public Member Functions inherited from ReadMap< K, T >
Value operator[] (const Key &) const
 Returns the value associated with the given key.
 
- Public Member Functions inherited from WriteMap< K, T >
void set (const Key &, const Value &)
 Sets the value associated with the given key.
 
 WriteMap ()
 Default constructor.
 

Private Member Functions

 NodeMap (const NodeMap &nm)
 Copy constructor.
 
template<typename CMap >
NodeMapoperator= (const CMap &)
 Assignment operator.
 

Additional Inherited Members

- Public Types inherited from GraphMap< MappableDigraphComponent, Node, V >
typedef Node Key
 The key type of the map.
 
typedef V Value
 The value type of the map.
 
typedef ValueReference
 The reference type of the map.
 
typedef const ValueConstReference
 The const reference type of the map.
 
- Public Types inherited from ReferenceMap< K, T, R, CR >
typedef True ReferenceMapTag
 Tag for reference maps.
 
typedef K Key
 The key type of the map.
 
typedef T Value
 The value type of the map. (The type of objects associated with the keys).
 
typedef R Reference
 The reference type of the map.
 
typedef CR ConstReference
 The const reference type of the map.
 
- Public Types inherited from ReadWriteMap< K, T >
typedef K Key
 The key type of the map.
 
typedef T Value
 The value type of the map. (The type of objects associated with the keys).
 
- Public Types inherited from ReadMap< K, T >
typedef K Key
 The key type of the map.
 
typedef T Value
 The value type of the map. (The type of objects associated with the keys).
 
- Public Types inherited from WriteMap< K, T >
typedef K Key
 The key type of the map.
 
typedef T Value
 The value type of the map. (The type of objects associated with the keys).
 

Constructor & Destructor Documentation

◆ NodeMap() [1/3]

template<typename BAS = BaseDigraphComponent>
template<typename V >
NodeMap ( const MappableDigraphComponent digraph)
inlineexplicit

Construct a new map for the digraph.

◆ NodeMap() [2/3]

template<typename BAS = BaseDigraphComponent>
template<typename V >
NodeMap ( const MappableDigraphComponent digraph,
const V value 
)
inline

Construct a new map for the digraph and initalize the values.

◆ NodeMap() [3/3]

template<typename BAS = BaseDigraphComponent>
template<typename V >
NodeMap ( const NodeMap< V > &  nm)
inlineprivate

Copy Constructor.

Member Function Documentation

◆ operator=()

template<typename BAS = BaseDigraphComponent>
template<typename V >
template<typename CMap >
NodeMap & operator= ( const CMap )
inlineprivate

Assignment operator.