Open CASCADE Technology  7.4.0
Static Public Member Functions | Static Protected Member Functions
Quantity_ColorHasher Struct Reference

Hasher of Quantity_Color. More...

#include <Quantity_ColorHasher.hxx>

Static Public Member Functions

static Standard_Integer HashCode (const Quantity_Color &theColor, const Standard_Integer theUpperBound)
 Returns hash code for the given RGB color, in the range [1, theUpperBound]. More...
 
static Standard_Boolean IsEqual (const Quantity_Color &theColor1, const Quantity_Color &theColor2)
 Returns true if two colors are equal. More...
 

Static Protected Member Functions

static void updateHash (unsigned int &theHash, const Standard_Integer theValue)
 

Detailed Description

Hasher of Quantity_Color.

Member Function Documentation

◆ HashCode()

static Standard_Integer Quantity_ColorHasher::HashCode ( const Quantity_Color theColor,
const Standard_Integer  theUpperBound 
)
inlinestatic

Returns hash code for the given RGB color, in the range [1, theUpperBound].

Parameters
theColorthe RGB color object which hash code is to be computed
theUpperBoundthe upper bound of the range a computing range must be within
Returns
a computed hash code, in the range [1, theUpperBound]

◆ IsEqual()

static Standard_Boolean Quantity_ColorHasher::IsEqual ( const Quantity_Color theColor1,
const Quantity_Color theColor2 
)
inlinestatic

Returns true if two colors are equal.

◆ updateHash()

static void Quantity_ColorHasher::updateHash ( unsigned int &  theHash,
const Standard_Integer  theValue 
)
inlinestaticprotected

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