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
GLuint64EXT GLuint GLuint GLenum GLenum GLuint GLuint GLenum GLuint GLuint key1
Definition: khronos-glext.h:11877
list of all chemical elements
Definition: coConfig.h:27
Definition: coIntHash.h:24
virtual unsigned long hash1(const int &key) const
1st Hash function
Definition: coIntHash.h:37
coIntHash()
Definition: coIntHash.h:32
virtual bool equal(const int &key1, const int &key2) const
Equal function.
Definition: coIntHash.h:49
virtual unsigned long hash2(const int &key) const
2nd Hash function
Definition: coIntHash.h:43
coIntHash(const DATA &nullelem)
Definition: coIntHash.h:28