openMSX
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
PerfectMinimalHash::Result< M, Hash > Struct Template Reference

#include <MinimalPerfectHash.hh>

Collaboration diagram for PerfectMinimalHash::Result< M, Hash >:
Collaboration graph
[legend]

Public Member Functions

template<typename Key >
constexpr uint8_t lookupIndex (const Key &key) const
 

Public Attributes

std::array< uint8_t, M > tab1
 
std::array< uint8_t, M2tab2
 
Hash hash
 

Static Public Attributes

static constexpr auto M2 = M / 2
 

Detailed Description

template<size_t M, typename Hash>
struct PerfectMinimalHash::Result< M, Hash >

Definition at line 58 of file MinimalPerfectHash.hh.

Member Function Documentation

◆ lookupIndex()

template<size_t M, typename Hash >
template<typename Key >
constexpr uint8_t PerfectMinimalHash::Result< M, Hash >::lookupIndex ( const Key &  key) const
inlineconstexpr

Definition at line 68 of file MinimalPerfectHash.hh.

References PerfectMinimalHash::Result< M, Hash >::hash.

Member Data Documentation

◆ hash

template<size_t M, typename Hash >
Hash PerfectMinimalHash::Result< M, Hash >::hash

◆ M2

template<size_t M, typename Hash >
constexpr auto PerfectMinimalHash::Result< M, Hash >::M2 = M / 2
staticconstexpr

Definition at line 61 of file MinimalPerfectHash.hh.

◆ tab1

template<size_t M, typename Hash >
std::array<uint8_t, M > PerfectMinimalHash::Result< M, Hash >::tab1

Definition at line 63 of file MinimalPerfectHash.hh.

◆ tab2

template<size_t M, typename Hash >
std::array<uint8_t, M2> PerfectMinimalHash::Result< M, Hash >::tab2

Definition at line 64 of file MinimalPerfectHash.hh.


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