tudocomp
– The TU Dortmund Compression Framework
tdc::SizeManagerPow2 Struct Reference

#include <Hash.hpp>

Inheritance diagram for tdc::SizeManagerPow2:
tdc::Algorithm

Public Member Functions

 SizeManagerPow2 (Env &&env)
 
void resize (const len_t)
 
- Public Member Functions inherited from tdc::Algorithm
virtual ~Algorithm ()=default
 
 Algorithm (Algorithm const &)=default
 
 Algorithm (Algorithm &&)=default
 
Algorithm & operator= (Algorithm const &)=default
 
Algorithm & operator= (Algorithm &&)=default
 
 Algorithm (Env &&env)
 Instantiates an algorithm in the specified environment. More...
 
Env & env ()
 Provides access to the environment that the algorithm works in. More...
 
const Env & env () const
 

Static Public Member Functions

static Meta meta ()
 
static len_t get_min_size (const len_t &hint)
 The lowest possible size larger than hint. More...
 
static len_t mod_tablesize (const size_t &index, const len_t &tablesize, const size_t &, const size_t &)
 Compute index % tablesize Since tablesize is a power of two, a bitwise-AND is equivalent and faster. More...
 

Detailed Description

Definition at line 80 of file Hash.hpp.

Constructor & Destructor Documentation

◆ SizeManagerPow2()

tdc::SizeManagerPow2::SizeManagerPow2 ( Env &&  env)
inline

Definition at line 85 of file Hash.hpp.

Member Function Documentation

◆ get_min_size()

static len_t tdc::SizeManagerPow2::get_min_size ( const len_t &  hint)
inlinestatic

The lowest possible size larger than hint.

Definition at line 91 of file Hash.hpp.

◆ meta()

static Meta tdc::SizeManagerPow2::meta ( )
inlinestatic

Definition at line 81 of file Hash.hpp.

◆ mod_tablesize()

static len_t tdc::SizeManagerPow2::mod_tablesize ( const size_t &  index,
const len_t &  tablesize,
const size_t &  ,
const size_t &   
)
inlinestatic

Compute index % tablesize Since tablesize is a power of two, a bitwise-AND is equivalent and faster.

Definition at line 98 of file Hash.hpp.

◆ resize()

void tdc::SizeManagerPow2::resize ( const len_t  )
inline

Definition at line 86 of file Hash.hpp.


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