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

#include <Hash.hpp>

Inheritance diagram for tdc::SizeManagerNoob:
tdc::Algorithm

Public Member Functions

 SizeManagerNoob (Env &&env)
 
void resize (const len_t)
 
len_t mod_tablesize (const size_t index, const len_t tablesize, const size_t, const size_t)
 Compute index % tablesize. More...
 
- Public Member Functions inherited from tdc::Algorithm
virtual ~Algorithm ()=default
 
 Algorithm (Algorithm const &)=default
 
 Algorithm (Algorithm &&)=default
 
Algorithmoperator= (Algorithm const &)=default
 
Algorithmoperator= (Algorithm &&)=default
 
 Algorithm (Env &&env)
 Instantiates an algorithm in the specified environment. More...
 
Envenv ()
 Provides access to the environment that the algorithm works in. More...
 
const Envenv () 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...
 

Detailed Description

Definition at line 134 of file Hash.hpp.

Constructor & Destructor Documentation

◆ SizeManagerNoob()

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

Definition at line 139 of file Hash.hpp.

Member Function Documentation

◆ get_min_size()

static len_t tdc::SizeManagerNoob::get_min_size ( const len_t hint)
inlinestatic

The lowest possible size larger than hint.

Definition at line 143 of file Hash.hpp.

◆ meta()

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

Definition at line 135 of file Hash.hpp.

◆ mod_tablesize()

len_t tdc::SizeManagerNoob::mod_tablesize ( const size_t  index,
const len_t  tablesize,
const size_t  ,
const size_t   
)
inline

Compute index % tablesize.

Definition at line 152 of file Hash.hpp.

◆ resize()

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

Definition at line 146 of file Hash.hpp.


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