Changeset 1130:0759d974de81 in lemon-main for lemon/bits/graph_adaptor_extender.h
- Timestamp:
- 01/05/14 22:24:56 (10 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lemon/bits/graph_adaptor_extender.h
r1092 r1130 86 86 }; 87 87 88 LemonRangeWrapper1<NodeIt, Adaptor> nodes() { 89 return LemonRangeWrapper1<NodeIt, Adaptor>(*this); 90 } 88 91 89 92 class ArcIt : public Arc { … … 108 111 109 112 }; 113 114 LemonRangeWrapper1<ArcIt, Adaptor> arcs() { 115 return LemonRangeWrapper1<ArcIt, Adaptor>(*this); 116 } 110 117 111 118 … … 133 140 }; 134 141 142 LemonRangeWrapper2<OutArcIt, Adaptor, Node> outArcs(const Node& u) const { 143 return LemonRangeWrapper2<OutArcIt, Adaptor, Node>(*this, u); 144 } 145 135 146 136 147 class InArcIt : public Arc { … … 156 167 157 168 }; 169 170 LemonRangeWrapper2<InArcIt, Adaptor, Node> inArcs(const Node& u) const { 171 return LemonRangeWrapper2<InArcIt, Adaptor, Node>(*this, u); 172 } 158 173 159 174 Node baseNode(const OutArcIt &e) const { … … 255 270 }; 256 271 272 LemonRangeWrapper1<NodeIt, Adaptor> nodes() { 273 return LemonRangeWrapper1<NodeIt, Adaptor>(*this); 274 } 275 257 276 258 277 class ArcIt : public Arc { … … 277 296 278 297 }; 298 299 LemonRangeWrapper1<ArcIt, Adaptor> arcs() { 300 return LemonRangeWrapper1<ArcIt, Adaptor>(*this); 301 } 279 302 280 303 … … 302 325 }; 303 326 327 LemonRangeWrapper2<OutArcIt, Adaptor, Node> outArcs(const Node& u) const { 328 return LemonRangeWrapper2<OutArcIt, Adaptor, Node>(*this, u); 329 } 330 304 331 305 332 class InArcIt : public Arc { … … 326 353 }; 327 354 355 LemonRangeWrapper2<InArcIt, Adaptor, Node> inArcs(const Node& u) const { 356 return LemonRangeWrapper2<InArcIt, Adaptor, Node>(*this, u); 357 } 358 328 359 class EdgeIt : public Parent::Edge { 329 360 const Adaptor* _adaptor; … … 347 378 348 379 }; 380 381 LemonRangeWrapper1<EdgeIt, Adaptor> edges() { 382 return LemonRangeWrapper1<EdgeIt, Adaptor>(*this); 383 } 384 349 385 350 386 class IncEdgeIt : public Edge { … … 373 409 }; 374 410 411 LemonRangeWrapper2<IncEdgeIt, Adaptor, Node> incEdges(const Node& u) const { 412 return LemonRangeWrapper2<IncEdgeIt, Adaptor, Node>(*this, u); 413 } 414 415 375 416 Node baseNode(const OutArcIt &a) const { 376 417 return Parent::source(a);
Note: See TracChangeset
for help on using the changeset viewer.