COIN-OR::LEMON - Graph Library

Changeset 1719:674182524bd9 in lemon-0.x for lemon/concept


Ignore:
Timestamp:
10/14/05 12:48:34 (14 years ago)
Author:
Balazs Dezso
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2246
Message:

Traits moved to own file
Tag for reference maps
Possibility to handle proper the return type
of the operator[]() const -- value or reference

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/concept/maps.h

    r1435 r1719  
    1818#define LEMON_CONCEPT_MAPS_H
    1919
     20#include <lemon/utility.h>
    2021#include <lemon/concept_check.h>
    2122
     
    9899        Key& key;
    99100        typename _WriteMap::Key& own_key;
    100         WriteMap& m;
     101        _WriteMap& m;
    101102
    102103      };
     
    123124        void constraints() {
    124125          checkConcept<ReadMap<K, T>, _ReadWriteMap >();
    125           checkConcept<ReadMap<K, T>, _ReadWriteMap >();
     126          checkConcept<WriteMap<K, T>, _ReadWriteMap >();
    126127        }
    127128      };
     
    134135    {
    135136    public:
     137      /// Tag for reference maps.
     138      typedef True ReferenceMapTag;
    136139      /// Map's key type.
    137140      typedef K Key;   
     
    177180        Value& val;
    178181        Reference& ref;
    179         ReferenceMap& m;
     182        _ReferenceMap& m;
    180183      };
    181184    };
Note: See TracChangeset for help on using the changeset viewer.