|
CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
|
Adapter to use IEqualityComparer for hashing. Uses comparator object, if set; otherwise, uses available hash method selected using DictionaryHashSelector struct. More...
#include <iequality_comparer.h>
Public Member Functions | |
| EqualityComparerHashAdapter () | |
| Creates adapter with no comparator to use. More... | |
| EqualityComparerHashAdapter (const SharedPtr< IEqualityComparer< T > > &comparator) | |
| Creates adapter with given comparator to use. More... | |
| void | set_EqualityComparator (const SharedPtr< IEqualityComparer< T > > &comparator) |
| Sets comparator to use. More... | |
| std::size_t | operator() (const T &x) const |
| Calculates hash value. More... | |
Adapter to use IEqualityComparer for hashing. Uses comparator object, if set; otherwise, uses available hash method selected using DictionaryHashSelector struct.
| Hashed | type. |
|
inline |
Creates adapter with no comparator to use.
|
inline |
Creates adapter with given comparator to use.
| comparator | Comparator to use. |
|
inline |
Calculates hash value.
| x | Hashed object. |
|
inline |
Sets comparator to use.
| comparator | Comparator to use. |