Panda3D
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 uint32_t *words, size_t num_words)
 Adds a linear sequence of uint32 words to the hash. More...
 
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. More...
 
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. More...
 
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. More...
 

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 uint32_t *  words,
size_t  num_words 
)
inlinestatic

Adds a linear sequence of uint32 words to the hash.

Definition at line 18 of file addHash.I.

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

◆ add_hash() [2/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 20 of file addHash.cxx.

◆ add_hash() [3/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 26 of file addHash.I.

References add_hash().

◆ add_hash() [4/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 34 of file addHash.I.

References add_hash().


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