0
4
0
... | ... |
@@ -420,5 +420,5 @@ |
420 | 420 |
/// \pre Either \ref run() or \ref init() must be called before |
421 | 421 |
/// using this function. |
422 |
const Elevator& elevator() { |
|
422 |
const Elevator& elevator() const { |
|
423 | 423 |
return *_level; |
424 | 424 |
} |
... | ... |
@@ -645,5 +645,5 @@ |
645 | 645 |
/// \pre Either \ref run() or \ref init() must be called before |
646 | 646 |
/// using this function. |
647 |
const FlowMap& flowMap() { |
|
647 |
const FlowMap& flowMap() const { |
|
648 | 648 |
return *_flow; |
649 | 649 |
} |
... | ... |
@@ -670,5 +670,5 @@ |
670 | 670 |
\sa checkBarrier() |
671 | 671 |
*/ |
672 |
bool barrier(const Node& node) |
|
672 |
bool barrier(const Node& node) const |
|
673 | 673 |
{ |
674 | 674 |
return (*_level)[node] >= _el; |
... | ... |
@@ -693,5 +693,5 @@ |
693 | 693 |
/// \sa checkBarrier() |
694 | 694 |
template<class BarrierMap> |
695 |
void barrierMap(BarrierMap &bar) |
|
695 |
void barrierMap(BarrierMap &bar) const |
|
696 | 696 |
{ |
697 | 697 |
for(NodeIt n(_g);n!=INVALID;++n) |
... | ... |
@@ -713,5 +713,5 @@ |
713 | 713 |
///Check if the found flow is a feasible circulation, |
714 | 714 |
/// |
715 |
bool checkFlow() { |
|
715 |
bool checkFlow() const { |
|
716 | 716 |
for(ArcIt e(_g);e!=INVALID;++e) |
717 | 717 |
if((*_flow)[e]<(*_lo)[e]||(*_flow)[e]>(*_up)[e]) return false; |
... | ... |
@@ -731,5 +731,5 @@ |
731 | 731 |
///\sa barrier() |
732 | 732 |
///\sa barrierMap() |
733 |
bool checkBarrier() |
|
733 |
bool checkBarrier() const |
|
734 | 734 |
{ |
735 | 735 |
Value delta=0; |
... | ... |
@@ -367,5 +367,5 @@ |
367 | 367 |
/// \pre Either \ref run() or \ref init() must be called before |
368 | 368 |
/// using this function. |
369 |
const Elevator& elevator() { |
|
369 |
const Elevator& elevator() const { |
|
370 | 370 |
return *_level; |
371 | 371 |
} |
... | ... |
@@ -919,5 +919,5 @@ |
919 | 919 |
/// \pre Either \ref run() or \ref init() must be called before |
920 | 920 |
/// using this function. |
921 |
const FlowMap& flowMap() { |
|
921 |
const FlowMap& flowMap() const { |
|
922 | 922 |
return *_flow; |
923 | 923 |
} |
0 comments (0 inline)