diff --git a/lemon/circulation.h b/lemon/circulation.h --- a/lemon/circulation.h +++ b/lemon/circulation.h @@ -215,9 +215,9 @@ ///@{ - template + template struct SetFlowMapTraits : public Traits { - typedef _FlowMap FlowMap; + typedef T FlowMap; static FlowMap *createFlowMap(const Digraph&) { LEMON_ASSERT(false, "FlowMap is not initialized"); return 0; // ignore warnings @@ -229,17 +229,17 @@ /// /// \ref named-templ-param "Named parameter" for setting FlowMap /// type. - template + template struct SetFlowMap : public Circulation > { + SetFlowMapTraits > { typedef Circulation > Create; + SetFlowMapTraits > Create; }; - template + template struct SetElevatorTraits : public Traits { - typedef _Elevator Elevator; + typedef T Elevator; static Elevator *createElevator(const Digraph&, int) { LEMON_ASSERT(false, "Elevator is not initialized"); return 0; // ignore warnings @@ -255,17 +255,17 @@ /// \ref elevator(Elevator&) "elevator()" function before calling /// \ref run() or \ref init(). /// \sa SetStandardElevator - template + template struct SetElevator : public Circulation > { + SetElevatorTraits > { typedef Circulation > Create; + SetElevatorTraits > Create; }; - template + template struct SetStandardElevatorTraits : public Traits { - typedef _Elevator Elevator; + typedef T Elevator; static Elevator *createElevator(const Digraph& digraph, int max_level) { return new Elevator(digraph, max_level); } @@ -283,12 +283,12 @@ /// algorithm with the \ref elevator(Elevator&) "elevator()" function /// before calling \ref run() or \ref init(). /// \sa SetElevator - template + template struct SetStandardElevator : public Circulation > { + SetStandardElevatorTraits > { typedef Circulation > Create; + SetStandardElevatorTraits > Create; }; /// @} @@ -682,7 +682,7 @@ /// empty set, so \c bar[v] will be \c false for all nodes \c v. /// /// \note This function calls \ref barrier() for each node, - /// so it runs in \f$O(n)\f$ time. + /// so it runs in O(n) time. /// /// \pre Either \ref run() or \ref init() must be called before /// using this function.