Open CASCADE Technology  7.6.0
Static Public Member Functions

MeshVS_SymmetricPairHasher Struct Reference

Provides symmetric hash methods pair of integers. More...

#include <MeshVS_SymmetricPairHasher.hxx>

Static Public Member Functions

static Standard_Integer HashCode (const MeshVS_NodePair &theNodePair, const Standard_Integer theUpperBound)
 Computes a hash code for the node pair, in the range [1, theUpperBound]. More...
 
static Standard_Boolean IsEqual (const MeshVS_NodePair &thePair1, const MeshVS_NodePair &thePair2)
 

Detailed Description

Provides symmetric hash methods pair of integers.

Member Function Documentation

◆ HashCode()

static Standard_Integer MeshVS_SymmetricPairHasher::HashCode ( const MeshVS_NodePair theNodePair,
const Standard_Integer  theUpperBound 
)
inlinestatic

Computes a hash code for the node pair, in the range [1, theUpperBound].

Parameters
theNodePairthe node pair 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 MeshVS_SymmetricPairHasher::IsEqual ( const MeshVS_NodePair thePair1,
const MeshVS_NodePair thePair2 
)
inlinestatic

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