COIN-OR::LEMON - Graph Library

Changeset 820:7ef7a5fbb85d in lemon-main for lemon/cost_scaling.h


Ignore:
Timestamp:
11/13/09 00:37:55 (14 years ago)
Author:
Peter Kovacs <kpeter@…>
Branch:
default
Phase:
public
Rebase:
63313365636433613635626132303738343865306262663962663135333037633237623361346233
Message:

Rename a private type in MCF classes (#180)

The new MCF algorithms define a private map type VectorMap?,
which could be misleading, since there is an other VectorMap?
defined in lemon/bits/vector_map.h. Thus the new type is
is renamed to StaticVectorMap?.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/cost_scaling.h

    r813 r820  
    206206 
    207207    template <typename KT, typename VT>
    208     class VectorMap {
     208    class StaticVectorMap {
    209209    public:
    210210      typedef KT Key;
    211211      typedef VT Value;
    212212     
    213       VectorMap(std::vector<Value>& v) : _v(v) {}
     213      StaticVectorMap(std::vector<Value>& v) : _v(v) {}
    214214     
    215215      const Value& operator[](const Key& key) const {
     
    229229    };
    230230
    231     typedef VectorMap<StaticDigraph::Node, LargeCost> LargeCostNodeMap;
    232     typedef VectorMap<StaticDigraph::Arc, LargeCost> LargeCostArcMap;
     231    typedef StaticVectorMap<StaticDigraph::Node, LargeCost> LargeCostNodeMap;
     232    typedef StaticVectorMap<StaticDigraph::Arc, LargeCost> LargeCostArcMap;
    233233
    234234  private:
Note: See TracChangeset for help on using the changeset viewer.