aboutsummaryrefslogtreecommitdiff
path: root/include/pub_tool_hashtable.h
diff options
context:
space:
mode:
authornjn <njn@a5019735-40e9-0310-863c-91ae7b9d1cf9>2005-08-14 17:42:35 +0000
committernjn <njn@a5019735-40e9-0310-863c-91ae7b9d1cf9>2005-08-14 17:42:35 +0000
commit1af7972c4bfecc5254556915ce011002a26a69a5 (patch)
treeb277f2d5ce78e08c9b204de4f08ee6ba56269be6 /include/pub_tool_hashtable.h
parent4b70e8c73ee9d28ece852b781457f0b19359e513 (diff)
downloadvalgrind-1af7972c4bfecc5254556915ce011002a26a69a5.tar.gz
Added an iterator to VgHashTable.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4407 a5019735-40e9-0310-863c-91ae7b9d1cf9
Diffstat (limited to 'include/pub_tool_hashtable.h')
-rw-r--r--include/pub_tool_hashtable.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/pub_tool_hashtable.h b/include/pub_tool_hashtable.h
index 165fefdf8..e5e52d98c 100644
--- a/include/pub_tool_hashtable.h
+++ b/include/pub_tool_hashtable.h
@@ -90,6 +90,14 @@ extern void VG_(HT_apply_to_all_nodes)( VgHashTable t,
void (*f)(VgHashNode*, void*),
void* d );
+/* Reset the table's iterator to point to the first element. */
+extern void VG_(HT_ResetIter) ( VgHashTable table );
+
+/* Return the element pointed to by the iterator and move on to the next
+ one. Returns NULL if the last one has been passed, or if HT_ResetIter()
+ has not been called previously. */
+extern void* VG_(HT_Next) ( VgHashTable table );
+
/* Destroy a table. */
extern void VG_(HT_destruct) ( VgHashTable t );