Changeset 381:b04e431907bc in lemon-main
- Timestamp:
- 11/17/08 16:41:15 (16 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lemon/elevator.h
r380 r381 58 58 private: 59 59 60 typedef typename std::vector<Item>::iteratorVit;60 typedef Item *Vit; 61 61 typedef typename ItemSetTraits<Graph,Item>::template Map<Vit>::Type VitMap; 62 62 typedef typename ItemSetTraits<Graph,Item>::template Map<int>::Type IntMap; … … 434 434 { 435 435 _init_lev=0; 436 _init_num= _items.begin();437 _first[0]= _items.begin();438 _last_active[0]= _items.begin()-1;439 Vit n= _items.begin();436 _init_num=&_items[0]; 437 _first[0]=&_items[0]; 438 _last_active[0]=&_items[0]-1; 439 Vit n=&_items[0]; 440 440 for(typename ItemSetTraits<Graph,Item>::ItemIt i(_g);i!=INVALID;++i) 441 441 { … … 476 476 _last_active[_init_lev]=_init_num-1; 477 477 } 478 _first[_max_level+1]= _items.begin()+_item_num;479 _last_active[_max_level+1]= _items.begin()+_item_num-1;478 _first[_max_level+1]=&_items[0]+_item_num; 479 _last_active[_max_level+1]=&_items[0]+_item_num-1; 480 480 _highest_active = -1; 481 481 }
Note: See TracChangeset
for help on using the changeset viewer.