Grappa  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Grappa::GlobalHashMap< K, V > Class Template Reference

#include <GlobalHashMap.hpp>

Classes

struct  Cell
 
struct  Entry
 
struct  Proxy
 
struct  ResultEntry
 

Public Member Functions

uint64_t computeIndex (K key)
 
 GlobalHashMap (GlobalAddress< GlobalHashMap > self, GlobalAddress< Cell > base, size_t capacity)
 
 GlobalHashMap ()
 
GlobalAddress< Cellbegin ()
 
size_t ncells ()
 
void clear ()
 
void destroy ()
 
template<typename F >
void forall_entries (F visit)
 
bool lookup (K key, V *val)
 
void insert (K key, V val)
 

Static Public Member Functions

static GlobalAddress
< GlobalHashMap
create (size_t total_capacity)
 

Public Attributes

struct Grappa::GlobalHashMap::Cell GRAPPA_BLOCK_ALIGNED
 
GlobalAddress< GlobalHashMapself
 
GlobalAddress< Cellbase
 
size_t capacity
 
FlatCombiner< Proxyproxy
 

Detailed Description

template<typename K, typename V>
class Grappa::GlobalHashMap< K, V >

Definition at line 43 of file GlobalHashMap.hpp.

Constructor & Destructor Documentation

template<typename K , typename V >
Grappa::GlobalHashMap< K, V >::GlobalHashMap ( GlobalAddress< GlobalHashMap< K, V > >  self,
GlobalAddress< Cell base,
size_t  capacity 
)
inline

Definition at line 171 of file GlobalHashMap.hpp.

template<typename K , typename V >
Grappa::GlobalHashMap< K, V >::GlobalHashMap ( )
inline

Definition at line 180 of file GlobalHashMap.hpp.

Member Function Documentation

template<typename K , typename V >
GlobalAddress<Cell> Grappa::GlobalHashMap< K, V >::begin ( )
inline

Definition at line 192 of file GlobalHashMap.hpp.

template<typename K , typename V >
void Grappa::GlobalHashMap< K, V >::clear ( )
inline

Definition at line 195 of file GlobalHashMap.hpp.

template<typename K , typename V >
uint64_t Grappa::GlobalHashMap< K, V >::computeIndex ( key)
inline

Definition at line 165 of file GlobalHashMap.hpp.

template<typename K , typename V >
static GlobalAddress<GlobalHashMap> Grappa::GlobalHashMap< K, V >::create ( size_t  total_capacity)
inlinestatic

Definition at line 182 of file GlobalHashMap.hpp.

template<typename K , typename V >
void Grappa::GlobalHashMap< K, V >::destroy ( )
inline

Definition at line 199 of file GlobalHashMap.hpp.

template<typename K , typename V >
template<typename F >
void Grappa::GlobalHashMap< K, V >::forall_entries ( visit)
inline

Definition at line 208 of file GlobalHashMap.hpp.

template<typename K , typename V >
void Grappa::GlobalHashMap< K, V >::insert ( key,
val 
)
inline

Definition at line 250 of file GlobalHashMap.hpp.

template<typename K , typename V >
bool Grappa::GlobalHashMap< K, V >::lookup ( key,
V *  val 
)
inline

Definition at line 219 of file GlobalHashMap.hpp.

template<typename K , typename V >
size_t Grappa::GlobalHashMap< K, V >::ncells ( )
inline

Definition at line 193 of file GlobalHashMap.hpp.

Member Data Documentation

template<typename K , typename V >
GlobalAddress< Cell > Grappa::GlobalHashMap< K, V >::base

Definition at line 160 of file GlobalHashMap.hpp.

template<typename K , typename V >
size_t Grappa::GlobalHashMap< K, V >::capacity

Definition at line 161 of file GlobalHashMap.hpp.

template<typename K , typename V >
struct Grappa::GlobalHashMap::Cell Grappa::GlobalHashMap< K, V >::GRAPPA_BLOCK_ALIGNED
template<typename K , typename V >
FlatCombiner<Proxy> Grappa::GlobalHashMap< K, V >::proxy

Definition at line 163 of file GlobalHashMap.hpp.

template<typename K , typename V >
GlobalAddress<GlobalHashMap> Grappa::GlobalHashMap< K, V >::self

Definition at line 159 of file GlobalHashMap.hpp.


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