Open CASCADE Technology  7.7.0
Static Public Member Functions
IntTools_SurfaceRangeSampleMapHasher Class Reference

#include <IntTools_SurfaceRangeSampleMapHasher.hxx>

Static Public Member Functions

static Standard_Integer HashCode (const IntTools_SurfaceRangeSample &theKey, Standard_Integer theUpperBound)
 Computes a hash code for the given key, in the range [1, theUpperBound]. More...
 
static Standard_Boolean IsEqual (const IntTools_SurfaceRangeSample &S1, const IntTools_SurfaceRangeSample &S2)
 Returns True when the two keys are the same. Two same keys must have the same hashcode, the contrary is not necessary. More...
 

Member Function Documentation

◆ HashCode()

static Standard_Integer IntTools_SurfaceRangeSampleMapHasher::HashCode ( const IntTools_SurfaceRangeSample theKey,
Standard_Integer  theUpperBound 
)
inlinestatic

Computes a 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 IntTools_SurfaceRangeSampleMapHasher::IsEqual ( const IntTools_SurfaceRangeSample S1,
const IntTools_SurfaceRangeSample S2 
)
inlinestatic

Returns True when the two keys are the same. Two same keys must have the same hashcode, the contrary is not necessary.


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