Open CASCADE Technology  7.5.0
Static Public Member Functions

Quantity_ColorRGBAHasher Struct Reference

Hasher of Quantity_ColorRGBA. More...

#include <Quantity_ColorRGBAHasher.hxx>

Static Public Member Functions

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

Detailed Description

Hasher of Quantity_ColorRGBA.

Member Function Documentation

◆ HashCode()

static Standard_Integer Quantity_ColorRGBAHasher::HashCode ( const Quantity_ColorRGBA theColor,
const Standard_Integer  theUpperBound 
)
inlinestatic

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

Parameters
theColorthe RGBA color object 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 Quantity_ColorRGBAHasher::IsEqual ( const Quantity_ColorRGBA theColor1,
const Quantity_ColorRGBA theColor2 
)
inlinestatic

Returns true if two colors are equal.


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