Elm  1.0
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
elm::concept::Hash< T > Class Template Reference

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

Static Public Member Functions

static unsigned long 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.

Member Function Documentation

template<class T >
static bool elm::concept::Hash< T >::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.
template<class T >
static unsigned long elm::concept::Hash< T >::hash ( const T &  object)
static

Compute the hash value of the given object.

Parameters
objectObject to hash.
Returns
Hash value.

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