Open CASCADE Technology  7.5.0
Static Public Member Functions

NCollection_AccAllocator::Hasher Class Reference

Key hasher. More...

#include <NCollection_AccAllocator.hxx>

Static Public Member Functions

static Standard_Integer HashCode (const Key theKey, const Standard_Integer theUpperBound)
 Returns hash code for the given key, in the range [1, theUpperBound]. More...
 
static Standard_Boolean IsEqual (const Key theOne, const Key theTwo)
 

Detailed Description

Key hasher.

Member Function Documentation

◆ HashCode()

static Standard_Integer NCollection_AccAllocator::Hasher::HashCode ( const Key  theKey,
const Standard_Integer  theUpperBound 
)
inlinestatic

Returns hash code for the given key, in the range [1, theUpperBound].

Parameters
theKeythe key which hash code is to be computed
theUpperBoundthe upper bound of the range a computing hash code must be within
Returns
a computed hash code, in the range [1, theUpperBound]

◆ IsEqual()

static Standard_Boolean NCollection_AccAllocator::Hasher::IsEqual ( const Key  theOne,
const Key  theTwo 
)
inlinestatic

The documentation for this class was generated from the following file: