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

HashGeneratorBase Class Reference

This is the base class for a number of classes that generate arbitrary hash numbers for complex objects, based fundamentally on a sequence of integers. More...

#include <hashGeneratorBase.h>

Inheritance diagram for HashGeneratorBase:

ChecksumHashGenerator List of all members.

Public Member Functions

 HashGeneratorBase ()
 ~HashGeneratorBase ()
size_t get_hash () const
 Returns the hash number generated.


Protected Attributes

size_t _hash

Detailed Description

This is the base class for a number of classes that generate arbitrary hash numbers for complex objects, based fundamentally on a sequence of integers.

There are no virtual functions here, for performance reasons; it is generally desirable to generate hash numbers as quickly as possible. The derived classes must redefine all the basic functionality.

Thus, a compile-time decision must be made for the kind of HashGenerator that is appropriate for a particular class.

Definition at line 56 of file hashGeneratorBase.h.


Constructor & Destructor Documentation

HashGeneratorBase::HashGeneratorBase  )  [inline]
 

Definition at line 31 of file hashGeneratorBase.I.

References INLINE.

HashGeneratorBase::~HashGeneratorBase  )  [inline]
 

Definition at line 43 of file hashGeneratorBase.I.

References _hash, INLINE, and size_t.


Member Function Documentation

size_t HashGeneratorBase::get_hash  )  const [inline]
 

Returns the hash number generated.

Definition at line 55 of file hashGeneratorBase.I.


Member Data Documentation

size_t HashGeneratorBase::_hash [protected]
 

Definition at line 64 of file hashGeneratorBase.h.

Referenced by ~HashGeneratorBase().


The documentation for this class was generated from the following files:
Generated on Fri May 2 00:51:29 2003 for Panda by doxygen1.3