aboutsummaryrefslogtreecommitdiff
path: root/src/hashfunctionint.h
blob: 0fbc764231fcc44751e15b62bf7dd183cbed4226 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#ifndef HASH_FUNCTION_INT
#define HASH_FUNCTION_INT

#include "hashfunction.h"

/** A hash function for integer data.  Really, this does almost nothing except
  * ensure we're dealing with positive indicies.
  *@author Mike Buland.
  */
class HashFunctionInt : public HashFunction
{
public:
	/**
	 * Standard Constructor.
	 */
	HashFunctionInt();
	
	/**
	 * Standard Deconstructor.
	 */
	virtual ~HashFunctionInt();
	unsigned long int hash( const void *id );
	bool cmpIDs( const void *id1, const void *id2 );
};

#endif