diff options
Diffstat (limited to '')
-rw-r--r-- | src/hash.h | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -293,7 +293,7 @@ namespace Bu | |||
293 | * Get the current hash table capacity. (Changes at re-hash) | 293 | * Get the current hash table capacity. (Changes at re-hash) |
294 | *@returns (uint32_t) The current capacity. | 294 | *@returns (uint32_t) The current capacity. |
295 | */ | 295 | */ |
296 | uint32_t getCapacity() | 296 | uint32_t getCapacity() const |
297 | { | 297 | { |
298 | return nCapacity; | 298 | return nCapacity; |
299 | } | 299 | } |
@@ -303,7 +303,7 @@ namespace Bu | |||
303 | * not-yet-cleaned-up deleted items.) | 303 | * not-yet-cleaned-up deleted items.) |
304 | *@returns (uint32_t) The current fill state. | 304 | *@returns (uint32_t) The current fill state. |
305 | */ | 305 | */ |
306 | uint32_t getFill() | 306 | uint32_t getFill() const |
307 | { | 307 | { |
308 | return nFilled; | 308 | return nFilled; |
309 | } | 309 | } |
@@ -312,7 +312,7 @@ namespace Bu | |||
312 | * Get the number of items stored in the hash table. | 312 | * Get the number of items stored in the hash table. |
313 | *@returns (uint32_t) The number of items stored in the hash table. | 313 | *@returns (uint32_t) The number of items stored in the hash table. |
314 | */ | 314 | */ |
315 | uint32_t getSize() | 315 | uint32_t getSize() const |
316 | { | 316 | { |
317 | return nFilled-nDeleted; | 317 | return nFilled-nDeleted; |
318 | } | 318 | } |
@@ -322,7 +322,7 @@ namespace Bu | |||
322 | * cleaned up. | 322 | * cleaned up. |
323 | *@returns (uint32_t) The number of deleted items. | 323 | *@returns (uint32_t) The number of deleted items. |
324 | */ | 324 | */ |
325 | uint32_t getDeleted() | 325 | uint32_t getDeleted() const |
326 | { | 326 | { |
327 | return nDeleted; | 327 | return nDeleted; |
328 | } | 328 | } |