Panda3D
 All Classes Functions Variables Enumerations
addHash.h
1 // Filename: addHash.h
2 // Created by: drose (01Sep06)
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 3D SOFTWARE
7 // Copyright (c) Carnegie Mellon University. All rights reserved.
8 //
9 // All use of this software is subject to the terms of the revised BSD
10 // license. You should have received a copy of this license along
11 // with this source code in a file named "LICENSE."
12 //
13 ////////////////////////////////////////////////////////////////////
14 
15 #ifndef ADDHASH_H
16 #define ADDHASH_H
17 
18 #include "dtoolbase.h"
19 #include "numeric_types.h"
20 #include "lookup3.h"
21 
22 ////////////////////////////////////////////////////////////////////
23 // Class : AddHash
24 // Description : This class is used just as a namespace scope to
25 // collect together a handful of static functions, which
26 // are used to wrap calls to Bob Jenkins' public-domain
27 // hash generation function (defined in lookup3.c).
28 ////////////////////////////////////////////////////////////////////
29 class EXPCL_DTOOL AddHash {
30 public:
31  INLINE static size_t add_hash(size_t start, const PN_uint32 *words, size_t num_words);
32  static size_t add_hash(size_t start, const PN_uint8 *bytes, size_t num_bytes);
33  INLINE static size_t add_hash(size_t start, const PN_float32 *floats, size_t num_floats);
34  INLINE static size_t add_hash(size_t start, const PN_float64 *floats, size_t num_floats);
35 };
36 
37 #include "addHash.I"
38 
39 #endif
This class is used just as a namespace scope to collect together a handful of static functions...
Definition: addHash.h:29