TrinityCore
Loading...
Searching...
No Matches
Trinity::HashFnv1a< T > Struct Template Reference

#include <Hash.h>

Public Types

using Constants = HashFnv1aConstants< sizeof(T)>
 

Public Member Functions

template<HashablePrimitive V, std::size_t Extent>
constexpr void UpdateData (std::span< V, Extent > data) noexcept
 
template<HashablePrimitive V>
constexpr void UpdateData (V data) noexcept
 
template<typename V >
requires requires { std::span(data); }
constexpr void UpdateData (V const &data) noexcept
 

Static Public Member Functions

template<HashablePrimitive V, std::size_t Extent>
static constexpr std::size_t GetHash (std::span< V, Extent > data) noexcept
 
template<HashablePrimitive V>
static constexpr std::size_t GetHash (V data) noexcept
 
template<typename V >
requires requires { std::span(data); }
static constexpr std::size_t GetHash (V const &data) noexcept
 

Public Attributes

Value = Constants::Basis
 

Detailed Description

template<typename T = std::size_t>
struct Trinity::HashFnv1a< T >

Definition at line 78 of file Hash.h.

Member Typedef Documentation

◆ Constants

template<typename T = std::size_t>
using Trinity::HashFnv1a< T >::Constants = HashFnv1aConstants<sizeof(T)>

Definition at line 80 of file Hash.h.

Member Function Documentation

◆ GetHash() [1/3]

template<typename T = std::size_t>
template<HashablePrimitive V, std::size_t Extent>
static constexpr std::size_t Trinity::HashFnv1a< T >::GetHash ( std::span< V, Extent >  data)
inlinestaticconstexprnoexcept

Definition at line 130 of file Hash.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetHash() [2/3]

template<typename T = std::size_t>
template<typename V >
requires requires { std::span(data); }
static constexpr std::size_t Trinity::HashFnv1a< T >::GetHash ( V const &  data)
inlinestaticconstexprnoexcept

Definition at line 144 of file Hash.h.

◆ GetHash() [3/3]

template<typename T = std::size_t>
template<HashablePrimitive V>
static constexpr std::size_t Trinity::HashFnv1a< T >::GetHash ( data)
inlinestaticconstexprnoexcept

Definition at line 138 of file Hash.h.

+ Here is the call graph for this function:

◆ UpdateData() [1/3]

template<typename T = std::size_t>
template<HashablePrimitive V, std::size_t Extent>
constexpr void Trinity::HashFnv1a< T >::UpdateData ( std::span< V, Extent >  data)
inlineconstexprnoexcept

Definition at line 85 of file Hash.h.

+ Here is the caller graph for this function:

◆ UpdateData() [2/3]

template<typename T = std::size_t>
template<typename V >
requires requires { std::span(data); }
constexpr void Trinity::HashFnv1a< T >::UpdateData ( V const &  data)
inlineconstexprnoexcept

Definition at line 124 of file Hash.h.

◆ UpdateData() [3/3]

template<typename T = std::size_t>
template<HashablePrimitive V>
constexpr void Trinity::HashFnv1a< T >::UpdateData ( data)
inlineconstexprnoexcept

Definition at line 118 of file Hash.h.

Member Data Documentation

◆ Value

template<typename T = std::size_t>
T Trinity::HashFnv1a< T >::Value = Constants::Basis

Definition at line 82 of file Hash.h.


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