Public Types | Public Member Functions

GridGraph::IndexMap Class Reference


Detailed Description

Map to get the indices of the nodes as dim2::Point<int>.

#include <lemon/grid_graph.h>

List of all members.

Public Types

typedef GridGraph::Node Key
 The key type of the map.
typedef dim2::Point< int > Value
 The value type of the map.

Public Member Functions

 IndexMap (const GridGraph &graph)
 Constructor.
Value operator[] (Key key) const

Constructor & Destructor Documentation

IndexMap ( const GridGraph graph) [inline]

Constructor


Member Function Documentation

Value operator[] ( Key  key) const [inline]

The subscript operator.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines