equal
deleted
inserted
replaced
1 // -*- c++ -*- |
1 // -*- c++ -*- |
2 #ifndef HUGO_MAPSKELETON_H |
2 #ifndef HUGO_MAPSKELETON_H |
3 #define HUGO_MAPSKELETON_H |
3 #define HUGO_MAPSKELETON_H |
4 |
4 |
|
5 ///\ingroup skeletons |
5 ///\file |
6 ///\file |
6 ///\brief Map concepts checking classes for testing and documenting. |
7 ///\brief Map concepts checking classes for testing and documenting. |
7 |
8 |
8 namespace hugo { |
9 namespace hugo { |
9 |
10 |
10 /// The namespace of HUGOlib concepts and concept checking classes |
11 /// The namespace of HUGOlib concepts and concept checking classes |
11 namespace skeleton { |
12 namespace skeleton { |
12 |
13 |
|
14 /// \addtogroup skeletons |
|
15 /// @{ |
|
16 |
13 /// Readable map concept |
17 /// Readable map concept |
14 template<typename K, typename T> |
18 template<typename K, typename T> |
15 class ReadMap |
19 class ReadMap |
16 { |
20 { |
17 public: |
21 public: |
92 void set(const KeyType &k,const ValueType &t) { operator[](k)=t; } |
96 void set(const KeyType &k,const ValueType &t) { operator[](k)=t; } |
93 |
97 |
94 ///Default constructor |
98 ///Default constructor |
95 ReferenceMap() {} |
99 ReferenceMap() {} |
96 }; |
100 }; |
|
101 |
|
102 // @} |
|
103 |
97 } //namespace skeleton |
104 } //namespace skeleton |
98 } //namespace hugo |
105 } //namespace hugo |
99 #endif // HUGO_MAPSKELETON_H |
106 #endif // HUGO_MAPSKELETON_H |