tudocomp
– The TU Dortmund Compression Framework
tdc::compact_hash< val_t > Class Template Reference

#include <compact_sparse_hash.hpp>

Public Member Functions

 compact_hash (size_t size, size_t key_width=DEFAULT_KEY_WIDTH)
 
 ~compact_hash ()
 
 compact_hash (compact_hash &&other)
 
compact_hashoperator= (compact_hash &&other)
 
void insert (uint64_t key, val_t &&value)
 
void insert (uint64_t key, val_t &&value, size_t key_width)
 
val_t & operator[] (uint64_t key)
 
val_t & index (uint64_t key, size_t key_width)
 
size_t size () const
 
std::string debug_state ()
 
void debug_check_single (uint64_t key, val_t const &val)
 

Detailed Description

template<typename val_t>
class tdc::compact_hash< val_t >

Definition at line 331 of file compact_sparse_hash.hpp.

Constructor & Destructor Documentation

◆ compact_hash() [1/2]

template<typename val_t>
tdc::compact_hash< val_t >::compact_hash ( size_t  size,
size_t  key_width = DEFAULT_KEY_WIDTH 
)
inline

Definition at line 354 of file compact_sparse_hash.hpp.

◆ ~compact_hash()

template<typename val_t>
tdc::compact_hash< val_t >::~compact_hash ( )
inline

Definition at line 364 of file compact_sparse_hash.hpp.

◆ compact_hash() [2/2]

template<typename val_t>
tdc::compact_hash< val_t >::compact_hash ( compact_hash< val_t > &&  other)
inline

Definition at line 368 of file compact_sparse_hash.hpp.

Member Function Documentation

◆ debug_check_single()

template<typename val_t>
void tdc::compact_hash< val_t >::debug_check_single ( uint64_t  key,
val_t const &  val 
)
inline

Definition at line 956 of file compact_sparse_hash.hpp.

◆ debug_state()

template<typename val_t>
std::string tdc::compact_hash< val_t >::debug_state ( )
inline

Definition at line 888 of file compact_sparse_hash.hpp.

◆ index()

template<typename val_t>
val_t& tdc::compact_hash< val_t >::index ( uint64_t  key,
size_t  key_width 
)
inline

Definition at line 580 of file compact_sparse_hash.hpp.

◆ insert() [1/2]

template<typename val_t>
void tdc::compact_hash< val_t >::insert ( uint64_t  key,
val_t &&  value 
)
inline

Definition at line 567 of file compact_sparse_hash.hpp.

◆ insert() [2/2]

template<typename val_t>
void tdc::compact_hash< val_t >::insert ( uint64_t  key,
val_t &&  value,
size_t  key_width 
)
inline

Definition at line 570 of file compact_sparse_hash.hpp.

◆ operator=()

template<typename val_t>
compact_hash& tdc::compact_hash< val_t >::operator= ( compact_hash< val_t > &&  other)
inline

Definition at line 376 of file compact_sparse_hash.hpp.

◆ operator[]()

template<typename val_t>
val_t& tdc::compact_hash< val_t >::operator[] ( uint64_t  key)
inline

Definition at line 576 of file compact_sparse_hash.hpp.

◆ size()

template<typename val_t>
size_t tdc::compact_hash< val_t >::size ( ) const
inline

Definition at line 590 of file compact_sparse_hash.hpp.


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