Open CASCADE Technology  7.5.0
Static Public Member Functions

Interface_MapAsciiStringHasher Class Reference

#include <Interface_MapAsciiStringHasher.hxx>

Static Public Member Functions

static Standard_Integer HashCode (const TCollection_AsciiString &theAsciiString, Standard_Integer theUpperBound)
 Computes a hash code for the given ASCII string, in the range [1, theUpperBound]. More...
 
static Standard_Boolean IsEqual (const TCollection_AsciiString &K1, const TCollection_AsciiString &K2)
 

Member Function Documentation

◆ HashCode()

static Standard_Integer Interface_MapAsciiStringHasher::HashCode ( const TCollection_AsciiString theAsciiString,
Standard_Integer  theUpperBound 
)
static

Computes a hash code for the given ASCII string, in the range [1, theUpperBound].

Parameters
theAsciiStringthe ASCII 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 Interface_MapAsciiStringHasher::IsEqual ( const TCollection_AsciiString K1,
const TCollection_AsciiString K2 
)
static

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