3 #ifndef _CL_I_HASH_GCOBJECT_H
4 #define _CL_I_HASH_GCOBJECT_H
6 #include "cln/number.h"
7 #include "cln/integer.h"
12 typedef cl_htentry1<cl_I,cl_gcobject> cl_htentry_from_integer_to_gcobject;
14 typedef cl_heap_hashtable_1<cl_I,cl_gcobject> cl_heap_hashtable_from_integer_to_gcobject;
16 typedef _cl_hashtable_iterator<cl_htentry_from_integer_to_gcobject> cl_hashtable_from_integer_to_gcobject_iterator;
18 struct cl_ht_from_integer_to_gcobject : public cl_gcpointer {
20 cl_ht_from_integer_to_gcobject ();
21 cl_ht_from_integer_to_gcobject (const cl_ht_from_integer_to_gcobject&);
22 // Assignment operators.
23 cl_ht_from_integer_to_gcobject& operator= (const cl_ht_from_integer_to_gcobject&);
25 cl_hashtable_from_integer_to_gcobject_iterator iterator () const
26 { return ((cl_heap_hashtable_from_integer_to_gcobject*)pointer)->iterator(); }
28 cl_gcobject * get (const cl_I& x) const;
30 void put (const cl_I& x, const cl_gcobject& y) const;
35 #endif /* _CL_I_HASH_GCOBJECT_H */