PPL Logo

CkHashtableTslow< KEY, OBJ > Class Template Reference

This class provides a thin typesafe layer over the (unsafe) CkHashtable above. More...

#include <ckhashtable.h>

Inheritance diagram for CkHashtableTslow< KEY, OBJ >:

Inheritance graph
[legend]
Collaboration diagram for CkHashtableTslow< KEY, OBJ >:

Collaboration graph
[legend]

Public Member Functions

 CkHashtableTslow (int initLen=5, float NloadFactor=0.5, CkHashFunction Nhash=CkHashFunction_default, CkHashCompare Ncompare=CkHashCompare_default)
OBJ & put (const KEY &key, int *existing=NULL)
OBJ get (const KEY &key) const
OBJ & getRef (const KEY &key)
void remove (const KEY &key)

Static Private Member Functions

static CkHashtableLayout getLayout (void)

Detailed Description

template<class KEY, class OBJ>
class CkHashtableTslow< KEY, OBJ >

This class provides a thin typesafe layer over the (unsafe) CkHashtable above.

Via the magic of function inlining, this comes at zero time and space cost over the unsafe version.

The unsafe version exists to avoid the code bloat associated with profligate use of templates; because the typeless layer handles the difficult parts, this templated class is very cheap.

Definition at line 307 of file ckhashtable.h.


Constructor & Destructor Documentation

template<class KEY, class OBJ>
CkHashtableTslow< KEY, OBJ >::CkHashtableTslow ( int  initLen = 5,
float  NloadFactor = 0.5,
CkHashFunction  Nhash = CkHashFunction_default,
CkHashCompare  Ncompare = CkHashCompare_default 
) [inline]

Definition at line 329 of file ckhashtable.h.


Member Function Documentation

template<class KEY, class OBJ>
static CkHashtableLayout CkHashtableTslow< KEY, OBJ >::getLayout ( void   )  [inline, static, private]

Definition at line 309 of file ckhashtable.h.

template<class KEY, class OBJ>
OBJ& CkHashtableTslow< KEY, OBJ >::put ( const KEY &  key,
int existing = NULL 
) [inline]

template<class KEY, class OBJ>
OBJ CkHashtableTslow< KEY, OBJ >::get ( const KEY &  key  )  const [inline]

Reimplemented in CkHashtableT< KEY, OBJ >.

Definition at line 340 of file ckhashtable.h.

template<class KEY, class OBJ>
OBJ& CkHashtableTslow< KEY, OBJ >::getRef ( const KEY &  key  )  [inline]

Reimplemented in CkHashtableT< KEY, OBJ >.

Definition at line 346 of file ckhashtable.h.

template<class KEY, class OBJ>
void CkHashtableTslow< KEY, OBJ >::remove ( const KEY &  key  )  [inline]


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

Generated on Mon Sep 21 08:20:07 2020 for Charm++ by  doxygen 1.5.5