Changeset 2033:7bf1f64962c2 in lemon-0.x
- Timestamp:
- 04/03/06 18:05:26 (19 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2672
- Location:
- lemon
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
lemon/bfs.h
r1993 r2033 282 282 struct DefProcessedMapTraits : public Traits { 283 283 typedef T ProcessedMap; 284 static ProcessedMap *createProcessedMap(const Graph & G)284 static ProcessedMap *createProcessedMap(const Graph &) 285 285 { 286 286 throw UninitializedParameter(); -
lemon/preflow.h
r2024 r2033 160 160 ///calling \ref source, \ref target, \ref capacityMap and \ref 161 161 ///flowMap, resp. 162 163 164 162 Preflow(const Graph& _gr, Node _s, Node _t, 163 const CapacityMap& _cap, FlowMap& _f, 164 const Tolerance &_sr=Tolerance()) : 165 165 _g(&_gr), _source(_s), _target(_t), _capacity(&_cap), 166 166 _flow(&_f), _surely(_sr), … … 169 169 if ( _source==_target ) 170 170 throw InvalidArgument(); 171 171 } 172 172 173 173 ///Give a reference to the tolerance handler class -
lemon/radix_sort.h
r1979 r2033 326 326 327 327 int length = std::distance(first, last); 328 Key* buffer; 329 buffer = allocator.allocate(2 * length); 328 Key* buffer = allocator.allocate(2 * length); 330 329 try { 331 330 bool dir = true; … … 365 364 366 365 int length = std::distance(first, last); 367 Key *buffer; 368 buffer = allocator.allocate(2 * length); 366 Key *buffer = allocator.allocate(2 * length); 369 367 try { 370 368 bool dir = true; … … 372 370 for (int i = 0; i < (int)sizeof(Value); ++i) { 373 371 if (dir) { 374 counterIntroSort(buffer, buffer + length, buffer + length, i, functor); 372 counterIntroSort(buffer, buffer + length, 373 buffer + length, i, functor); 375 374 } else { 376 counterIntroSort(buffer + length, buffer + 2 * length, buffer, i, functor); 375 counterIntroSort(buffer + length, buffer + 2 * length, 376 buffer, i, functor); 377 377 } 378 378 dir = !dir;
Note: See TracChangeset
for help on using the changeset viewer.