COIN-OR::LEMON - Graph Library

Changeset 786:d7b3b13b9df6 in lemon-0.x for src/hugo/sym_map_factory.h


Ignore:
Timestamp:
09/02/04 17:21:13 (16 years ago)
Author:
Alpar Juttner
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@1079
Message:

Change 'Key' to 'KeyType?' (possibly temporarily).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/hugo/sym_map_factory.h

    r782 r786  
    3636               
    3737    typedef typename MapRegistry::Graph Graph;
    38     typedef typename MapRegistry::Key Key;
     38    typedef typename MapRegistry::KeyType KeyType;
    3939    typedef typename MapRegistry::KeyIt KeyIt;
    4040
     
    6969      }
    7070   
    71       Value& operator[](const Key& key) {
     71      Value& operator[](const KeyType& key) {
    7272        int id = MapBase::getGraph()->id(key); 
    7373        return MapImpl::operator[](id >> 1);
    7474      }
    7575               
    76       const Value& operator[](const Key& key) const {
     76      const Value& operator[](const KeyType& key) const {
    7777        int id = MapBase::getGraph()->id(key);
    7878        return MapImpl::operator[](id >> 1);
    7979      }
    8080       
    81       const Value& get(const Key& key) const {
     81      const Value& get(const KeyType& key) const {
    8282        int id = MapBase::getGraph()->id(key);
    8383        return MapImpl::operator[](id >> 1);
    8484      }
    8585               
    86       void set(const Key& key, const Value& val) {
     86      void set(const KeyType& key, const Value& val) {
    8787        int id = MapBase::getGraph()->id(key);
    8888        MapImpl::operator[](id >> 1) = val;
    8989      }
    9090               
    91       void add(const Key& key) {
     91      void add(const KeyType& key) {
    9292        int id = MapBase::getGraph()->id(key);
    9393        if (id & 1) return;
     
    9595      }
    9696               
    97       void erase(const Key& key) {
     97      void erase(const KeyType& key) {
    9898        int id = MapBase::getGraph()->id(key);
    9999        if (id & 1) return;
Note: See TracChangeset for help on using the changeset viewer.