Open CASCADE Technology  7.6.0
Data Structures | Functions

NCollection_DefaultHasher.hxx File Reference

#include <Standard_Integer.hxx>
#include <Standard_Boolean.hxx>

Data Structures

class  NCollection_DefaultHasher< TheKeyType >
 

Functions

template<class TheKeyType >
Standard_Integer HashCode_Proxy (const TheKeyType &theKey, const Standard_Integer theUpperBound)
 Returns hash code for the given key, in the range [1, theUpperBound]. More...
 
template<class TheKeyType >
Standard_Boolean IsEqual (const TheKeyType &theKey1, const TheKeyType &theKey2)
 
template<class TheKeyType >
Standard_Boolean IsEqual_Proxy (const TheKeyType &theKey1, const TheKeyType &theKey2)
 

Function Documentation

◆ HashCode_Proxy()

template<class TheKeyType >
Standard_Integer HashCode_Proxy ( const TheKeyType &  theKey,
const Standard_Integer  theUpperBound 
)
inline

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

Template Parameters
TheKeyTypethe type of the given key
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()

template<class TheKeyType >
Standard_Boolean IsEqual ( const TheKeyType &  theKey1,
const TheKeyType &  theKey2 
)
inline

◆ IsEqual_Proxy()

template<class TheKeyType >
Standard_Boolean IsEqual_Proxy ( const TheKeyType &  theKey1,
const TheKeyType &  theKey2 
)
inline