Changeset 2263:9273fe7d850c in lemon-0.x for lemon/bucket_heap.h
- Timestamp:
- 10/26/06 16:20:17 (18 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@3021
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lemon/bucket_heap.h
r2110 r2263 42 42 /// the priorities are small. It is not intended to use as dijkstra heap. 43 43 /// 44 /// \param _Item Type of the items to be stored.45 44 /// \param _ItemIntMap A read and writable Item int map, used internally 46 45 /// to handle the cross references. 47 46 /// \param minimize If the given parameter is true then the heap gives back 48 47 /// the lowest priority. 49 template <typename _Item , typename _ItemIntMap, bool minimize = true >48 template <typename _ItemIntMap, bool minimize = true > 50 49 class BucketHeap { 51 50 52 51 public: 53 typedef _ItemItem;52 typedef typename _ItemIntMap::Key Item; 54 53 typedef int Prio; 55 54 typedef std::pair<Item, Prio> Pair; … … 327 326 328 327 329 template <typename _Item , typename _ItemIntMap>330 class BucketHeap<_Item , _ItemIntMap, false> {331 332 public: 333 typedef _ItemItem;328 template <typename _ItemIntMap> 329 class BucketHeap<_ItemIntMap, false> { 330 331 public: 332 typedef typename _ItemIntMap::Key Item; 334 333 typedef int Prio; 335 334 typedef std::pair<Item, Prio> Pair; … … 525 524 /// minimal and it does not supports key increasing, decreasing. 526 525 /// 527 /// \param _Item Type of the items to be stored.528 526 /// \param _ItemIntMap A read and writable Item int map, used internally 529 527 /// to handle the cross references. … … 532 530 /// 533 531 /// \sa BucketHeap 534 template <typename _Item , typename _ItemIntMap, bool minimize = true >532 template <typename _ItemIntMap, bool minimize = true > 535 533 class SimpleBucketHeap { 536 534 537 535 public: 538 typedef _ItemItem;536 typedef typename _ItemIntMap::Key Item; 539 537 typedef int Prio; 540 538 typedef std::pair<Item, Prio> Pair; … … 710 708 }; // class SimpleBucketHeap 711 709 712 template <typename _Item , typename _ItemIntMap>713 class SimpleBucketHeap<_Item , _ItemIntMap, false> {714 715 public: 716 typedef _ItemItem;710 template <typename _ItemIntMap> 711 class SimpleBucketHeap<_ItemIntMap, false> { 712 713 public: 714 typedef typename _ItemIntMap::Key Item; 717 715 typedef int Prio; 718 716 typedef std::pair<Item, Prio> Pair;
Note: See TracChangeset
for help on using the changeset viewer.