COIN-OR::LEMON - Graph Library

Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/concepts/maps.h

    r28 r25  
    3535
    3636    /// Readable map concept
    37 
    38     /// Readable map concept.
    39     ///
    4037    template<typename K, typename T>
    4138    class ReadMap
     
    4946      /// Returns the value associated with a key.
    5047
    51       /// \bug Value shouldn't need to be default constructible.
     48      /// \bug Value should n't need to be default constructible.
    5249      ///
    5350      Value operator[](const Key &) const {return Value();}
     
    7572
    7673    /// Writable map concept
    77    
    78     /// Writable map concept.
    79     ///
    8074    template<typename K, typename T>
    8175    class WriteMap
     
    114108    };
    115109
    116     /// Read/Writable map concept
    117    
    118     /// Read/writable map concept.
    119     ///
     110    ///Read/Writable map concept
    120111    template<typename K, typename T>
    121112    class ReadWriteMap : public ReadMap<K,T>,
     
    143134 
    144135 
    145     /// Dereferable map concept
    146    
    147     /// Dereferable map concept.
    148     ///
     136    ///Dereferable map concept
    149137    template<typename K, typename T, typename R, typename CR>
    150138    class ReferenceMap : public ReadWriteMap<K,T>
     
    169157      Reference operator[](const Key &) { return tmp; }
    170158      ///Returns a const reference to the value associated to a key.
    171       ConstReference operator[](const Key &) const { return tmp; }
     159      ConstReference operator[](const Key &) const
     160      { return tmp; }
    172161      /// Sets the value associated with a key.
    173162      void set(const Key &k,const Value &t) { operator[](k)=t; }
    174163
    175       /// \todo Rethink this concept.
     164      // \todo rethink this concept
    176165      template<typename _ReferenceMap>
    177166      struct ReferenceMapConcept {
     
    202191
    203192  } //namespace concepts
    204 
    205193} //namespace lemon
    206 
    207194#endif // LEMON_CONCEPT_MAPS_H
Note: See TracChangeset for help on using the changeset viewer.