The Nebula Device 3: Win32::Win32Heap Class Reference

The Nebula Device 3

Win32::Win32Heap Class Reference

#include <win32heap.h>


Detailed Description

Win32 implementation of the class Memory::Heap using the Win32-Heap functions. Generally switches on the Low-Fragmentation-Heap, since this seems generally suitable for most C++ applications.

(C) 2006 Radon Labs GmbH

Public Member Functions

 Win32Heap (const char *name)
 constructor (name must be static string!)
 ~Win32Heap ()
 destructor
const char * GetName () const
 get heap name
void * Alloc (size_t size)
 allocate a block of memory from the heap
void * Realloc (void *ptr, size_t newSize)
 re-allocate a block of memory
void Free (void *ptr)
 free a block of memory which has been allocated from this heap

Static Public Member Functions

static void Setup ()
 static setup method (called by Util::Setup)

Member Function Documentation

void Win32::Win32Heap::Setup (  )  [static]

static setup method (called by Util::Setup)

This method must be called at the beginning of the application because any threads are spawned (usually called by Util::Setup().