COIN-OR::LEMON - Graph Library

Changeset 830:89dfa3bece81 in lemon-0.x for src/hugo/array_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/array_map.h

    r822 r830  
    252252    }
    253253
     254    /// The KeySet of the Map.
     255    typedef MapConstKeySet<ArrayMap> ConstKeySet;
     256
     257    /// KeySet getter function.
     258    ConstKeySet keySet() const {
     259      return ConstKeySet(*this);
     260    }
     261
     262    /// The ConstValueSet of the Map.
     263    typedef MapConstValueSet<ArrayMap> ConstValueSet;
     264
     265    /// ConstValueSet getter function.
     266    ConstValueSet valueSet() const {
     267      return ConstValueSet(*this);
     268    }
     269
     270    /// The ValueSet of the Map.
     271    typedef MapValueSet<ArrayMap> ValueSet;
     272
     273    /// ValueSet getter function.
     274    ValueSet valueSet() {
     275      return ValueSet(*this);
     276    }
     277
    254278  private:
    255279     
Note: See TracChangeset for help on using the changeset viewer.