Changeset 606:c5fd2d996909 in lemon for lemon/bits/edge_set_extender.h
- Timestamp:
- 03/29/09 23:08:20 (16 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lemon/bits/edge_set_extender.h
r566 r606 25 25 #include <lemon/bits/map_extender.h> 26 26 27 // /\ingroup digraphbits28 // /\file29 // /\brief Extenders for the arc set types27 //\ingroup digraphbits 28 //\file 29 //\brief Extenders for the arc set types 30 30 namespace lemon { 31 31 32 // /\ingroup digraphbits33 // /34 // /\brief Extender for the ArcSets32 // \ingroup digraphbits 33 // 34 // \brief Extender for the ArcSets 35 35 template <typename Base> 36 36 class ArcSetExtender : public Base { … … 73 73 // Alteration notifier extensions 74 74 75 // /The arc observer registry.75 // The arc observer registry. 76 76 typedef AlterationNotifier<ArcSetExtender, Arc> ArcNotifier; 77 77 … … 84 84 using Parent::notifier; 85 85 86 /// \brief Gives back the arc alteration notifier. 87 /// 88 /// Gives back the arc alteration notifier. 86 // Gives back the arc alteration notifier. 89 87 ArcNotifier& notifier(Arc) const { 90 88 return arc_notifier; … … 186 184 }; 187 185 188 // /\brief Base node of the iterator189 // /190 // /Returns the base node (ie. the source in this case) of the iterator186 // \brief Base node of the iterator 187 // 188 // Returns the base node (ie. the source in this case) of the iterator 191 189 Node baseNode(const OutArcIt &e) const { 192 190 return Parent::source(static_cast<const Arc&>(e)); 193 191 } 194 // /\brief Running node of the iterator195 // /196 // /Returns the running node (ie. the target in this case) of the197 // /iterator192 // \brief Running node of the iterator 193 // 194 // Returns the running node (ie. the target in this case) of the 195 // iterator 198 196 Node runningNode(const OutArcIt &e) const { 199 197 return Parent::target(static_cast<const Arc&>(e)); 200 198 } 201 199 202 // /\brief Base node of the iterator203 // /204 // /Returns the base node (ie. the target in this case) of the iterator200 // \brief Base node of the iterator 201 // 202 // Returns the base node (ie. the target in this case) of the iterator 205 203 Node baseNode(const InArcIt &e) const { 206 204 return Parent::target(static_cast<const Arc&>(e)); 207 205 } 208 // /\brief Running node of the iterator209 // /210 // /Returns the running node (ie. the source in this case) of the211 // /iterator206 // \brief Running node of the iterator 207 // 208 // Returns the running node (ie. the source in this case) of the 209 // iterator 212 210 Node runningNode(const InArcIt &e) const { 213 211 return Parent::source(static_cast<const Arc&>(e)); … … 272 270 273 271 274 // /\ingroup digraphbits275 // /276 // /\brief Extender for the EdgeSets272 // \ingroup digraphbits 273 // 274 // \brief Extender for the EdgeSets 277 275 template <typename Base> 278 276 class EdgeSetExtender : public Base { … … 493 491 }; 494 492 495 // /\brief Base node of the iterator496 // /497 // /Returns the base node (ie. the source in this case) of the iterator493 // \brief Base node of the iterator 494 // 495 // Returns the base node (ie. the source in this case) of the iterator 498 496 Node baseNode(const OutArcIt &e) const { 499 497 return Parent::source(static_cast<const Arc&>(e)); 500 498 } 501 // /\brief Running node of the iterator502 // /503 // /Returns the running node (ie. the target in this case) of the504 // /iterator499 // \brief Running node of the iterator 500 // 501 // Returns the running node (ie. the target in this case) of the 502 // iterator 505 503 Node runningNode(const OutArcIt &e) const { 506 504 return Parent::target(static_cast<const Arc&>(e)); 507 505 } 508 506 509 // /\brief Base node of the iterator510 // /511 // /Returns the base node (ie. the target in this case) of the iterator507 // \brief Base node of the iterator 508 // 509 // Returns the base node (ie. the target in this case) of the iterator 512 510 Node baseNode(const InArcIt &e) const { 513 511 return Parent::target(static_cast<const Arc&>(e)); 514 512 } 515 // /\brief Running node of the iterator516 // /517 // /Returns the running node (ie. the source in this case) of the518 // /iterator513 // \brief Running node of the iterator 514 // 515 // Returns the running node (ie. the source in this case) of the 516 // iterator 519 517 Node runningNode(const InArcIt &e) const { 520 518 return Parent::source(static_cast<const Arc&>(e)); 521 519 } 522 520 523 // /Base node of the iterator524 // /525 // /Returns the base node of the iterator521 // Base node of the iterator 522 // 523 // Returns the base node of the iterator 526 524 Node baseNode(const IncEdgeIt &e) const { 527 525 return e.direction ? u(e) : v(e); 528 526 } 529 // /Running node of the iterator530 // /531 // /Returns the running node of the iterator527 // Running node of the iterator 528 // 529 // Returns the running node of the iterator 532 530 Node runningNode(const IncEdgeIt &e) const { 533 531 return e.direction ? v(e) : u(e);
Note: See TracChangeset
for help on using the changeset viewer.