From b1c614da6f0b248b18e83a014030b5bdfd9c09c6 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Tue, 26 Feb 2008 08:33:35 +0000 Subject: Some simple getters that are const safe weren't labeled as such. Oops. --- src/hash.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/hash.h') diff --git a/src/hash.h b/src/hash.h index 2c91e13..6065fe1 100644 --- a/src/hash.h +++ b/src/hash.h @@ -293,7 +293,7 @@ namespace Bu * Get the current hash table capacity. (Changes at re-hash) *@returns (uint32_t) The current capacity. */ - uint32_t getCapacity() + uint32_t getCapacity() const { return nCapacity; } @@ -303,7 +303,7 @@ namespace Bu * not-yet-cleaned-up deleted items.) *@returns (uint32_t) The current fill state. */ - uint32_t getFill() + uint32_t getFill() const { return nFilled; } @@ -312,7 +312,7 @@ namespace Bu * Get the number of items stored in the hash table. *@returns (uint32_t) The number of items stored in the hash table. */ - uint32_t getSize() + uint32_t getSize() const { return nFilled-nDeleted; } @@ -322,7 +322,7 @@ namespace Bu * cleaned up. *@returns (uint32_t) The number of deleted items. */ - uint32_t getDeleted() + uint32_t getDeleted() const { return nDeleted; } -- cgit v1.2.3