Changeset 209:765619b7cbb2 in lemon-1.2 for lemon/bits/default_map.h
- Timestamp:
- 07/13/08 20:51:02 (16 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lemon/bits/default_map.h
r107 r209 1 /* -*- C++-*-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 5 * Copyright (C) 2003-2008 … … 30 30 31 31 namespace lemon { 32 33 32 33 34 34 //#ifndef LEMON_USE_DEBUG_MAP 35 35 … … 141 141 }; 142 142 143 // #else 143 // #else 144 144 145 145 // template <typename _Graph, typename _Item, typename _Value> … … 148 148 // }; 149 149 150 // #endif 150 // #endif 151 151 152 152 /// \e 153 153 template <typename _Graph, typename _Item, typename _Value> 154 class DefaultMap 154 class DefaultMap 155 155 : public DefaultMapSelector<_Graph, _Item, _Value>::Map { 156 156 public: 157 157 typedef typename DefaultMapSelector<_Graph, _Item, _Value>::Map Parent; 158 158 typedef DefaultMap<_Graph, _Item, _Value> Map; 159 159 160 160 typedef typename Parent::Graph Graph; 161 161 typedef typename Parent::Value Value; 162 162 163 163 explicit DefaultMap(const Graph& graph) : Parent(graph) {} 164 DefaultMap(const Graph& graph, const Value& value) 164 DefaultMap(const Graph& graph, const Value& value) 165 165 : Parent(graph, value) {} 166 166
Note: See TracChangeset
for help on using the changeset viewer.