Open CASCADE Technology  7.4.0
Functions
Standard_Size.hxx File Reference
#include <Standard_Integer.hxx>

Functions

template<typename TheSize >
opencascade::std::enable_if<!opencascade::std::is_same< Standard_Size, unsigned int >::value &&opencascade::std::is_same< TheSize, Standard_Size >::value, Standard_Integer >::type HashCode (const TheSize theValue, const Standard_Integer theUpperBound)
 Computes a hash code for the given value of the Standard_Size type, in the range [1, theUpperBound]. More...
 
Standard_Boolean IsEqual (const Standard_Size One, const Standard_Size Two)
 

Function Documentation

◆ HashCode()

template<typename TheSize >
opencascade::std::enable_if<!opencascade::std::is_same<Standard_Size, unsigned int>::value && opencascade::std::is_same<TheSize, Standard_Size>::value, Standard_Integer>::type HashCode ( const TheSize  theValue,
const Standard_Integer  theUpperBound 
)

Computes a hash code for the given value of the Standard_Size type, in the range [1, theUpperBound].

Template Parameters
TheSizethe type of the given value (it is Standard_Size, and must not be the same as "unsigned int", because the overload of the HashCode function for "unsigned int" type is already presented in Standard_Integer.hxx)
Parameters
theValuethe value of the Standard_Size type 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()

Standard_Boolean IsEqual ( const Standard_Size  One,
const Standard_Size  Two 
)
inline