Givaro
Static Public Member Functions
GivMMRefCount Class Reference

Memory management with reference counter on allocated data. More...

#include <givaromm.h>

Static Public Member Functions

static void * allocate (const size_t s)
 
static void * reallocate (void *p, const size_t oldsize, const size_t newsize)
 
static void desallocate (void *p, const size_t=0)
 
static void * assign (void **dest, void *src)
 
static int incrc (void *p)
 
static int decrc (void *p)
 
static int getrc (void *p)
 

Detailed Description

Memory management with reference counter on allocated data.

The memory manager uses the BlocFreeList data structure and stores the refcounter in the field data[0]

Member Function Documentation

static void* allocate ( const size_t  s)
inlinestatic
void * reallocate ( void *  p,
const size_t  oldsize,
const size_t  newsize 
)
static
static void desallocate ( void *  p,
const size_t  = 0 
)
inlinestatic
static void* assign ( void **  dest,
void *  src 
)
inlinestatic
static int incrc ( void *  p)
inlinestatic
static int decrc ( void *  p)
inlinestatic
static int getrc ( void *  p)
inlinestatic

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