summaryrefslogtreecommitdiff
path: root/src/hashfunctionint.h
blob: 57bce892b7c3be93847912d2004f110683bb9815 (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.
	 */
	~HashFunctionInt();
	unsigned long int hash( const void *id );
	bool cmpIDs( const void *id1, const void *id2 );
};

#endif