axeld+bonefish: Got rid of the ParentType in the HashTableDefinition; it doesn't really

belong there.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21766 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2007-07-31 16:14:58 +00:00
parent b1c07d8165
commit 8405223037
9 changed files with 67 additions and 47 deletions
+6 -6
View File
@@ -5,15 +5,15 @@
* Authors:
* Hugo Santos, [email protected]
*/
#ifndef _KERNEL_UTIL_MULTI_HASH_TABLE_H
#define _KERNEL_UTIL_MULTI_HASH_TABLE_H
#ifndef _MULTI_HASH_TABLE_H_
#define _MULTI_HASH_TABLE_H_
#include <KernelExport.h>
#include <util/kernel_cpp.h>
#include <util/OpenHashTable.h>
// MultiHashTable is a container which acts a bit like multimap<>
// but with hash table semantics.
@@ -34,9 +34,9 @@ public:
MultiHashTable(size_t initialSize = HashTable::kMinimumSize)
: HashTable(initialSize) {}
MultiHashTable(typename Definition::ParentType *parent,
MultiHashTable(const Definition& definition,
size_t initialSize = HashTable::kMinimumSize)
: HashTable(parent, initialSize) {}
: HashTable(definition, initialSize) {}
status_t InitCheck() const { return HashTable::InitCheck(); }
@@ -174,4 +174,4 @@ private:
}
};
#endif
#endif // _KERNEL_UTIL_MULTI_HASH_TABLE_H