#include <ckhashtable.h>
Public Member Functions | |
CkHashtableAdaptorT (const T &v) | |
CkHashtableAdaptorT () | |
added to allow pup to do Key k while unPacking | |
operator T & () | |
operator const T & () const | |
CkHashCode | hash (void) const |
int | compare (const CkHashtableAdaptorT< T > &t) const |
void | pup (PUP::er &p) |
Static Public Member Functions | |
static CkHashCode | staticHash (const void *k, size_t) |
static int | staticCompare (const void *a, const void *b, size_t) |
Private Attributes | |
T | val |
as hashtable keys.
This class adds the hash, compare, staticHash, and staticCompare routines needed to be a CkHashtableT KEY; you can thus use ints as a fast key like this: CkHashtableT<CkHashtableAdaptorT<int>, foo> bar;
Definition at line 454 of file ckhashtable.h.
CkHashtableAdaptorT< T >::CkHashtableAdaptorT | ( | const T & | v | ) | [inline] |
CkHashtableAdaptorT< T >::CkHashtableAdaptorT | ( | ) | [inline] |
added to allow pup to do Key k while unPacking
CkHashtableAdaptorT< T >::operator T & | ( | ) | [inline] |
CkHashtableAdaptorT< T >::operator const T & | ( | ) | const [inline] |
CkHashCode CkHashtableAdaptorT< T >::hash | ( | void | ) | const [inline] |
static CkHashCode CkHashtableAdaptorT< T >::staticHash | ( | const void * | k, | |
size_t | ||||
) | [inline, static] |
Definition at line 464 of file ckhashtable.h.
int CkHashtableAdaptorT< T >::compare | ( | const CkHashtableAdaptorT< T > & | t | ) | const [inline] |
Definition at line 466 of file ckhashtable.h.
References CkHashtableAdaptorT< T >::val.
Referenced by CkHashtableAdaptorT< T >::staticCompare().
static int CkHashtableAdaptorT< T >::staticCompare | ( | const void * | a, | |
const void * | b, | |||
size_t | ||||
) | [inline, static] |
Definition at line 468 of file ckhashtable.h.
References CkHashtableAdaptorT< T >::compare().
void CkHashtableAdaptorT< T >::pup | ( | PUP::er & | p | ) | [inline] |
T CkHashtableAdaptorT< T >::val [private] |
Definition at line 455 of file ckhashtable.h.
Referenced by CkHashtableAdaptorT< T >::compare(), CkHashtableAdaptorT< T >::hash(), CkHashtableAdaptorT< T >::operator const T &(), CkHashtableAdaptorT< T >::operator T &(), and CkHashtableAdaptorT< T >::pup().