JUCE
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines
Static Public Member Functions
DefaultHashFunctions Class Reference

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

List of all members.

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 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 
) [static]

Generates a simple hash from an integer.

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

Generates a simple hash from a string.

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

Generates a simple hash from a variant.

References generateHash().

Referenced by generateHash().


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