Changes in lemon/bits/map_extender.h [867:994c7df296c9:865:e9c203fb003d] in lemon
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lemon/bits/map_extender.h
r867 r865 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 52 typedef typename Parent::ReferenceMapTag ReferenceMapTag;53 50 54 51 class MapIt; … … 60 57 public: 61 58 62 MapExtender(const Graph Type& graph)59 MapExtender(const Graph& graph) 63 60 : Parent(graph) {} 64 61 65 MapExtender(const Graph Type& graph, const Value& value)62 MapExtender(const Graph& graph, const Value& value) 66 63 : Parent(graph, value) {} 67 64 … … 79 76 public: 80 77 class MapIt : public Item { 81 typedef Item Parent; 82 83 public: 84 78 public: 79 80 typedef Item Parent; 85 81 typedef typename Map::Value Value; 86 82 … … 119 115 120 116 class ConstMapIt : public Item { 121 typedef Item Parent;122 123 public:117 public: 118 119 typedef Item Parent; 124 120 125 121 typedef typename Map::Value Value; … … 150 146 151 147 class ItemIt : public Item { 152 typedef Item Parent; 153 154 public: 148 public: 149 150 typedef Item Parent; 151 155 152 ItemIt() : map(NULL) {} 156 157 153 158 154 ItemIt(Invalid i) : Parent(i), map(NULL) {} … … 181 177 template <typename _Graph, typename _Map> 182 178 class SubMapExtender : public _Map { 179 public: 180 183 181 typedef _Map Parent; 184 typedef _Graph GraphType;185 186 public:187 188 182 typedef SubMapExtender Map; 183 184 typedef _Graph Graph; 185 189 186 typedef typename Parent::Key Item; 190 187 191 188 typedef typename Parent::Key Key; 192 189 typedef typename Parent::Value Value; 193 typedef typename Parent::Reference Reference;194 typedef typename Parent::ConstReference ConstReference;195 196 typedef typename Parent::ReferenceMapTag ReferenceMapTag;197 190 198 191 class MapIt; … … 204 197 public: 205 198 206 SubMapExtender(const Graph Type& _graph)199 SubMapExtender(const Graph& _graph) 207 200 : Parent(_graph), graph(_graph) {} 208 201 209 SubMapExtender(const Graph Type& _graph, const Value& _value)202 SubMapExtender(const Graph& _graph, const Value& _value) 210 203 : Parent(_graph, _value), graph(_graph) {} 211 204 … … 227 220 public: 228 221 class MapIt : public Item { 229 typedef Item Parent;230 231 public:222 public: 223 224 typedef Item Parent; 232 225 typedef typename Map::Value Value; 233 226 … … 266 259 267 260 class ConstMapIt : public Item { 268 typedef Item Parent;269 270 public:261 public: 262 263 typedef Item Parent; 271 264 272 265 typedef typename Map::Value Value; … … 297 290 298 291 class ItemIt : public Item { 299 typedef Item Parent; 300 301 public: 292 public: 293 294 typedef Item Parent; 295 302 296 ItemIt() : map(NULL) {} 303 304 297 305 298 ItemIt(Invalid i) : Parent(i), map(NULL) { } … … 324 317 private: 325 318 326 const Graph Type& graph;319 const Graph& graph; 327 320 328 321 };
Note: See TracChangeset
for help on using the changeset viewer.