CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
CeresEngine::fibonacci_hash_policy Struct Reference

#include <CeresEngine/Foundation/Container/FlatHashMap.hpp>

Public Member Functions

size_t index_for_hash (const size_t hash, size_t) const
 
size_t keep_in_range (const size_t index, const size_t num_slots_minus_one) const
 
int8_t next_size_over (size_t &size) const
 
void commit (const int8_t shift)
 
void reset ()
 

Private Attributes

int8_t shift = 63
 

Member Function Documentation

◆ commit()

void CeresEngine::fibonacci_hash_policy::commit ( const int8_t  shift)
inline

◆ index_for_hash()

size_t CeresEngine::fibonacci_hash_policy::index_for_hash ( const size_t  hash,
size_t   
) const
inline

◆ keep_in_range()

size_t CeresEngine::fibonacci_hash_policy::keep_in_range ( const size_t  index,
const size_t  num_slots_minus_one 
) const
inline

◆ next_size_over()

int8_t CeresEngine::fibonacci_hash_policy::next_size_over ( size_t size) const
inline

◆ reset()

void CeresEngine::fibonacci_hash_policy::reset ( )
inline

Member Data Documentation

◆ shift

int8_t CeresEngine::fibonacci_hash_policy::shift = 63
private

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