1 // class cl_wht_from_rcpointer2_to_rcpointer.
4 #include "base/cl_sysdep.h"
7 #include "base/hash/cl_rcpointer2_hashweak_rcpointer.h"
12 #include "base/hash/cl_hash2weak.h"
16 static void cl_weak_hashtable_from_rcpointer2_to_rcpointer_destructor (cl_heap* pointer)
18 (*(cl_heap_weak_hashtable_from_rcpointer2_to_rcpointer*)pointer).~cl_heap_weak_hashtable_from_rcpointer2_to_rcpointer();
21 cl_class cl_class_weak_hashtable_from_rcpointer2_to_rcpointer = {
22 cl_weak_hashtable_from_rcpointer2_to_rcpointer_destructor,
26 // These are not inline, because they tend to duplicate a lot of template code.
28 cl_wht_from_rcpointer2_to_rcpointer::cl_wht_from_rcpointer2_to_rcpointer (bool (*maygc_htentry) (const cl_htentry_from_rcpointer2_to_rcpointer&))
30 var cl_heap_weak_hashtable_from_rcpointer2_to_rcpointer* ht = new cl_heap_weak_hashtable_from_rcpointer2_to_rcpointer (maygc_htentry);
32 ht->type = &cl_class_weak_hashtable_from_rcpointer2_to_rcpointer;
36 cl_rcpointer * cl_wht_from_rcpointer2_to_rcpointer::get (const cl_rcpointer& x, const cl_rcpointer& y) const
38 return ((cl_heap_weak_hashtable_from_rcpointer2_to_rcpointer*)pointer)->get(x,y);
41 void cl_wht_from_rcpointer2_to_rcpointer::put (const cl_rcpointer& x, const cl_rcpointer& y, const cl_rcpointer& z) const
43 ((cl_heap_weak_hashtable_from_rcpointer2_to_rcpointer*)pointer)->put(x,y,z);