Antkeeper  0.0.1
Public Types | Public Member Functions | Public Attributes | List of all members
hash::types::fnv1a32_t Struct Reference

32-bit FNV-1a hash value. More...

#include <fnv1a.hpp>

Public Types

using value_type = std::uint32_t
 Hash value type. More...
 

Public Member Functions

constexpr operator value_type () const noexcept
 Converts a 32-bit FNV-1a hash value to its underlying type. More...
 
constexpr explicit (false) fnv1a32_t(value_type value) noexcept
 Constructs a 32-bit FNV-1a hash value. More...
 
 fnv1a32_t ()=default
 Constructs a 32-bit FNV-1a hash value. More...
 
constexpr explicit (false) fnv1a32_t(const char *string) noexcept
 Constructs a 32-bit FNV-1a hash value from a string. More...
 
constexpr explicit (false) fnv1a32_t(const wchar_t *string) noexcept
 Constructs a 32-bit FNV-1a hash value from a string. More...
 
constexpr explicit (false) fnv1a32_t(const char8_t *string) noexcept
 Constructs a 32-bit FNV-1a hash value from a string. More...
 
constexpr explicit (false) fnv1a32_t(const char16_t *string) noexcept
 Constructs a 32-bit FNV-1a hash value from a string. More...
 
constexpr explicit (false) fnv1a32_t(const char32_t *string) noexcept
 Constructs a 32-bit FNV-1a hash value from a string. More...
 

Public Attributes

value_type value {0}
 32-bit FNV-1a hash value. More...
 

Detailed Description

32-bit FNV-1a hash value.

Definition at line 116 of file fnv1a.hpp.

Member Typedef Documentation

◆ value_type

using hash::types::fnv1a32_t::value_type = std::uint32_t

Hash value type.

Definition at line 119 of file fnv1a.hpp.

Constructor & Destructor Documentation

◆ fnv1a32_t()

hash::types::fnv1a32_t::fnv1a32_t ( )
default

Constructs a 32-bit FNV-1a hash value.

Parameters
value32-bit FNV-1a hash value.

Member Function Documentation

◆ explicit() [1/6]

constexpr hash::types::fnv1a32_t::explicit ( false  ) const
inlineconstexprnoexcept

Constructs a 32-bit FNV-1a hash value from a string.

Parameters
stringString to hash.

Definition at line 139 of file fnv1a.hpp.

◆ explicit() [2/6]

constexpr hash::types::fnv1a32_t::explicit ( false  ) const
inlineconstexprnoexcept

Constructs a 32-bit FNV-1a hash value from a string.

Parameters
stringString to hash.

Definition at line 148 of file fnv1a.hpp.

◆ explicit() [3/6]

constexpr hash::types::fnv1a32_t::explicit ( false  ) const
inlineconstexprnoexcept

Constructs a 32-bit FNV-1a hash value from a string.

Parameters
stringString to hash.

Definition at line 151 of file fnv1a.hpp.

◆ explicit() [4/6]

constexpr hash::types::fnv1a32_t::explicit ( false  ) const
inlineconstexprnoexcept

Constructs a 32-bit FNV-1a hash value from a string.

Parameters
stringString to hash.

Definition at line 145 of file fnv1a.hpp.

◆ explicit() [5/6]

constexpr hash::types::fnv1a32_t::explicit ( false  ) const
inlineconstexprnoexcept

Constructs a 32-bit FNV-1a hash value from a string.

Parameters
stringString to hash.

Definition at line 142 of file fnv1a.hpp.

◆ explicit() [6/6]

constexpr hash::types::fnv1a32_t::explicit ( false  )
inlineconstexprnoexcept

Constructs a 32-bit FNV-1a hash value.

Parameters
value32-bit FNV-1a hash value.

Definition at line 127 of file fnv1a.hpp.

◆ operator value_type()

constexpr hash::types::fnv1a32_t::operator value_type ( ) const
inlineconstexprnoexcept

Converts a 32-bit FNV-1a hash value to its underlying type.

Returns
32-bit FNV-1a hash value.

Definition at line 161 of file fnv1a.hpp.

Member Data Documentation

◆ value

value_type hash::types::fnv1a32_t::value {0}

32-bit FNV-1a hash value.

Definition at line 167 of file fnv1a.hpp.


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