Panda3D
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
AddHash Class Reference

This class is used just as a namespace scope to collect together a handful of static functions, which are used to wrap calls to Bob Jenkins' public- domain hash generation function (defined in lookup3.c). More...

#include "addHash.h"

Static Public Member Functions

static size_t add_hash (size_t start, const PN_float32 *floats, size_t num_floats)
 Adds a linear sequence of float32 words to the hash.
 
static size_t add_hash (size_t start, const PN_float64 *floats, size_t num_floats)
 Adds a linear sequence of float64 words to the hash.
 
static size_t add_hash (size_t start, const uint32_t *words, size_t num_words)
 Adds a linear sequence of uint32 words to the hash.
 
static size_t add_hash (size_t start, const uint8_t *bytes, size_t num_bytes)
 Adds a linear sequence of bytes to the hash.
 

Detailed Description

This class is used just as a namespace scope to collect together a handful of static functions, which are used to wrap calls to Bob Jenkins' public- domain hash generation function (defined in lookup3.c).

Definition at line 26 of file addHash.h.

Member Function Documentation

◆ add_hash() [1/4]

size_t AddHash::add_hash ( size_t start,
const PN_float32 * floats,
size_t num_floats )
inlinestatic

Adds a linear sequence of float32 words to the hash.

Definition at line 25 of file addHash.I.

References add_hash().

◆ add_hash() [2/4]

size_t AddHash::add_hash ( size_t start,
const PN_float64 * floats,
size_t num_floats )
inlinestatic

Adds a linear sequence of float64 words to the hash.

Definition at line 33 of file addHash.I.

References add_hash().

◆ add_hash() [3/4]

size_t AddHash::add_hash ( size_t start,
const uint32_t * words,
size_t num_words )
inlinestatic

Adds a linear sequence of uint32 words to the hash.

Definition at line 17 of file addHash.I.

Referenced by integer_hash< Key, Compare >::add_hash(), floating_point_hash< Key >::add_hash(), add_hash(), add_hash(), and pointer_hash::add_hash().

◆ add_hash() [4/4]

size_t AddHash::add_hash ( size_t start,
const uint8_t * bytes,
size_t num_bytes )
static

Adds a linear sequence of bytes to the hash.

Definition at line 19 of file addHash.cxx.


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