... | ... |
@@ -40,11 +40,11 @@ |
40 | 40 |
template<typename K, typename T> |
41 | 41 |
class ReadMap |
42 | 42 |
{ |
43 | 43 |
public: |
44 |
/// |
|
44 |
/// The key type of the map. |
|
45 | 45 |
typedef K Key; |
46 |
/// |
|
46 |
/// The value type of the map. (The type of objects associated with the keys). |
|
47 | 47 |
typedef T Value; |
48 | 48 |
|
49 | 49 |
/// Returns the value associated with a key. |
50 | 50 |
|
... | ... |
@@ -80,11 +80,11 @@ |
80 | 80 |
template<typename K, typename T> |
81 | 81 |
class WriteMap |
82 | 82 |
{ |
83 | 83 |
public: |
84 |
/// |
|
84 |
/// The key type of the map. |
|
85 | 85 |
typedef K Key; |
86 |
/// |
|
86 |
/// The value type of the map. (The type of objects associated with the keys). |
|
87 | 87 |
typedef T Value; |
88 | 88 |
|
89 | 89 |
/// Sets the value associated with a key. |
90 | 90 |
void set(const Key &,const Value &) {} |
... | ... |
@@ -118,14 +118,14 @@ |
118 | 118 |
/// Read/writable map concept. |
119 | 119 |
/// |
120 | 120 |
template<typename K, typename T> |
121 | 121 |
class ReadWriteMap : public ReadMap<K,T>, |
122 |
|
|
122 |
public WriteMap<K,T> |
|
123 | 123 |
{ |
124 | 124 |
public: |
125 |
/// |
|
125 |
/// The key type of the map. |
|
126 | 126 |
typedef K Key; |
127 |
/// |
|
127 |
/// The value type of the map. (The type of objects associated with the keys). |
|
128 | 128 |
typedef T Value; |
129 | 129 |
|
130 | 130 |
/// Returns the value associated with a key. |
131 | 131 |
Value operator[](const Key &) const {return Value();} |
... | ... |
@@ -151,15 +151,15 @@ |
151 | 151 |
{ |
152 | 152 |
public: |
153 | 153 |
/// Tag for reference maps. |
154 | 154 |
typedef True ReferenceMapTag; |
155 |
/// |
|
155 |
/// The key type of the map. |
|
156 | 156 |
typedef K Key; |
157 |
/// |
|
157 |
/// The value type of the map. (The type of objects associated with the keys). |
|
158 | 158 |
typedef T Value; |
159 |
/// |
|
159 |
/// The reference type of the map. |
|
160 | 160 |
typedef R Reference; |
161 |
/// |
|
161 |
/// The const reference type of the map. |
|
162 | 162 |
typedef CR ConstReference; |
163 | 163 |
|
164 | 164 |
protected: |
165 | 165 |
Value tmp; |
0 comments (0 inline)