COIN-OR::LEMON - Graph Library

Changeset 28:e337bdf46777 in lemon-1.0 for lemon/concepts


Ignore:
Timestamp:
01/04/08 03:29:54 (17 years ago)
Author:
Peter Kovacs <kpeter@…>
Branch:
default
Children:
31:742abd64255e, 35:f8ddf1b1541a
Phase:
public
Message:

Doc improvements.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/concepts/maps.h

    r25 r28  
    3535
    3636    /// Readable map concept
     37
     38    /// Readable map concept.
     39    ///
    3740    template<typename K, typename T>
    3841    class ReadMap
     
    4649      /// Returns the value associated with a key.
    4750
    48       /// \bug Value should n't need to be default constructible.
     51      /// \bug Value shouldn't need to be default constructible.
    4952      ///
    5053      Value operator[](const Key &) const {return Value();}
     
    7275
    7376    /// Writable map concept
     77   
     78    /// Writable map concept.
     79    ///
    7480    template<typename K, typename T>
    7581    class WriteMap
     
    108114    };
    109115
    110     ///Read/Writable map concept
     116    /// Read/Writable map concept
     117   
     118    /// Read/writable map concept.
     119    ///
    111120    template<typename K, typename T>
    112121    class ReadWriteMap : public ReadMap<K,T>,
     
    134143 
    135144 
    136     ///Dereferable map concept
     145    /// Dereferable map concept
     146   
     147    /// Dereferable map concept.
     148    ///
    137149    template<typename K, typename T, typename R, typename CR>
    138150    class ReferenceMap : public ReadWriteMap<K,T>
     
    157169      Reference operator[](const Key &) { return tmp; }
    158170      ///Returns a const reference to the value associated to a key.
    159       ConstReference operator[](const Key &) const
    160       { return tmp; }
     171      ConstReference operator[](const Key &) const { return tmp; }
    161172      /// Sets the value associated with a key.
    162173      void set(const Key &k,const Value &t) { operator[](k)=t; }
    163174
    164       // \todo rethink this concept
     175      /// \todo Rethink this concept.
    165176      template<typename _ReferenceMap>
    166177      struct ReferenceMapConcept {
     
    191202
    192203  } //namespace concepts
     204
    193205} //namespace lemon
     206
    194207#endif // LEMON_CONCEPT_MAPS_H
Note: See TracChangeset for help on using the changeset viewer.