diff options
author | Mike Buland <eichlan@xagasoft.com> | 2008-02-26 08:33:35 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2008-02-26 08:33:35 +0000 |
commit | b1c614da6f0b248b18e83a014030b5bdfd9c09c6 (patch) | |
tree | b867067cb9b408041ea9c8debb3b567f3bb490ab /src/hash.h | |
parent | ee8174b0dd72204a38a3818686623edd87d5e10e (diff) | |
download | libbu++-b1c614da6f0b248b18e83a014030b5bdfd9c09c6.tar.gz libbu++-b1c614da6f0b248b18e83a014030b5bdfd9c09c6.tar.bz2 libbu++-b1c614da6f0b248b18e83a014030b5bdfd9c09c6.tar.xz libbu++-b1c614da6f0b248b18e83a014030b5bdfd9c09c6.zip |
Some simple getters that are const safe weren't labeled as such. Oops.
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 | } |