Changes in lemon/bits/map_extender.h [580:2313edd0db0b:617:4137ef9aacc6] in lemon-main
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lemon/bits/map_extender.h
r580 r617 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 … … 59 58 public: 60 59 61 MapExtender(const Graph & graph)60 MapExtender(const GraphType& graph) 62 61 : Parent(graph) {} 63 62 64 MapExtender(const Graph & graph, const Value& value)63 MapExtender(const GraphType& graph, const Value& value) 65 64 : Parent(graph, value) {} 66 65 … … 78 77 public: 79 78 class MapIt : public Item { 80 public: 81 82 typedef Item Parent; 79 typedef Item Parent; 80 81 public: 82 83 83 typedef typename Map::Value Value; 84 84 … … 117 117 118 118 class ConstMapIt : public Item { 119 public:120 121 typedef Item Parent;119 typedef Item Parent; 120 121 public: 122 122 123 123 typedef typename Map::Value Value; … … 148 148 149 149 class ItemIt : public Item { 150 public:151 152 typedef Item Parent;150 typedef Item Parent; 151 152 public: 153 153 154 154 ItemIt() {} … … 179 179 template <typename _Graph, typename _Map> 180 180 class SubMapExtender : public _Map { 181 public:182 183 181 typedef _Map Parent; 182 typedef _Graph GraphType; 183 184 public: 185 184 186 typedef SubMapExtender Map; 185 186 typedef _Graph Graph;187 188 187 typedef typename Parent::Key Item; 189 188 … … 201 200 public: 202 201 203 SubMapExtender(const Graph & _graph)202 SubMapExtender(const GraphType& _graph) 204 203 : Parent(_graph), graph(_graph) {} 205 204 206 SubMapExtender(const Graph & _graph, const Value& _value)205 SubMapExtender(const GraphType& _graph, const Value& _value) 207 206 : Parent(_graph, _value), graph(_graph) {} 208 207 … … 224 223 public: 225 224 class MapIt : public Item { 226 public:227 228 typedef Item Parent;225 typedef Item Parent; 226 227 public: 229 228 typedef typename Map::Value Value; 230 229 … … 263 262 264 263 class ConstMapIt : public Item { 265 public:266 267 typedef Item Parent;264 typedef Item Parent; 265 266 public: 268 267 269 268 typedef typename Map::Value Value; … … 294 293 295 294 class ItemIt : public Item { 296 public:297 298 typedef Item Parent;295 typedef Item Parent; 296 297 public: 299 298 300 299 ItemIt() {} … … 321 320 private: 322 321 323 const Graph & graph;322 const GraphType& graph; 324 323 325 324 };
Note: See TracChangeset
for help on using the changeset viewer.