COIN-OR::LEMON - Graph Library

Changes in / [30:72364ba3466d:31:742abd64255e] in lemon-main


Ignore:
Location:
lemon
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • lemon/concept_check.h

    r26 r27  
    3434// See http://www.boost.org/libs/concept_check for documentation.
    3535
    36 #ifndef LEMON_BOOST_CONCEPT_CHECKS_HPP
    37 #define LEMON_BOOST_CONCEPT_CHECKS_HPP
     36#ifndef LEMON_CONCEPT_CHECKS_H
     37#define LEMON_CONCEPT_CHECKS_H
    3838
    3939namespace lemon {
     
    103103} // namespace lemon
    104104
    105 #endif // LEMON_BOOST_CONCEPT_CHECKS_HPP
     105#endif // LEMON_CONCEPT_CHECKS_H
  • 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.