JUCE
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Static Public Member Functions | List of all members
DefaultHashFunctions Class Reference

A simple class to generate hash functions for some primitive types, intended for use with the HashMap class. More...

Static Public Member Functions

static int generateHash (const int key, const int upperLimit) noexcept
 Generates a simple hash from an integer.
 
static int generateHash (const int64 key, const int upperLimit) noexcept
 Generates a simple hash from an int64.
 
static int generateHash (const String &key, const int upperLimit) noexcept
 Generates a simple hash from a string.
 
static int generateHash (const var &key, const int upperLimit) noexcept
 Generates a simple hash from a variant.
 

Detailed Description

A simple class to generate hash functions for some primitive types, intended for use with the HashMap class.

See Also
HashMap

Member Function Documentation

static int DefaultHashFunctions::generateHash ( const int  key,
const int  upperLimit 
)
staticnoexcept

Generates a simple hash from an integer.

static int DefaultHashFunctions::generateHash ( const int64  key,
const int  upperLimit 
)
staticnoexcept

Generates a simple hash from an int64.

static int DefaultHashFunctions::generateHash ( const String key,
const int  upperLimit 
)
staticnoexcept

Generates a simple hash from a string.

static int DefaultHashFunctions::generateHash ( const var key,
const int  upperLimit 
)
staticnoexcept

Generates a simple hash from a variant.

References generateHash().

Referenced by generateHash().


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