| ... | ... |
@@ -82,8 +82,8 @@ |
| 82 | 82 |
|
| 83 |
MapIt() {}
|
|
| 83 |
MapIt() : map(NULL) {}
|
|
| 84 | 84 |
|
| 85 |
MapIt(Invalid i) : Parent(i) {
|
|
| 85 |
MapIt(Invalid i) : Parent(i), map(NULL) {}
|
|
| 86 | 86 |
|
| 87 |
explicit MapIt(Map& _map) : map(_map) {
|
|
| 88 |
map.notifier()->first(*this); |
|
| 87 |
explicit MapIt(Map& _map) : map(&_map) {
|
|
| 88 |
map->notifier()->first(*this); |
|
| 89 | 89 |
} |
| ... | ... |
@@ -91,6 +91,6 @@ |
| 91 | 91 |
MapIt(const Map& _map, const Item& item) |
| 92 |
: Parent(item), map(_map) {}
|
|
| 92 |
: Parent(item), map(&_map) {}
|
|
| 93 | 93 |
|
| 94 | 94 |
MapIt& operator++() {
|
| 95 |
map |
|
| 95 |
map->notifier()->next(*this); |
|
| 96 | 96 |
return *this; |
| ... | ... |
@@ -99,3 +99,3 @@ |
| 99 | 99 |
typename MapTraits<Map>::ConstReturnValue operator*() const {
|
| 100 |
return map[*this]; |
|
| 100 |
return (*map)[*this]; |
|
| 101 | 101 |
} |
| ... | ... |
@@ -103,3 +103,3 @@ |
| 103 | 103 |
typename MapTraits<Map>::ReturnValue operator*() {
|
| 104 |
return map[*this]; |
|
| 104 |
return (*map)[*this]; |
|
| 105 | 105 |
} |
| ... | ... |
@@ -107,3 +107,3 @@ |
| 107 | 107 |
void set(const Value& value) {
|
| 108 |
map |
|
| 108 |
map->set(*this, value); |
|
| 109 | 109 |
} |
| ... | ... |
@@ -111,3 +111,3 @@ |
| 111 | 111 |
protected: |
| 112 |
Map |
|
| 112 |
Map* map; |
|
| 113 | 113 |
|
| ... | ... |
@@ -122,8 +122,8 @@ |
| 122 | 122 |
|
| 123 |
ConstMapIt() {}
|
|
| 123 |
ConstMapIt() : map(NULL) {}
|
|
| 124 | 124 |
|
| 125 |
ConstMapIt(Invalid i) : Parent(i) {
|
|
| 125 |
ConstMapIt(Invalid i) : Parent(i), map(NULL) {}
|
|
| 126 | 126 |
|
| 127 |
explicit ConstMapIt(Map& _map) : map(_map) {
|
|
| 128 |
map.notifier()->first(*this); |
|
| 127 |
explicit ConstMapIt(Map& _map) : map(&_map) {
|
|
| 128 |
map->notifier()->first(*this); |
|
| 129 | 129 |
} |
| ... | ... |
@@ -134,3 +134,3 @@ |
| 134 | 134 |
ConstMapIt& operator++() {
|
| 135 |
map |
|
| 135 |
map->notifier()->next(*this); |
|
| 136 | 136 |
return *this; |
| ... | ... |
@@ -143,3 +143,3 @@ |
| 143 | 143 |
protected: |
| 144 |
const Map |
|
| 144 |
const Map* map; |
|
| 145 | 145 |
}; |
| ... | ... |
@@ -151,8 +151,8 @@ |
| 151 | 151 |
|
| 152 |
ItemIt() {}
|
|
| 152 |
ItemIt() : map(NULL) {}
|
|
| 153 | 153 |
|
| 154 |
ItemIt(Invalid i) : Parent(i) {
|
|
| 154 |
ItemIt(Invalid i) : Parent(i), map(NULL) {}
|
|
| 155 | 155 |
|
| 156 |
explicit ItemIt(Map& _map) : map(_map) {
|
|
| 157 |
map.notifier()->first(*this); |
|
| 156 |
explicit ItemIt(Map& _map) : map(&_map) {
|
|
| 157 |
map->notifier()->first(*this); |
|
| 158 | 158 |
} |
| ... | ... |
@@ -160,6 +160,6 @@ |
| 160 | 160 |
ItemIt(const Map& _map, const Item& item) |
| 161 |
: Parent(item), map(_map) {}
|
|
| 161 |
: Parent(item), map(&_map) {}
|
|
| 162 | 162 |
|
| 163 | 163 |
ItemIt& operator++() {
|
| 164 |
map |
|
| 164 |
map->notifier()->next(*this); |
|
| 165 | 165 |
return *this; |
| ... | ... |
@@ -168,3 +168,3 @@ |
| 168 | 168 |
protected: |
| 169 |
const Map |
|
| 169 |
const Map* map; |
|
| 170 | 170 |
|
| ... | ... |
@@ -226,8 +226,8 @@ |
| 226 | 226 |
|
| 227 |
MapIt() {}
|
|
| 227 |
MapIt() : map(NULL) {}
|
|
| 228 | 228 |
|
| 229 |
MapIt(Invalid i) : Parent(i) { }
|
|
| 229 |
MapIt(Invalid i) : Parent(i), map(NULL) { }
|
|
| 230 | 230 |
|
| 231 |
explicit MapIt(Map& _map) : map(_map) {
|
|
| 232 |
map.graph.first(*this); |
|
| 231 |
explicit MapIt(Map& _map) : map(&_map) {
|
|
| 232 |
map->graph.first(*this); |
|
| 233 | 233 |
} |
| ... | ... |
@@ -235,6 +235,6 @@ |
| 235 | 235 |
MapIt(const Map& _map, const Item& item) |
| 236 |
: Parent(item), map(_map) {}
|
|
| 236 |
: Parent(item), map(&_map) {}
|
|
| 237 | 237 |
|
| 238 | 238 |
MapIt& operator++() {
|
| 239 |
map |
|
| 239 |
map->graph.next(*this); |
|
| 240 | 240 |
return *this; |
| ... | ... |
@@ -243,3 +243,3 @@ |
| 243 | 243 |
typename MapTraits<Map>::ConstReturnValue operator*() const {
|
| 244 |
return map[*this]; |
|
| 244 |
return (*map)[*this]; |
|
| 245 | 245 |
} |
| ... | ... |
@@ -247,3 +247,3 @@ |
| 247 | 247 |
typename MapTraits<Map>::ReturnValue operator*() {
|
| 248 |
return map[*this]; |
|
| 248 |
return (*map)[*this]; |
|
| 249 | 249 |
} |
| ... | ... |
@@ -251,3 +251,3 @@ |
| 251 | 251 |
void set(const Value& value) {
|
| 252 |
map |
|
| 252 |
map->set(*this, value); |
|
| 253 | 253 |
} |
| ... | ... |
@@ -255,3 +255,3 @@ |
| 255 | 255 |
protected: |
| 256 |
Map |
|
| 256 |
Map* map; |
|
| 257 | 257 |
|
| ... | ... |
@@ -266,8 +266,8 @@ |
| 266 | 266 |
|
| 267 |
ConstMapIt() {}
|
|
| 267 |
ConstMapIt() : map(NULL) {}
|
|
| 268 | 268 |
|
| 269 |
ConstMapIt(Invalid i) : Parent(i) { }
|
|
| 269 |
ConstMapIt(Invalid i) : Parent(i), map(NULL) { }
|
|
| 270 | 270 |
|
| 271 |
explicit ConstMapIt(Map& _map) : map(_map) {
|
|
| 272 |
map.graph.first(*this); |
|
| 271 |
explicit ConstMapIt(Map& _map) : map(&_map) {
|
|
| 272 |
map->graph.first(*this); |
|
| 273 | 273 |
} |
| ... | ... |
@@ -275,6 +275,6 @@ |
| 275 | 275 |
ConstMapIt(const Map& _map, const Item& item) |
| 276 |
: Parent(item), map(_map) {}
|
|
| 276 |
: Parent(item), map(&_map) {}
|
|
| 277 | 277 |
|
| 278 | 278 |
ConstMapIt& operator++() {
|
| 279 |
map |
|
| 279 |
map->graph.next(*this); |
|
| 280 | 280 |
return *this; |
| ... | ... |
@@ -283,3 +283,3 @@ |
| 283 | 283 |
typename MapTraits<Map>::ConstReturnValue operator*() const {
|
| 284 |
return map[*this]; |
|
| 284 |
return (*map)[*this]; |
|
| 285 | 285 |
} |
| ... | ... |
@@ -287,3 +287,3 @@ |
| 287 | 287 |
protected: |
| 288 |
const Map |
|
| 288 |
const Map* map; |
|
| 289 | 289 |
}; |
| ... | ... |
@@ -295,8 +295,8 @@ |
| 295 | 295 |
|
| 296 |
ItemIt() {}
|
|
| 296 |
ItemIt() : map(NULL) {}
|
|
| 297 | 297 |
|
| 298 |
ItemIt(Invalid i) : Parent(i) { }
|
|
| 298 |
ItemIt(Invalid i) : Parent(i), map(NULL) { }
|
|
| 299 | 299 |
|
| 300 |
explicit ItemIt(Map& _map) : map(_map) {
|
|
| 301 |
map.graph.first(*this); |
|
| 300 |
explicit ItemIt(Map& _map) : map(&_map) {
|
|
| 301 |
map->graph.first(*this); |
|
| 302 | 302 |
} |
| ... | ... |
@@ -304,6 +304,6 @@ |
| 304 | 304 |
ItemIt(const Map& _map, const Item& item) |
| 305 |
: Parent(item), map(_map) {}
|
|
| 305 |
: Parent(item), map(&_map) {}
|
|
| 306 | 306 |
|
| 307 | 307 |
ItemIt& operator++() {
|
| 308 |
map |
|
| 308 |
map->graph.next(*this); |
|
| 309 | 309 |
return *this; |
| ... | ... |
@@ -312,3 +312,3 @@ |
| 312 | 312 |
protected: |
| 313 |
const Map |
|
| 313 |
const Map* map; |
|
| 314 | 314 |
|
0 comments (0 inline)