abLEMON 1.9.0-101-gccb8629
A maintained fork of LEMON
Loading...
Searching...
No Matches
SplitNodes< DGR >::CombinedNodeMap< In , Out > Class Template Reference

Node map combined from two original node maps. More...

#include <lemon/adaptors.h>

Public Types

typedef Node Key
 The key type of the map.
typedef In::Value Value
 The value type of the map.

Public Member Functions

 CombinedNodeMap (In &in_map, Out &out_map)
 Constructor.
Value operator[] (const Key &key) const
 Returns the value associated with the given key.
Value & operator[] (const Key &key)
 Returns a reference to the value associated with the given key.
void set (const Key &key, const Value &value)
 Sets the value associated with the given key.

Detailed Description

template< typename DGR >
template< typename In , typename Out >
class lemon::SplitNodes< DGR >::CombinedNodeMap< In , Out >

This map adaptor class adapts two node maps of the original digraph to get a node map of the split digraph. Its value type is inherited from the first node map type (In).

Template Parameters
InThe type of the node map for the in-nodes.
OutThe type of the node map for the out-nodes.