Open Search
    FNV1aHasher Class Reference

    #include <hash.h>

    Public Types

    using ValueType = HashInt
     

    Public Member Functions

    void Combine (Char c)
     
    void Combine (UChar c)
     
    void Combine (Utf16Char c)
     
    void Combine (Utf32Char c)
     
    HashInt Finalize () const
     
     operator HashInt () const
     
    void AddHash (HashInt hash)
     

    Static Public Attributes

    static constexpr HashInt PRIME
     
    static constexpr HashInt BASIS
     

    Private Attributes

    HashInt _state
     

    Member Typedef Documentation

    ◆ ValueType

    using ValueType = HashInt

    Member Function Documentation

    ◆ Combine() [1/4]

    void Combine ( Char  c)

    ◆ Combine() [2/4]

    void Combine ( UChar  c)

    ◆ Combine() [3/4]

    void Combine ( Utf16Char  c)

    ◆ Combine() [4/4]

    void Combine ( Utf32Char  c)

    ◆ Finalize()

    HashInt Finalize ( ) const

    ◆ operator HashInt()

    operator HashInt ( ) const

    ◆ AddHash()

    void AddHash ( HashInt  hash)

    Member Data Documentation

    ◆ PRIME

    constexpr HashInt PRIME
    staticconstexpr

    ◆ BASIS

    constexpr HashInt BASIS
    staticconstexpr

    ◆ _state

    HashInt _state
    private