HashPoolAdaptorT< T > Class Template Reference

#include <CompressPsf.h>

List of all members.

Public Member Functions

 HashPoolAdaptorT (const T &v)
 HashPoolAdaptorT ()
 operator T & ()
 operator const T & () const
CkHashCode hash (void) const
int compare (const HashPoolAdaptorT< T > &t) const
T & getVal ()
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)


Detailed Description

template<class T>
class HashPoolAdaptorT< T >

Definition at line 68 of file CompressPsf.h.


Constructor & Destructor Documentation

template<class T>
HashPoolAdaptorT< T >::HashPoolAdaptorT ( const T &  v  )  [inline]

template<class T>
HashPoolAdaptorT< T >::HashPoolAdaptorT (  )  [inline]

added to allow pup to do Key k while unPacking


Member Function Documentation

template<class T>
int HashPoolAdaptorT< T >::compare ( const HashPoolAdaptorT< T > &  t  )  const [inline]

Definition at line 86 of file CompressPsf.h.

References HashPoolAdaptorT< T >::val.

00086                                                          {
00087     return val==t.val;
00088   }

template<class T>
T& HashPoolAdaptorT< T >::getVal (  )  [inline]

Definition at line 94 of file CompressPsf.h.

Referenced by HashPool< T >::lookupCstPool().

00094 { return val; }

template<class T>
CkHashCode HashPoolAdaptorT< T >::hash ( void   )  const [inline]

Definition at line 77 of file CompressPsf.h.

Referenced by HashPool< T >::dump_tables(), and HashPool< T >::lookupCstPool().

00077                                      { 
00078     const int hash=val.hash();
00079     return CkHashFunction_int(&hash,sizeof(int));
00080   }

template<class T>
HashPoolAdaptorT< T >::operator const T & (  )  const [inline]

Definition at line 75 of file CompressPsf.h.

00075 { return val; }

template<class T>
HashPoolAdaptorT< T >::operator T & (  )  [inline]

Definition at line 74 of file CompressPsf.h.

00074 { return val; }

template<class T>
void HashPoolAdaptorT< T >::pup ( PUP::er &  p  )  [inline]

Definition at line 97 of file CompressPsf.h.

00097                     {
00098     p | *val;
00099   }

template<class T>
static int HashPoolAdaptorT< T >::staticCompare ( const void *  a,
const void *  b,
size_t   
) [inline, static]

Definition at line 90 of file CompressPsf.h.

00090                                                                {
00091     return ((HashPoolAdaptorT<T> *)a)->compare(*(HashPoolAdaptorT<T> *)b);
00092   }

template<class T>
static CkHashCode HashPoolAdaptorT< T >::staticHash ( const void *  k,
size_t   
) [inline, static]

Definition at line 82 of file CompressPsf.h.

00082                                                      {
00083     return ((HashPoolAdaptorT<T> *)k)->hash();
00084   }


The documentation for this class was generated from the following file:
Generated on Thu Nov 23 01:17:18 2017 for NAMD by  doxygen 1.4.7