LIEF: Library to Instrument Executable Formats Version 1.0.0
Loading...
Searching...
No Matches
frozen::bits::pmh_tables< M, Hasher > Struct Template Reference

#include <pmh.h>

Inheritance diagram for frozen::bits::pmh_tables< M, Hasher >:
Collaboration diagram for frozen::bits::pmh_tables< M, Hasher >:

Public Member Functions

constexpr pmh_tables (std::uint64_t first_seed, carray< seed_or_index, M > first_table, carray< std::size_t, M > second_table, Hasher hash) noexcept
constexpr Hasher const & hash_function () const noexcept
template<typename KeyType>
constexpr std::size_t lookup (const KeyType &key) const
template<typename KeyType, typename HasherType>
constexpr std::size_t lookup (const KeyType &key, const HasherType &hasher) const

Public Attributes

std::uint64_t first_seed_
carray< seed_or_index, M > first_table_
carray< std::size_t, M > second_table_

Constructor & Destructor Documentation

◆ pmh_tables()

template<std::size_t M, class Hasher>
frozen::bits::pmh_tables< M, Hasher >::pmh_tables ( std::uint64_t first_seed,
carray< seed_or_index, M > first_table,
carray< std::size_t, M > second_table,
Hasher hash )
inlineconstexprnoexcept

Member Function Documentation

◆ hash_function()

template<std::size_t M, class Hasher>
Hasher const & frozen::bits::pmh_tables< M, Hasher >::hash_function ( ) const
inlineconstexprnoexcept

◆ lookup() [1/2]

template<std::size_t M, class Hasher>
template<typename KeyType>
std::size_t frozen::bits::pmh_tables< M, Hasher >::lookup ( const KeyType & key) const
inlineconstexpr

◆ lookup() [2/2]

template<std::size_t M, class Hasher>
template<typename KeyType, typename HasherType>
std::size_t frozen::bits::pmh_tables< M, Hasher >::lookup ( const KeyType & key,
const HasherType & hasher ) const
inlineconstexpr

Member Data Documentation

◆ first_seed_

template<std::size_t M, class Hasher>
std::uint64_t frozen::bits::pmh_tables< M, Hasher >::first_seed_

◆ first_table_

template<std::size_t M, class Hasher>
carray<seed_or_index, M> frozen::bits::pmh_tables< M, Hasher >::first_table_

◆ second_table_

template<std::size_t M, class Hasher>
carray<std::size_t, M> frozen::bits::pmh_tables< M, Hasher >::second_table_

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