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