1 // class cl_ht_from_integer_to_rcobject.
7 #include "cl_I_hash_rcobject.h"
17 static void cl_hashtable_from_integer_to_rcobject_destructor (cl_heap* pointer)
19 #if (defined(__mips__) || defined(__mips64__)) && !defined(__GNUC__) // workaround SGI CC bug
20 (*(cl_heap_hashtable_from_integer_to_rcobject*)pointer).~cl_heap_hashtable_1();
22 (*(cl_heap_hashtable_from_integer_to_rcobject*)pointer).~cl_heap_hashtable_from_integer_to_rcobject();
26 cl_class cl_class_hashtable_from_integer_to_rcobject = {
27 cl_hashtable_from_integer_to_rcobject_destructor,
31 // These are not inline, because they tend to duplicate a lot of template code.
33 cl_ht_from_integer_to_rcobject::cl_ht_from_integer_to_rcobject ()
35 var cl_heap_hashtable_from_integer_to_rcobject* ht = new cl_heap_hashtable_from_integer_to_rcobject ();
37 ht->type = &cl_class_hashtable_from_integer_to_rcobject;
41 cl_rcobject * cl_ht_from_integer_to_rcobject::get (const cl_I& x) const
43 return ((cl_heap_hashtable_from_integer_to_rcobject*)pointer)->get(x);
46 void cl_ht_from_integer_to_rcobject::put (const cl_I& x, const cl_rcobject& y) const
48 ((cl_heap_hashtable_from_integer_to_rcobject*)pointer)->put(x,y);