Ignore:
Timestamp:
12/05/08 00:22:47 (13 years ago)
Branch:
default
Phase:
public
Message:

Add missing 'const' for query functions of algorithms

Location:
lemon
Files:
4 edited

Unmodified
Removed
• ## lemon/bfs.h

 r405 /// \pre Either \ref run(Node) "run()" or \ref init() /// must be called before using this function. bool reached(Node v) { return (*_reached)[v]; } bool reached(Node v) const { return (*_reached)[v]; } ///@}
• ## lemon/circulation.h

 r402 /// \pre Either \ref run() or \ref init() must be called before /// using this function. const Elevator& elevator() { const Elevator& elevator() const { return *_level; } /// \pre Either \ref run() or \ref init() must be called before /// using this function. const FlowMap& flowMap() { const FlowMap& flowMap() const { return *_flow; } \sa checkBarrier() */ bool barrier(const Node& node) bool barrier(const Node& node) const { return (*_level)[node] >= _el; /// \sa checkBarrier() template void barrierMap(BarrierMap &bar) void barrierMap(BarrierMap &bar) const { for(NodeIt n(_g);n!=INVALID;++n) ///Check if the found flow is a feasible circulation, /// bool checkFlow() { bool checkFlow() const { for(ArcIt e(_g);e!=INVALID;++e) if((*_flow)[e]<(*_lo)[e]||(*_flow)[e]>(*_up)[e]) return false; ///\sa barrier() ///\sa barrierMap() bool checkBarrier() bool checkBarrier() const { Value delta=0;
• ## lemon/dfs.h

 r405 /// \pre Either \ref run(Node) "run()" or \ref init() /// must be called before using this function. bool reached(Node v) { return (*_reached)[v]; } bool reached(Node v) const { return (*_reached)[v]; } ///@}
• ## lemon/preflow.h

 r393 /// \pre Either \ref run() or \ref init() must be called before /// using this function. const Elevator& elevator() { const Elevator& elevator() const { return *_level; } /// \pre Either \ref run() or \ref init() must be called before /// using this function. const FlowMap& flowMap() { const FlowMap& flowMap() const { return *_flow; }
Note: See TracChangeset for help on using the changeset viewer.