Open CASCADE Technology  7.5.0
Static Public Member Functions

MoniTool_MTHasher Class Reference

The auxiliary class provides hash code for mapping objects. More...

#include <MoniTool_MTHasher.hxx>

Static Public Member Functions

static Standard_Integer HashCode (Standard_CString theString, Standard_Integer theUpperBound)
 Returns hash code for the given string, in the range [1, theUpperBound]. More...
 
static Standard_Boolean IsEqual (const Standard_CString Str1, const Standard_CString Str2)
 Returns True when the two CString are the same. Two same strings must have the same hashcode, the contrary is not necessary. Default Str1 == Str2. More...
 

Detailed Description

The auxiliary class provides hash code for mapping objects.

Member Function Documentation

◆ HashCode()

static Standard_Integer MoniTool_MTHasher::HashCode ( Standard_CString  theString,
Standard_Integer  theUpperBound 
)
static

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

Parameters
theStringthe string 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 MoniTool_MTHasher::IsEqual ( const Standard_CString  Str1,
const Standard_CString  Str2 
)
static

Returns True when the two CString are the same. Two same strings must have the same hashcode, the contrary is not necessary. Default Str1 == Str2.


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