Open CASCADE Technology  7.4.0
Data Structures | Functions

MeshVS_TwoNodes.hxx File Reference

#include <Standard.hxx>
#include <Standard_Macro.hxx>

Data Structures

struct  MeshVS_TwoNodes
 Structure containing two IDs (of nodes) for using as a key in a map (as representation of a mesh link) More...
 

Functions

Standard_Integer HashCode (const MeshVS_TwoNodes &theTwoNodes, const Standard_Integer theUpperBound)
 Computes a hash code for two nodes, in the range [1, theUpperBound]. More...
 
Standard_Boolean operator== (const MeshVS_TwoNodes &obj1, const MeshVS_TwoNodes &obj2)
 

Function Documentation

◆ HashCode()

Standard_Integer HashCode ( const MeshVS_TwoNodes theTwoNodes,
const Standard_Integer  theUpperBound 
)
inline

Computes a hash code for two nodes, in the range [1, theUpperBound].

Parameters
theTwoNodesthe object of structure containing two IDs 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]

◆ operator==()

Standard_Boolean operator== ( const MeshVS_TwoNodes obj1,
const MeshVS_TwoNodes obj2 
)
inline