HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
UT_HashFunctor< T > Class Template Reference

#include <UT_HashFunctor.h>

Public Member Functions

size_t operator() (const T &o) const
 () operator for UT_Map More...
 

Static Public Member Functions

static size_t hash (const T &o)
 hash() used by UT_ConcurrentHashMap More...
 
static bool equal (const T &a, const T &b)
 equal() function used by UT_ConcurrentHashMap More...
 

Detailed Description

template<typename T>
class UT_HashFunctor< T >

A generic hash object which can be used by UT_Map and UT_ConcurrentHashMap. The template argument must have a hash() method and a correct == operator.

Definition at line 21 of file UT_HashFunctor.h.

Member Function Documentation

template<typename T >
static bool UT_HashFunctor< T >::equal ( const T a,
const T b 
)
inlinestatic

equal() function used by UT_ConcurrentHashMap

Definition at line 27 of file UT_HashFunctor.h.

template<typename T >
static size_t UT_HashFunctor< T >::hash ( const T o)
inlinestatic

hash() used by UT_ConcurrentHashMap

Definition at line 25 of file UT_HashFunctor.h.

template<typename T >
size_t UT_HashFunctor< T >::operator() ( const T o) const
inline

() operator for UT_Map

Definition at line 30 of file UT_HashFunctor.h.


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