COIN-OR::LEMON - Graph Library

Changeset 1719:674182524bd9 in lemon-0.x for lemon/bits/array_map.h


Ignore:
Timestamp:
10/14/05 12:48:34 (15 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/bits/array_map.h

    r1703 r1719  
    4949    typedef _Item Item;
    5050  public:
    51     typedef True AdaptibleTag;
    52                
    5351    /// The graph type of the maps.
    5452    typedef _Graph Graph;
     53    /// The reference map tag.
     54    typedef True ReferenceMapTag;
     55
    5556    /// The key type of the maps.
    5657    typedef _Item Key;
     58    /// The value type of the map.
     59    typedef _Value Value;
     60    /// The const reference type of the map.
     61    typedef const _Value& ConstReference;
     62    /// The reference type of the map.
     63    typedef _Value& Reference;
     64
     65    typedef const Value ConstValue;
     66    typedef Value* Pointer;
     67    typedef const Value* ConstPointer;
    5768
    5869    typedef AlterationNotifier<_Item> Registry;
     
    6172    typedef typename Registry::ObserverBase Parent;
    6273               
    63     /// The value type of the map.
    64     typedef _Value Value;
    6574
    6675
     
    7180  public:
    7281
    73     /// \brief Graph and Registry initialized map constructor.
    74     ///
    75     /// Graph and Registry initialized map constructor.
     82    /// \brief Graph initialized map constructor.
     83    ///
     84    /// Graph initialized map constructor.
    7685    ArrayMap(const Graph& _g) : graph(&_g) {
    7786      Item it;
Note: See TracChangeset for help on using the changeset viewer.