Added Hashtable::Size() method.
* Automatic whitespace cleanup.
This commit is contained in:
@@ -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
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user