BDE 4.39.x Production Release
Loading...
Searching...
No Matches
bslh::WyHashIncrementalAlgorithm Class Reference

#include <bslh_wyhashincrementalalgorithm.h>

Detailed Description

This class wraps an implementation of the "WyHash" hash algorithm in an interface that is usable in the modular hashing system in bslh.

See bslh_wyhashincrementalalgorithm

Public Types

enum  { k_SEED_LENGTH = sizeof(uint64_t) }
 
typedef bsls::Types::Uint64 result_type
 

Public Member Functions

 WyHashIncrementalAlgorithm ()
 
 WyHashIncrementalAlgorithm (uint64_t seed)
 
 WyHashIncrementalAlgorithm (const char *seed)
 
 WyHashIncrementalAlgorithm (const WyHashIncrementalAlgorithm &original) ~WyHashIncrementalAlgorithm()=default
 

Member Typedef Documentation

◆ result_type

Typedef indicating the value type returned by this algorithm.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
k_SEED_LENGTH 

Constructor & Destructor Documentation

◆ WyHashIncrementalAlgorithm() [1/4]

bslh::WyHashIncrementalAlgorithm::WyHashIncrementalAlgorithm ( )
inline

Create a WyHashIncrementalAlgorithm using a default initial seed.

◆ WyHashIncrementalAlgorithm() [2/4]

bslh::WyHashIncrementalAlgorithm::WyHashIncrementalAlgorithm ( uint64_t  seed)
inlineexplicit

Create a bslh::WyHashIncrementalAlgorithm, seeded with the specified seed.

◆ WyHashIncrementalAlgorithm() [3/4]

bslh::WyHashIncrementalAlgorithm::WyHashIncrementalAlgorithm ( const char *  seed)
inlineexplicit

Create a bslh::WyHashIncrementalAlgorithm, seeded with k_SEED_LENGTH bytes of data starting at the specified seed.

◆ WyHashIncrementalAlgorithm() [4/4]

bslh::WyHashIncrementalAlgorithm::WyHashIncrementalAlgorithm ( const WyHashIncrementalAlgorithm original)
default

Destroy this object.

Create a WyHashIncrementalAlgorithm object having the same accumulated state as the specified original.


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