RenderManAPI  24.0
RixHashUtils Class Referenceabstract

A wrapper for provided hash functions. More...

#include <RixInterfaces.h>

Inherits RixInterface.

Public Types

enum  Type {
  k_Float, k_Integer, k_StringV, k_Color,
  k_Normal, k_Vector, k_Point, k_HPoint,
  k_MPoint, k_Matrix
}
 

Public Member Functions

virtual uint32_t XXHash32 (void const *input, size_t size, unsigned seed)=0
 Compute 32-bit hash using xxHash and an explicit seed value. More...
 
virtual uint64_t XXHash64 (void const *input, size_t size, unsigned seed)=0
 Compute 64-bit hash using xxHash and an explicit seed value. More...
 
virtual int GetVersion () const
 Get the version number of this interface. More...
 

Protected Member Functions

 RixHashUtils ()
 constructor for internal use only More...
 

Protected Attributes

int m_version
 Version number of this interface. More...
 

Detailed Description

A wrapper for provided hash functions.

Currently only offers an implementation of xxHash 32 & 64.

Member Enumeration Documentation

◆ Type

enum RixInterface::Type
inherited
Enumerator
k_Float 
k_Integer 
k_StringV 
k_Color 
k_Normal 
k_Vector 
k_Point 
k_HPoint 
k_MPoint 
k_Matrix 

Constructor & Destructor Documentation

◆ RixHashUtils()

RixHashUtils::RixHashUtils ( )
inlineprotected

constructor for internal use only

Member Function Documentation

◆ GetVersion()

virtual int RixInterface::GetVersion ( ) const
inlinevirtualinherited

Get the version number of this interface.

Different interfaces might have different version numbers in a given release.

References RixInterface::m_version.

◆ XXHash32()

virtual uint32_t RixHashUtils::XXHash32 ( void const *  input,
size_t  size,
unsigned  seed 
)
pure virtual

Compute 32-bit hash using xxHash and an explicit seed value.

◆ XXHash64()

virtual uint64_t RixHashUtils::XXHash64 ( void const *  input,
size_t  size,
unsigned  seed 
)
pure virtual

Compute 64-bit hash using xxHash and an explicit seed value.

Member Data Documentation

◆ m_version

int RixInterface::m_version
protectedinherited

Version number of this interface.

Referenced by RixInterface::GetVersion().


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