COIN-OR::LEMON - Graph Library

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


Ignore:
Timestamp:
09/02/04 17:21:13 (20 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/map_registry.h

    r785 r786  
    2626  public:
    2727    typedef G Graph;
    28     typedef K Key;
     28    typedef K KeyType;
    2929    typedef KIt KeyIt;
    3030       
     
    3939    public:
    4040      typedef G Graph;
    41       typedef K Key;
     41      typedef K KeyType;
    4242      typedef KIt KeyIt;
    4343
     
    136136      */
    137137       
    138       virtual void add(const Key&) = 0;
     138      virtual void add(const KeyType&) = 0;     
    139139      /**
    140140          The erase member function should be overloaded in the subclasses.
     
    142142      */
    143143       
    144       virtual void erase(const Key&) = 0;
     144      virtual void erase(const KeyType&) = 0;
    145145
    146146      /**
     
    241241     * Notify all the registered maps about a Key added.
    242242     */
    243     void add(Key& key) {
     243    void add(KeyType& key) {
    244244      typename Container::iterator it;
    245245      for (it = container.begin(); it != container.end(); ++it) {
     
    251251     * Notify all the registered maps about a Key erased.
    252252     */
    253     void erase(Key& key) {
     253    void erase(KeyType& key) {
    254254      typename Container::iterator it;
    255255      for (it = container.begin(); it != container.end(); ++it) {
Note: See TracChangeset for help on using the changeset viewer.