Changes in lemon/bits/map_extender.h [664:4137ef9aacc6:314:2cc60866a0c9] in lemon
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lemon/bits/map_extender.h
r664 r314 3 3 * This file is a part of LEMON, a generic C++ optimization library. 4 4 * 5 * Copyright (C) 2003-200 95 * Copyright (C) 2003-2008 6 6 * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport 7 7 * (Egervary Research Group on Combinatorial Optimization, EGRES). … … 37 37 template <typename _Map> 38 38 class MapExtender : public _Map { 39 public: 40 39 41 typedef _Map Parent; 40 typedef typename Parent::GraphType GraphType;41 42 public:43 44 42 typedef MapExtender Map; 43 44 45 typedef typename Parent::Graph Graph; 45 46 typedef typename Parent::Key Item; 46 47 47 48 typedef typename Parent::Key Key; 48 49 typedef typename Parent::Value Value; 49 typedef typename Parent::Reference Reference;50 typedef typename Parent::ConstReference ConstReference;51 50 52 51 class MapIt; … … 58 57 public: 59 58 60 MapExtender(const Graph Type& graph)59 MapExtender(const Graph& graph) 61 60 : Parent(graph) {} 62 61 63 MapExtender(const Graph Type& graph, const Value& value)62 MapExtender(const Graph& graph, const Value& value) 64 63 : Parent(graph, value) {} 65 64 … … 77 76 public: 78 77 class MapIt : public Item { 79 typedef Item Parent; 80 81 public: 82 78 public: 79 80 typedef Item Parent; 83 81 typedef typename Map::Value Value; 84 82 … … 117 115 118 116 class ConstMapIt : public Item { 119 typedef Item Parent;120 121 public:117 public: 118 119 typedef Item Parent; 122 120 123 121 typedef typename Map::Value Value; … … 148 146 149 147 class ItemIt : public Item { 150 typedef Item Parent;151 152 public:148 public: 149 150 typedef Item Parent; 153 151 154 152 ItemIt() {} … … 179 177 template <typename _Graph, typename _Map> 180 178 class SubMapExtender : public _Map { 179 public: 180 181 181 typedef _Map Parent; 182 typedef _Graph GraphType;183 184 public:185 186 182 typedef SubMapExtender Map; 183 184 typedef _Graph Graph; 185 187 186 typedef typename Parent::Key Item; 188 187 189 188 typedef typename Parent::Key Key; 190 189 typedef typename Parent::Value Value; 191 typedef typename Parent::Reference Reference;192 typedef typename Parent::ConstReference ConstReference;193 190 194 191 class MapIt; … … 200 197 public: 201 198 202 SubMapExtender(const Graph Type& _graph)199 SubMapExtender(const Graph& _graph) 203 200 : Parent(_graph), graph(_graph) {} 204 201 205 SubMapExtender(const Graph Type& _graph, const Value& _value)202 SubMapExtender(const Graph& _graph, const Value& _value) 206 203 : Parent(_graph, _value), graph(_graph) {} 207 204 … … 223 220 public: 224 221 class MapIt : public Item { 225 typedef Item Parent;226 227 public:222 public: 223 224 typedef Item Parent; 228 225 typedef typename Map::Value Value; 229 226 … … 262 259 263 260 class ConstMapIt : public Item { 264 typedef Item Parent;265 266 public:261 public: 262 263 typedef Item Parent; 267 264 268 265 typedef typename Map::Value Value; … … 293 290 294 291 class ItemIt : public Item { 295 typedef Item Parent;296 297 public:292 public: 293 294 typedef Item Parent; 298 295 299 296 ItemIt() {} … … 320 317 private: 321 318 322 const Graph Type& graph;319 const Graph& graph; 323 320 324 321 };
Note: See TracChangeset
for help on using the changeset viewer.