summaryrefslogtreecommitdiff
path: root/src/maps/hmap.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/maps/hmap.h')
-rw-r--r--src/maps/hmap.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/maps/hmap.h b/src/maps/hmap.h
index a0824ec..38ea2e4 100644
--- a/src/maps/hmap.h
+++ b/src/maps/hmap.h
@@ -9,11 +9,6 @@
using namespace std;
-// void add_elem( obj_type x, key_type k ) --> Insert x
-// void del_elem( key_type k ) --> Remove x
-// obj_type get_elem( key_type k ) --> Return item that matches x
-// void make_empty( ) --> Remove all items
-
template <class obj_type, class key_type>
class hmap
{
@@ -77,6 +72,7 @@ public:
virtual void make_empty( );
virtual void make_empty( void (*func)(key_type) );
virtual void del_elem ( const key_type &k );
+ virtual void rename_key ( const key_type &k1, const key_type &k2 );
virtual obj_type set_elem ( const obj_type &x, const key_type &k );
virtual void run_func( void (*func)(obj_type) );