1 // class cl_ht_from_integer_to_gcobject.
7 #include "cl_I_hash_gcobject.h"
15 static void cl_hashtable_from_integer_to_gcobject_destructor (cl_heap* pointer)
17 #if (defined(__mips__) || defined(__mips64__)) && !defined(__GNUC__) // workaround SGI CC bug
18 (*(cl_heap_hashtable_from_integer_to_gcobject*)pointer).~cl_heap_hashtable_1();
20 (*(cl_heap_hashtable_from_integer_to_gcobject*)pointer).~cl_heap_hashtable_from_integer_to_gcobject();
24 cl_class cl_class_hashtable_from_integer_to_gcobject = {
25 cl_hashtable_from_integer_to_gcobject_destructor,
29 // These are not inline, because they tend to duplicate a lot of template code.
31 cl_ht_from_integer_to_gcobject::cl_ht_from_integer_to_gcobject ()
33 var cl_heap_hashtable_from_integer_to_gcobject* ht = new cl_heap_hashtable_from_integer_to_gcobject ();
35 ht->type = &cl_class_hashtable_from_integer_to_gcobject;
39 cl_gcobject * cl_ht_from_integer_to_gcobject::get (const cl_I& x) const
41 return ((cl_heap_hashtable_from_integer_to_gcobject*)pointer)->get(x);
44 void cl_ht_from_integer_to_gcobject::put (const cl_I& x, const cl_gcobject& y) const
46 ((cl_heap_hashtable_from_integer_to_gcobject*)pointer)->put(x,y);