diff --git a/lemon/concepts/maps.h b/lemon/concepts/maps.h --- a/lemon/concepts/maps.h +++ b/lemon/concepts/maps.h @@ -34,6 +34,9 @@ /// @{ /// Readable map concept + + /// Readable map concept. + /// template class ReadMap { @@ -45,7 +48,7 @@ /// Returns the value associated with a key. - /// \bug Value should n't need to be default constructible. + /// \bug Value shouldn't need to be default constructible. /// Value operator[](const Key &) const {return Value();} @@ -71,6 +74,9 @@ /// Writable map concept + + /// Writable map concept. + /// template class WriteMap { @@ -107,7 +113,10 @@ }; }; - ///Read/Writable map concept + /// Read/Writable map concept + + /// Read/writable map concept. + /// template class ReadWriteMap : public ReadMap, public WriteMap @@ -133,7 +142,10 @@ }; - ///Dereferable map concept + /// Dereferable map concept + + /// Dereferable map concept. + /// template class ReferenceMap : public ReadWriteMap { @@ -156,12 +168,11 @@ ///Returns a reference to the value associated to a key. Reference operator[](const Key &) { return tmp; } ///Returns a const reference to the value associated to a key. - ConstReference operator[](const Key &) const - { return tmp; } + ConstReference operator[](const Key &) const { return tmp; } /// Sets the value associated with a key. void set(const Key &k,const Value &t) { operator[](k)=t; } - // \todo rethink this concept + /// \todo Rethink this concept. template struct ReferenceMapConcept { @@ -190,5 +201,7 @@ // @} } //namespace concepts + } //namespace lemon + #endif // LEMON_CONCEPT_MAPS_H