Changeset 2518:4c0a23bd70b5 in lemon-0.x for lemon/elevator.h
- Timestamp:
- 11/21/07 14:34:38 (17 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@3394
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lemon/elevator.h
r2512 r2518 51 51 class Elevator 52 52 { 53 p rivate:53 public: 54 54 55 55 typedef Item Key; 56 56 typedef int Value; 57 58 private: 57 59 58 60 typedef typename std::vector<Item>::iterator Vit; … … 377 379 _level[i]=new_level; 378 380 if(new_level>_highest_active) _highest_active=new_level; 381 } 382 383 ///Mark the node as it did not reach the max level 384 385 ///Mark the node as it did not reach the max level. It sets the 386 ///level of the node to a low value, which is not connected to the 387 ///real levels of elevator. The node should be lifted previously 388 ///to the top level. 389 void markToBottom(Item i) { 390 _level[i] = - _max_level; 379 391 } 380 392 … … 492 504 template <class Graph, class Item> 493 505 class LinkedElevator { 494 p rivate:506 public: 495 507 496 508 typedef Item Key; 497 509 typedef int Value; 510 511 private: 498 512 499 513 typedef typename ItemSetTraits<Graph,Item>:: … … 883 897 } 884 898 899 ///Mark the node as it did not reach the max level 900 901 ///Mark the node as it did not reach the max level. It sets the 902 ///level of the node to a low value, which is not connected to the 903 ///real levels of elevator. The node should be lifted previously 904 ///to the top level. 905 void markToBottom(Item i) { 906 _level[i] = - _max_level; 907 } 908 885 909 ///Lift all nodes on and above a level to the top (and deactivate them). 886 910
Note: See TracChangeset
for help on using the changeset viewer.