diff --git a/lemon/cost_scaling.h b/lemon/cost_scaling.h --- a/lemon/cost_scaling.h +++ b/lemon/cost_scaling.h @@ -205,12 +205,12 @@ private: template - class VectorMap { + class StaticVectorMap { public: typedef KT Key; typedef VT Value; - VectorMap(std::vector& v) : _v(v) {} + StaticVectorMap(std::vector& v) : _v(v) {} const Value& operator[](const Key& key) const { return _v[StaticDigraph::id(key)]; @@ -228,8 +228,8 @@ std::vector& _v; }; - typedef VectorMap LargeCostNodeMap; - typedef VectorMap LargeCostArcMap; + typedef StaticVectorMap LargeCostNodeMap; + typedef StaticVectorMap LargeCostArcMap; private: diff --git a/lemon/cycle_canceling.h b/lemon/cycle_canceling.h --- a/lemon/cycle_canceling.h +++ b/lemon/cycle_canceling.h @@ -152,12 +152,12 @@ private: template - class VectorMap { + class StaticVectorMap { public: typedef KT Key; typedef VT Value; - VectorMap(std::vector& v) : _v(v) {} + StaticVectorMap(std::vector& v) : _v(v) {} const Value& operator[](const Key& key) const { return _v[StaticDigraph::id(key)]; @@ -175,8 +175,8 @@ std::vector& _v; }; - typedef VectorMap CostNodeMap; - typedef VectorMap CostArcMap; + typedef StaticVectorMap CostNodeMap; + typedef StaticVectorMap CostArcMap; private: @@ -800,9 +800,9 @@ const int BF_FIRST_LIMIT = 2; const double BF_LIMIT_FACTOR = 1.5; - typedef VectorMap FilterMap; + typedef StaticVectorMap FilterMap; typedef FilterArcs ResDigraph; - typedef VectorMap PredMap; + typedef StaticVectorMap PredMap; typedef typename BellmanFord ::template SetDistMap ::template SetPredMap::Create BF;