Open CASCADE Technology  7.3.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 theUpper)
 Returns hash code for the given color. 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 (Standard_Integer &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  theUpper 
)
inlinestatic

Returns hash code for the given color.

◆ 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 ( Standard_Integer theHash,
const Standard_Integer  theValue 
)
inlinestaticprotected

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