Back to index

plt-scheme  4.2.1
Static Public Member Functions
simple_alloc< T, alloc > Class Template Reference

#include <gc_alloc.h>

List of all members.

Static Public Member Functions

static T * allocate (size_t n)
static T * allocate (void)
static void deallocate (T *p, size_t n)
static void deallocate (T *p)

Detailed Description

template<class T, class alloc>
class simple_alloc< T, alloc >

Definition at line 51 of file gc_alloc.h.


Member Function Documentation

template<class T , class alloc >
static T* simple_alloc< T, alloc >::allocate ( size_t  n) [inline, static]

Definition at line 54 of file gc_alloc.h.

                { return 0 == n? 0 : (T*) alloc::allocate(n * sizeof (T)); }

Here is the call graph for this function:

template<class T , class alloc >
static T* simple_alloc< T, alloc >::allocate ( void  ) [inline, static]

Definition at line 56 of file gc_alloc.h.

                { return (T*) alloc::allocate(sizeof (T)); }
template<class T , class alloc >
static void simple_alloc< T, alloc >::deallocate ( T *  p,
size_t  n 
) [inline, static]

Definition at line 58 of file gc_alloc.h.

                { if (0 != n) alloc::deallocate(p, n * sizeof (T)); }

Here is the caller graph for this function:

template<class T , class alloc >
static void simple_alloc< T, alloc >::deallocate ( T *  p) [inline, static]

Definition at line 60 of file gc_alloc.h.

                { alloc::deallocate(p, sizeof (T)); }

Here is the call graph for this function:


The documentation for this class was generated from the following file: