62 const KEYTYPE&
Key()
const;
73template<
class KEYTYPE,
class VALUETYPE>
82template<
class KEYTYPE,
class VALUETYPE>
95template<
class KEYTYPE,
class VALUETYPE>
105template<
class KEYTYPE,
class VALUETYPE>
107 keyData(rhs.keyData),
108 valueData(rhs.valueData)
116template<
class KEYTYPE,
class VALUETYPE>
118 keyData(std::move(rhs.keyData)),
119 valueData(std::move(rhs.valueData))
127template<
class KEYTYPE,
class VALUETYPE>
138template<
class KEYTYPE,
class VALUETYPE>
142 this->keyData = std::move(rhs.keyData);
143 this->valueData = std::move(rhs.valueData);
149template<
class KEYTYPE,
class VALUETYPE>
153 return (this->keyData == rhs.
keyData);
159template<
class KEYTYPE,
class VALUETYPE>
163 return (this->keyData != rhs.
keyData);
169template<
class KEYTYPE,
class VALUETYPE>
173 return (this->keyData > rhs.
keyData);
179template<
class KEYTYPE,
class VALUETYPE>
183 return (this->keyData >= rhs.
keyData);
189template<
class KEYTYPE,
class VALUETYPE>
193 return (this->keyData < rhs.
keyData);
199template<
class KEYTYPE,
class VALUETYPE>
203 return (this->keyData <= rhs.
keyData);
209template<
class KEYTYPE,
class VALUETYPE>
213 return (this->keyData == rhs);
219template<
class KEYTYPE,
class VALUETYPE>
223 return (this->keyData != rhs);
229template<
class KEYTYPE,
class VALUETYPE>
233 return (this->keyData > rhs);
239template<
class KEYTYPE,
class VALUETYPE>
243 return (this->keyData >= rhs);
249template<
class KEYTYPE,
class VALUETYPE>
253 return (this->keyData < rhs);
259template<
class KEYTYPE,
class VALUETYPE>
263 return (this->keyData <= rhs);
270template<
class KEYTYPE,
class VALUETYPE>
274 return this->valueData;
280template<
class KEYTYPE,
class VALUETYPE>
284 return this->keyData;
290template<
class KEYTYPE,
class VALUETYPE>
294 return this->valueData;
Key/Value pair objects are used by most assiociative container classes, like Dictionary or HashTable.
Definition keyvaluepair.h:19
KeyValuePair(KeyValuePair< KEYTYPE, VALUETYPE > &&rhs) noexcept
move constructor
Definition keyvaluepair.h:117
bool operator==(const KEYTYPE &rhs) const
equality operator
Definition keyvaluepair.h:211
void operator=(KeyValuePair< KEYTYPE, VALUETYPE > &&rhs) noexcept
move assignment operator
Definition keyvaluepair.h:140
const KEYTYPE & Key() const
read access to key
Definition keyvaluepair.h:282
KEYTYPE keyData
Definition keyvaluepair.h:66
bool operator>=(const KeyValuePair< KEYTYPE, VALUETYPE > &rhs) const
greater-or-equal operator
Definition keyvaluepair.h:181
bool operator==(const KeyValuePair< KEYTYPE, VALUETYPE > &rhs) const
equality operator
Definition keyvaluepair.h:151
VALUETYPE valueData
Definition keyvaluepair.h:67
bool operator!=(const KEYTYPE &rhs) const
inequality operator
Definition keyvaluepair.h:221
bool operator>(const KEYTYPE &rhs) const
greater operator
Definition keyvaluepair.h:231
void operator=(const KeyValuePair< KEYTYPE, VALUETYPE > &rhs)
assignment operator
Definition keyvaluepair.h:129
bool operator<=(const KeyValuePair< KEYTYPE, VALUETYPE > &rhs) const
lesser-or-equal operator
Definition keyvaluepair.h:201
bool operator<(const KEYTYPE &rhs) const
lesser operator
Definition keyvaluepair.h:251
bool operator<=(const KEYTYPE &rhs) const
lesser-or-equal operator
Definition keyvaluepair.h:261
bool operator!=(const KeyValuePair< KEYTYPE, VALUETYPE > &rhs) const
inequality operator
Definition keyvaluepair.h:161
KeyValuePair(const KeyValuePair< KEYTYPE, VALUETYPE > &rhs)
copy constructor
Definition keyvaluepair.h:106
KeyValuePair()
default constructor
Definition keyvaluepair.h:74
KeyValuePair(const KEYTYPE &k)
constructor with key and undefined value
Definition keyvaluepair.h:96
bool operator>(const KeyValuePair< KEYTYPE, VALUETYPE > &rhs) const
greater operator
Definition keyvaluepair.h:171
VALUETYPE & Value()
read/write access to value
Definition keyvaluepair.h:272
bool operator<(const KeyValuePair< KEYTYPE, VALUETYPE > &rhs) const
lesser operator
Definition keyvaluepair.h:191
KeyValuePair(const KEYTYPE &k, const VALUETYPE &v)
constructor with key and value
Definition keyvaluepair.h:83
bool operator>=(const KEYTYPE &rhs) const
greater-or-equal operator
Definition keyvaluepair.h:241
const VALUETYPE & Value() const
read access to key
Definition keyvaluepair.h:292
A pinned array is an array which manages its own virtual memory.
Definition String.cs:6