Open CASCADE Technology
7.5.0
|
#include <NCollection_DefaultHasher.hxx>
Static Public Member Functions | |
static Standard_Integer | HashCode (const TheKeyType &theKey, const Standard_Integer theUpperBound) |
Returns hash code for the given key, in the range [1, theUpperBound]. More... | |
static Standard_Boolean | IsEqual (const TheKeyType &theKey1, const TheKeyType &theKey2) |
Purpose: The DefaultHasher is a Hasher that is used by default in NCollection maps. To compute the hash code of the key is used the global function HashCode. To compare two keys is used the global function IsEqual.
|
inlinestatic |
Returns hash code for the given key, in the range [1, theUpperBound].
theKey | the key which hash code is to be computed |
theUpperBound | the upper bound of the range a computing hash code must be within |
|
inlinestatic |