projects
/
profile
/
ivi
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
295e07e
)
mesa: Add string_to_uint_map::clear method to clear the map
author
Ian Romanick
<ian.d.romanick@intel.com>
Tue, 11 Oct 2011 22:25:00 +0000
(15:25 -0700)
committer
Ian Romanick
<ian.d.romanick@intel.com>
Mon, 7 Nov 2011 21:33:15 +0000
(13:33 -0800)
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Tested-by: Tom Stellard <thomas.stellard@amd.com>
src/mesa/program/hash_table.h
patch
|
blob
|
history
diff --git
a/src/mesa/program/hash_table.h
b/src/mesa/program/hash_table.h
index
941d28a
..
47c37ae
100644
(file)
--- a/
src/mesa/program/hash_table.h
+++ b/
src/mesa/program/hash_table.h
@@
-214,6
+214,14
@@
public:
}
/**
+ * Remove all mappings from this map.
+ */
+ void clear()
+ {
+ hash_table_clear(this->ht);
+ }
+
+ /**
* Get the value associated with a particular key
*
* \return