COIN-OR::LEMON - Graph Library

Changeset 830:89dfa3bece81 in lemon-0.x for src/hugo/vector_map.h


Ignore:
Timestamp:
09/12/04 21:32:21 (20 years ago)
Author:
Balazs Dezso
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@1128
Message:

KeySet? and ValueSet? are inserted into the map structures.
They makes possible the iterating on the keys or values only.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/hugo/vector_map.h

    r822 r830  
    203203    }
    204204
     205    /// The KeySet of the Map.
     206    typedef MapConstKeySet<VectorMap> ConstKeySet;
     207
     208    /// KeySet getter function.
     209    ConstKeySet keySet() const {
     210      return ConstKeySet(*this);
     211    }
     212
     213    /// The ConstValueSet of the Map.
     214    typedef MapConstValueSet<VectorMap> ConstValueSet;
     215
     216    /// ConstValueSet getter function.
     217    ConstValueSet valueSet() const {
     218      return ConstValueSet(*this);
     219    }
     220
     221    /// The ValueSet of the Map.
     222    typedef MapValueSet<VectorMap> ValueSet;
     223
     224    /// ValueSet getter function.
     225    ValueSet valueSet() {
     226      return ValueSet(*this);
     227    }
     228
     229
    205230  private:
    206231               
Note: See TracChangeset for help on using the changeset viewer.