Changeset 2386:81b47fc5c444 in lemon-0.x for lemon/bits/graph_adaptor_extender.h
- Timestamp:
- 03/02/07 19:04:28 (17 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@3217
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lemon/bits/graph_adaptor_extender.h
r2231 r2386 400 400 /// Returns the base node (ie. the source in this case) of the iterator 401 401 Node baseNode(const OutEdgeIt &e) const { 402 return Parent::source( (Edge)e);402 return Parent::source(static_cast<const Edge&>(e)); 403 403 } 404 404 /// \brief Running node of the iterator … … 407 407 /// iterator 408 408 Node runningNode(const OutEdgeIt &e) const { 409 return Parent::target( (Edge)e);409 return Parent::target(static_cast<const Edge&>(e)); 410 410 } 411 411 … … 414 414 /// Returns the base node (ie. the target in this case) of the iterator 415 415 Node baseNode(const InEdgeIt &e) const { 416 return Parent::target( (Edge)e);416 return Parent::target(static_cast<const Edge&>(e)); 417 417 } 418 418 /// \brief Running node of the iterator … … 421 421 /// iterator 422 422 Node runningNode(const InEdgeIt &e) const { 423 return Parent::source( (Edge)e);423 return Parent::source(static_cast<const Edge&>(e)); 424 424 } 425 425 … … 652 652 /// Returns the base node (ie. the source in this case) of the iterator 653 653 Node baseNode(const OutEdgeIt &e) const { 654 return Parent::source( (Edge&)e);654 return Parent::source(static_cast<const Edge&>(e)); 655 655 } 656 656 /// \brief Running node of the iterator … … 659 659 /// iterator 660 660 Node runningNode(const OutEdgeIt &e) const { 661 return Parent::target( (Edge&)e);661 return Parent::target(static_cast<const Edge&>(e)); 662 662 } 663 663 … … 666 666 /// Returns the base node (ie. the target in this case) of the iterator 667 667 Node baseNode(const InEdgeIt &e) const { 668 return Parent::target( (Edge&)e);668 return Parent::target(static_cast<const Edge&>(e)); 669 669 } 670 670 /// \brief Running node of the iterator … … 673 673 /// iterator 674 674 Node runningNode(const InEdgeIt &e) const { 675 return Parent::source( (Edge&)e);675 return Parent::source(static_cast<const Edge&>(e)); 676 676 } 677 677
Note: See TracChangeset
for help on using the changeset viewer.