summaryrefslogtreecommitdiff
path: root/src/hashtable.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/hashtable.cpp')
-rw-r--r--src/hashtable.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/hashtable.cpp b/src/hashtable.cpp
index d3f9f26..8a31f57 100644
--- a/src/hashtable.cpp
+++ b/src/hashtable.cpp
@@ -31,6 +31,11 @@ void HashTable::set( int j, const void *newID, const void *newData )
31 aTable[j].data = newData; 31 aTable[j].data = newData;
32} 32}
33 33
34void HashTable::clear()
35{
36 memset( aTable, 0, sizeof(HashNode) * nTableSize );
37}
38
34bool HashTable::isFilled( int j ) 39bool HashTable::isFilled( int j )
35{ 40{
36 return (aTable[j].id != NULL)||(aTable[j].bDeleted); 41 return (aTable[j].id != NULL)||(aTable[j].bDeleted);