Bitcoin ABC 0.30.3
P2P Digital Currency
Public Member Functions | Private Attributes | List of all members
ByteVectorHash Class Referencefinal

Implementation of Hash named requirement for types that internally store a byte array. More...

#include <bytevectorhash.h>

Public Member Functions

 ByteVectorHash ()
 
size_t operator() (const std::vector< uint8_t > &input) const
 

Private Attributes

uint64_t m_k0
 
uint64_t m_k1
 

Detailed Description

Implementation of Hash named requirement for types that internally store a byte array.

This may be used as the hash function in std::unordered_set or std::unordered_map over such types. Internally, this uses a random instance of SipHash-2-4.

Definition at line 17 of file bytevectorhash.h.

Constructor & Destructor Documentation

◆ ByteVectorHash()

ByteVectorHash::ByteVectorHash ( )

Definition at line 9 of file bytevectorhash.cpp.

Member Function Documentation

◆ operator()()

size_t ByteVectorHash::operator() ( const std::vector< uint8_t > &  input) const

Definition at line 12 of file bytevectorhash.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ m_k0

uint64_t ByteVectorHash::m_k0
private

Definition at line 19 of file bytevectorhash.h.

◆ m_k1

uint64_t ByteVectorHash::m_k1
private

Definition at line 19 of file bytevectorhash.h.


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