summaryrefslogtreecommitdiff
path: root/src/hashtable.h
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2006-07-20 17:30:48 +0000
committerMike Buland <eichlan@xagasoft.com>2006-07-20 17:30:48 +0000
commit86f24cc82a3d0297e80f7c24ad624d43ba097000 (patch)
tree47deb396dcf6b4bf765e106aff2ee406a0699fae /src/hashtable.h
parent1ebe2d47412625d2be6ffe05cf761761becf0088 (diff)
downloadlibbu++-86f24cc82a3d0297e80f7c24ad624d43ba097000.tar.gz
libbu++-86f24cc82a3d0297e80f7c24ad624d43ba097000.tar.bz2
libbu++-86f24cc82a3d0297e80f7c24ad624d43ba097000.tar.xz
libbu++-86f24cc82a3d0297e80f7c24ad624d43ba097000.zip
Added the "getKey" function to the HashTable, allowing you to get at the
internal persistant IDs using a temporary id.
Diffstat (limited to 'src/hashtable.h')
-rw-r--r--src/hashtable.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/hashtable.h b/src/hashtable.h
index 170793f..f319cb0 100644
--- a/src/hashtable.h
+++ b/src/hashtable.h
@@ -90,6 +90,8 @@ public:
90 *@returns A pointer to the data stored at the given id. 90 *@returns A pointer to the data stored at the given id.
91 */ 91 */
92 const void *get( const void *id, unsigned long int nSkip=0 ); 92 const void *get( const void *id, unsigned long int nSkip=0 );
93
94 const void *getKey( const void *id, unsigned long int nSkip=0 );
93 95
94 /** Gets the total capacity of the hashtable. This is actually the number 96 /** Gets the total capacity of the hashtable. This is actually the number
95 * of total positions available inside the hashtable at the moment. This 97 * of total positions available inside the hashtable at the moment. This