8 #ifndef _CO_INT_HASH_H_
9 #define _CO_INT_HASH_H_
29 :
coHash<int, DATA>(nullelem){};
37 virtual unsigned long hash1(
const int &key)
const
39 return (key % this->
size);
43 virtual unsigned long hash2(
const int &key)
const
45 return (this->
size - 2 - key % (this->
size - 2));
49 virtual bool equal(
const int &
key1,
const int &key2)
const
51 return (key1 == key2);
GLsizeiptr size
Definition: khronos-glext.h:6610
virtual unsigned long hash2(const int &key) const
2nd Hash function
Definition: coIntHash.h:43
Definition: coIntHash.h:23
virtual unsigned long hash1(const int &key) const
1st Hash function
Definition: coIntHash.h:37
coIntHash(const DATA &nullelem)
Definition: coIntHash.h:28
virtual bool equal(const int &key1, const int &key2) const
Equal function.
Definition: coIntHash.h:49
GLuint64EXT GLuint GLuint GLenum GLenum GLuint GLuint GLenum GLuint GLuint key1
Definition: khronos-glext.h:11877
coIntHash()
Definition: coIntHash.h:32