Panda3D
Static Public Member Functions

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"

List of all members.

Static Public Member Functions

static size_t add_hash (size_t start, const PN_uint32 *words, size_t num_words)
 Adds a linear sequence of uint32 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 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_uint8 *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 29 of file addHash.h.


Member Function Documentation

size_t AddHash::add_hash ( size_t  start,
const PN_uint32 *  words,
size_t  num_words 
) [inline, static]

Adds a linear sequence of uint32 words to the hash.

Definition at line 22 of file addHash.I.

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

size_t AddHash::add_hash ( size_t  start,
const PN_float64 *  floats,
size_t  num_floats 
) [inline, static]

Adds a linear sequence of float64 words to the hash.

Definition at line 42 of file addHash.I.

References add_hash().

size_t AddHash::add_hash ( size_t  start,
const PN_float32 *  floats,
size_t  num_floats 
) [inline, static]

Adds a linear sequence of float32 words to the hash.

Definition at line 32 of file addHash.I.

References add_hash().

Referenced by add_hash().

size_t AddHash::add_hash ( size_t  start,
const PN_uint8 *  bytes,
size_t  num_bytes 
) [static]

Adds a linear sequence of bytes to the hash.

Definition at line 23 of file addHash.cxx.


The documentation for this class was generated from the following files:
 All Classes Functions Variables Enumerations