lemon/bits/default_map.h
branch1.1
changeset 765 2b47dbd6612c
parent 622 20dac2104519
equal deleted inserted replaced
12:83b5b0e9751a 13:63b79953f0fa
     1 /* -*- mode: C++; indent-tabs-mode: nil; -*-
     1 /* -*- mode: C++; indent-tabs-mode: nil; -*-
     2  *
     2  *
     3  * This file is a part of LEMON, a generic C++ optimization library.
     3  * This file is a part of LEMON, a generic C++ optimization library.
     4  *
     4  *
     5  * Copyright (C) 2003-2009
     5  * Copyright (C) 2003-2011
     6  * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport
     6  * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport
     7  * (Egervary Research Group on Combinatorial Optimization, EGRES).
     7  * (Egervary Research Group on Combinatorial Optimization, EGRES).
     8  *
     8  *
     9  * Permission to use, modify and distribute this software is granted
     9  * Permission to use, modify and distribute this software is granted
    10  * provided that this copyright notice appears in all copies. For
    10  * provided that this copyright notice appears in all copies. For
   155     : public DefaultMapSelector<_Graph, _Item, _Value>::Map {
   155     : public DefaultMapSelector<_Graph, _Item, _Value>::Map {
   156     typedef typename DefaultMapSelector<_Graph, _Item, _Value>::Map Parent;
   156     typedef typename DefaultMapSelector<_Graph, _Item, _Value>::Map Parent;
   157 
   157 
   158   public:
   158   public:
   159     typedef DefaultMap<_Graph, _Item, _Value> Map;
   159     typedef DefaultMap<_Graph, _Item, _Value> Map;
   160     
   160 
   161     typedef typename Parent::GraphType GraphType;
   161     typedef typename Parent::GraphType GraphType;
   162     typedef typename Parent::Value Value;
   162     typedef typename Parent::Value Value;
   163 
   163 
   164     explicit DefaultMap(const GraphType& graph) : Parent(graph) {}
   164     explicit DefaultMap(const GraphType& graph) : Parent(graph) {}
   165     DefaultMap(const GraphType& graph, const Value& value)
   165     DefaultMap(const GraphType& graph, const Value& value)