Panda3D
Loading...
Searching...
No Matches
checksumHashGenerator.h
Go to the documentation of this file.
1/**
2 * PANDA 3D SOFTWARE
3 * Copyright (c) Carnegie Mellon University. All rights reserved.
4 *
5 * All use of this software is subject to the terms of the revised BSD
6 * license. You should have received a copy of this license along
7 * with this source code in a file named "LICENSE."
8 *
9 * @file checksumHashGenerator.h
10 * @author drose
11 * @date 2001-05-14
12 */
13
14#ifndef CHECKSUMHASHGENERATOR_H
15#define CHECKSUMHASHGENERATOR_H
16
17#include "pandabase.h"
18
19#include "hashGeneratorBase.h"
20
21/**
22 * This is a specific kind of HashGenerator that simply adds up all of the
23 * ints. Nothing fancy, and pretty quick.
24 */
25class EXPCL_PANDA_EXPRESS ChecksumHashGenerator : public HashGeneratorBase {
26public:
27 INLINE void add_int(long num);
28 INLINE void add_bool(bool flag);
29 INLINE void add_fp(float num, float threshold);
30 INLINE void add_fp(double num, double threshold);
31 INLINE void add_pointer(void *ptr);
32 void add_string(const std::string &str);
33};
34
36
37#endif
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This is a specific kind of HashGenerator that simply adds up all of the ints.
This is the base class for a number of classes that generate arbitrary hash numbers for complex objec...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.