|
CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
|
Pair of key and value. This type should be allocated on stack and passed to functions by value or by reference. Never use System::SmartPtr class to manage objects of this type. More...
#include <keyvalue_pair.h>
Public Member Functions | |
| KeyValuePair () | |
| Null key-value pair initializer. More... | |
| KeyValuePair (const TKey &key, const TValue &value) | |
| Constructor. More... | |
| template<typename OtherK , typename OtherV > | |
| KeyValuePair (const std::pair< OtherK, OtherV > &pair) | |
| Type conversion constructor. More... | |
| const TKey & | get_Key () const |
| Gets key. More... | |
| const TValue & | get_Value () const |
| Gets value. More... | |
| bool | IsNull () const |
| Always returns false. More... | |
| bool | operator< (const KeyValuePair &kvp) const |
| Patch for classes inherited from IComparer<KeyValuePair<TKey, TValue>>, doesn't compare anything. More... | |
| String | ToString () const |
| Converts key-value pair to string. More... | |
| int | GetHashCode () const |
| Calculates key-value pair hash by xoring key's and value's hashes. More... | |
Public Attributes | |
| std::pair< TKey, TValue > | m_pair |
| Internal data structure. More... | |
Pair of key and value. This type should be allocated on stack and passed to functions by value or by reference. Never use System::SmartPtr class to manage objects of this type.
| TKey | Key type. |
| TValue | Value type. |
|
inline |
Null key-value pair initializer.
|
inline |
Constructor.
| key | Key. |
| value | Value. |
|
inline |
Type conversion constructor.
| OtherK | Other key type. |
| OtherV | Other value type. |
| pair | Pair value. |
|
inline |
Gets key.
|
inline |
Gets value.
|
inline |
Calculates key-value pair hash by xoring key's and value's hashes.
|
inline |
Always returns false.
|
inline |
Patch for classes inherited from IComparer<KeyValuePair<TKey, TValue>>, doesn't compare anything.
| kvp | Dummy argument. |
|
inline |
Converts key-value pair to string.
| std::pair<TKey, TValue> System::Collections::Generic::KeyValuePair< TKey, TValue >::m_pair |
Internal data structure.