T 50 gc/include/gc_alloc.h template<class T, class alloc> T 54 gc/include/gc_alloc.h static T *allocate(size_t n) T 55 gc/include/gc_alloc.h { return 0 == n? 0 : (T*) alloc::allocate(n * sizeof (T)); } T 56 gc/include/gc_alloc.h static T *allocate(void) T 57 gc/include/gc_alloc.h { return (T*) alloc::allocate(sizeof (T)); } T 58 gc/include/gc_alloc.h static void deallocate(T *p, size_t n) T 59 gc/include/gc_alloc.h { if (0 != n) alloc::deallocate(p, n * sizeof (T)); } T 60 gc/include/gc_alloc.h static void deallocate(T *p) T 61 gc/include/gc_alloc.h { alloc::deallocate(p, sizeof (T)); } T 337 gc/include/gc_alloc.h # define __GC_SPECIALIZE(T,alloc) \ T 338 gc/include/gc_alloc.h class simple_alloc<T, alloc> { \ T 340 gc/include/gc_alloc.h static T *allocate(size_t n) \ T 342 gc/include/gc_alloc.h (T*) alloc::ptr_free_allocate(n * sizeof (T)); } \ T 343 gc/include/gc_alloc.h static T *allocate(void) \ T 344 gc/include/gc_alloc.h { return (T*) alloc::ptr_free_allocate(sizeof (T)); } \ T 345 gc/include/gc_alloc.h static void deallocate(T *p, size_t n) \ T 346 gc/include/gc_alloc.h { if (0 != n) alloc::ptr_free_deallocate(p, n * sizeof (T)); } \ T 347 gc/include/gc_alloc.h static void deallocate(T *p) \ T 348 gc/include/gc_alloc.h { alloc::ptr_free_deallocate(p, sizeof (T)); } \ T 64 gc/include/gc_allocator.h # define GC_DECLARE_PTRFREE(T) \ T 65 gc/include/gc_allocator.h template<> struct GC_type_traits<T> { GC_true_type GC_is_ptr_free; } T 350 gc/include/new_gc_alloc.h # define __GC_SPECIALIZE(T,alloc) \ T 351 gc/include/new_gc_alloc.h class simple_alloc<T, alloc> { \ T 353 gc/include/new_gc_alloc.h static T *allocate(size_t n) \ T 355 gc/include/new_gc_alloc.h reinterpret_cast<T*>(alloc::ptr_free_allocate(n * sizeof (T))); } \ T 356 gc/include/new_gc_alloc.h static T *allocate(void) \ T 357 gc/include/new_gc_alloc.h { return reinterpret_cast<T*>(alloc::ptr_free_allocate(sizeof (T))); } \ T 358 gc/include/new_gc_alloc.h static void deallocate(T *p, size_t n) \ T 359 gc/include/new_gc_alloc.h { if (0 != n) alloc::ptr_free_deallocate(p, n * sizeof (T)); } \ T 360 gc/include/new_gc_alloc.h static void deallocate(T *p) \ T 361 gc/include/new_gc_alloc.h { alloc::ptr_free_deallocate(p, sizeof (T)); } \ T 35 gc/include/weakpointer.h template< class T > class WeakPointer { T 38 gc/include/weakpointer.h WeakPointer( T* t = 0 ) T 43 gc/include/weakpointer.h T* Pointer() T 47 gc/include/weakpointer.h {return (T*) _WeakPointer_Pointer( this->impl );} T 49 gc/include/weakpointer.h int operator==( WeakPointer< T > wp2 ) T 112 gc/include/weakpointer.h template< class T, class Data > class CleanUp { T 115 gc/include/weakpointer.h static void Set( T* t, void c( Data* d, T* t ), Data* d = 0 ) T 124 gc/include/weakpointer.h static void Call( T* t ) T 135 gc/include/weakpointer.h void Set( T* t )