cuda::experimental::stf::hashtable#

class hashtable#

A simple hashtable that maps size_t to size_t

Public Functions

inline hashtable(uint32_t capacity = reserved::kHashTableCapacity)#

Default constructor (runs on host)

inline hashtable(
reserved::KeyValue *addr,
uint32_t capacity = reserved::kHashTableCapacity,
)#

Constructor from pointer to KeyValue (runs on host or device)

hashtable(const hashtable&) = default#
inline ~hashtable()#
inline void cpu_cat() const#

TODO.

inline uint32_t get(uint32_t key) const#

Get the entry with the requested key, if any.

inline void insert(uint32_t key, uint32_t value)#

TODO.

inline void insert(const reserved::KeyValue &kvs)#

Introduce a pair of key/value in a hashtable.

inline size_t get_capacity() const#

Public Members

reserved::KeyValue *addr#