v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
v8::base::Hasher Class Reference

#include <hashing.h>

Collaboration diagram for v8::base::Hasher:

Public Member Functions

constexpr Hasher ()=default
 
constexpr Hasher (size_t seed)
 
constexpr size_t hash () const
 
HasherAddHash (size_t other_hash)
 
template<typename T >
HasherAdd (const T &t)
 
template<typename Iterator >
HasherAddRange (Iterator first, Iterator last)
 
template<typename C >
auto AddRange (C collection) -> decltype(AddRange(std::begin(collection), std::end(collection)))
 

Static Public Member Functions

template<typename... T>
static constexpr size_t Combine (const T &... ts)
 

Private Attributes

size_t hash_ = 0
 

Detailed Description

Definition at line 105 of file hashing.h.

Constructor & Destructor Documentation

◆ Hasher() [1/2]

v8::base::Hasher::Hasher ( )
constexprdefault

◆ Hasher() [2/2]

v8::base::Hasher::Hasher ( size_t seed)
inlineexplicitconstexpr

Definition at line 108 of file hashing.h.

Member Function Documentation

◆ Add()

template<typename T >
Hasher & v8::base::Hasher::Add ( const T & t)
inline

Definition at line 121 of file hashing.h.

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

◆ AddHash()

Hasher & v8::base::Hasher::AddHash ( size_t other_hash)
inline

Definition at line 114 of file hashing.h.

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

◆ AddRange() [1/2]

template<typename C >
auto v8::base::Hasher::AddRange ( C collection) -> decltype(AddRange(std::begin(collection), std::end(collection)))
inline

Definition at line 137 of file hashing.h.

Here is the call graph for this function:

◆ AddRange() [2/2]

template<typename Iterator >
Hasher & v8::base::Hasher::AddRange ( Iterator first,
Iterator last )
inline

Definition at line 127 of file hashing.h.

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

◆ Combine()

template<typename... T>
static constexpr size_t v8::base::Hasher::Combine ( const T &... ts)
inlinestaticconstexpr

Definition at line 144 of file hashing.h.

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

◆ hash()

size_t v8::base::Hasher::hash ( ) const
inlineconstexpr

Definition at line 111 of file hashing.h.

Here is the caller graph for this function:

Member Data Documentation

◆ hash_

size_t v8::base::Hasher::hash_ = 0
private

Definition at line 151 of file hashing.h.


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