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

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

Public Member Functions

size_t index_for_hash (const size_t hash, const size_t num_slots_minus_one) 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 (int8_t)
 
void reset ()
 

Member Function Documentation

◆ commit()

void CeresEngine::power_of_two_hash_policy::commit ( int8_t  )
inline

◆ index_for_hash()

size_t CeresEngine::power_of_two_hash_policy::index_for_hash ( const size_t  hash,
const size_t  num_slots_minus_one 
) const
inline

◆ keep_in_range()

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

◆ next_size_over()

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

◆ reset()

void CeresEngine::power_of_two_hash_policy::reset ( )
inline

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