Elm  2
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
Hash< T > Class Template Reference

#include </home/casse/Dev/elm/src/concepts.h>

Public Member Functions

t::uint32 computeHash (const T &object)
 
bool isEqual (const T &object1, const T &object2)
 

Static Public Member Functions

static t::uint32 hash (const T &object)
 
static bool equals (const T &object1, const T &object2)
 

Detailed Description

template<class T>
class elm::concept::Hash< T >

This concept must be implemented by interface to hashable objects.

Parameters
TType of hashable objects.
Implemented by:
Used by:

Member Function Documentation

◆ computeHash()

t::uint32 computeHash ( const T &  object)

Compute the hash value of the given object.

Parameters
objectObject to hash.
Returns
Hash value.

◆ equals()

static bool equals ( const T &  object1,
const T &  object2 
)
static

Test if two hashable objects are equal.

Parameters
object1First object to compare.
object2Second object to compare.
Returns
True if both objects are equal, false else.
Deprecated:
Non-static version of this method is preferred now.

◆ hash()

static t::uint32 hash ( const T &  object)
static

Compute the hash value of the given object.

Parameters
objectObject to hash.
Returns
Hash value.
Deprecated:
Non-static version of this method is preferred now.

◆ isEqual()

bool isEqual ( const T &  object1,
const T &  object2 
)

Test if two hashable objects are equal.

Parameters
object1First object to compare.
object2Second object to compare.
Returns
True if both objects are equal, false else.
Deprecated:
Non-static version of this method is preferred now.

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