Added Hashtable::Size() method.

* Automatic whitespace cleanup.
This commit is contained in:
Axel Dörfler
2012-12-02 21:03:41 +01:00
parent 2ede175119
commit 772c9704b9
2 changed files with 18 additions and 10 deletions
+7
View File
@@ -227,6 +227,13 @@ Hashtable::MakeEmpty(int8 keyMode,int8 valueMode)
} }
size_t
Hashtable::Size() const
{
return fCount;
}
/** The hash table will be doubled in size, and rebuild. /** The hash table will be doubled in size, and rebuild.
* @return true on success * @return true on success
*/ */
+1
View File
@@ -33,6 +33,7 @@ class Hashtable
void Rewind(); void Rewind();
void MakeEmpty(int8 keyMode = HASH_EMPTY_NONE,int8 valueMode = HASH_EMPTY_NONE); void MakeEmpty(int8 keyMode = HASH_EMPTY_NONE,int8 valueMode = HASH_EMPTY_NONE);
size_t Size() const;
protected: protected:
class Entry class Entry