Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

panda/src/express/hashGeneratorBase.h

Go to the documentation of this file.
00001 // Filename: hashGeneratorBase.h
00002 // Created by:  drose (14May01)
00003 //
00004 ////////////////////////////////////////////////////////////////////
00005 //
00006 // PANDA 3D SOFTWARE
00007 // Copyright (c) 2001, Disney Enterprises, Inc.  All rights reserved
00008 //
00009 // All use of this software is subject to the terms of the Panda 3d
00010 // Software license.  You should have received a copy of this license
00011 // along with this source code; you will also find a current copy of
00012 // the license at http://www.panda3d.org/license.txt .
00013 //
00014 // To contact the maintainers of this program write to
00015 // panda3d@yahoogroups.com .
00016 //
00017 ////////////////////////////////////////////////////////////////////
00018 
00019 #ifndef HASHGENERATORBASE_H
00020 #define HASHGENERATORBASE_H
00021 
00022 #include <pandabase.h>
00023 
00024 ////////////////////////////////////////////////////////////////////
00025 //       Class : HashGeneratorBase
00026 // Description : This is the base class for a number of classes that
00027 //               generate arbitrary hash numbers for complex objects,
00028 //               based fundamentally on a sequence of integers.
00029 //
00030 //               There are no virtual functions here, for performance
00031 //               reasons; it is generally desirable to generate hash
00032 //               numbers as quickly as possible.  The derived classes
00033 //               must redefine all the basic functionality.
00034 //
00035 //               Thus, a compile-time decision must be made for the
00036 //               kind of HashGenerator that is appropriate for a
00037 //               particular class.
00038 ////////////////////////////////////////////////////////////////////
00039 class EXPCL_PANDAEXPRESS HashGeneratorBase {
00040 public:
00041   INLINE HashGeneratorBase();
00042   INLINE ~HashGeneratorBase();
00043 
00044   INLINE size_t get_hash() const;
00045 
00046 protected:
00047   size_t _hash;
00048 };
00049 
00050 #include "hashGeneratorBase.I"
00051 
00052 #endif

Generated on Fri May 2 00:38:23 2003 for Panda by doxygen1.3