FXMemoryPool.h File Reference


Detailed Description

Defines classes used to implement custom memory pools.

Definition in file FXMemoryPool.h.

#include <string.h>
#include <new>

Go to the source code of this file.

Namespaces

namespace  FX

Classes

class  FX::aligned_allocator< T, alignment >
 An aligning memory allocator for the STL. More...
struct  FX::aligned_allocator< T, alignment >::rebind< U >
class  FX::FXMemoryPool
 A threadsafe custom memory pool. More...
struct  FX::FXMemoryPool::Statistics
 A structure containing statistics about the pool. More...
struct  FX::FXMemoryPool::MemoryPoolInfo
 Data reflecting a memory pool. More...
class  FX::FXMemPoolHold
 Changes the memory pool in use by the current thread for the duration of its existance. More...

Functions

FXAPI FXMALLOCATTR void * FX::malloc (size_t size, FXMemoryPool *heap=0, FXuint alignment=0) throw ()
FXAPI FXMALLOCATTR void * FX::calloc (size_t no, size_t size, FXMemoryPool *heap=0, FXuint alignment=0) throw ()
FXAPI FXMALLOCATTR void * FX::realloc (void *p, size_t size, FXMemoryPool *heap=0) throw ()
FXAPI void FX::free (void *p, FXMemoryPool *heap=0) throw ()
template<typename T>
FXMALLOCATTR T * FX::realloc (T *p, size_t size, FXMemoryPool *heap=0) throw ()
template<typename T>
void FX::free (T *p, FXMemoryPool *heap=0) throw ()
FXMALLOCATTR char * FX::strdup (const char *str) throw ()
FXAPI void FX::failonfree (void *p, FXMemoryPool *heap=0) throw ()
FXAPI void FX::unfailonfree (void *p, FXMemoryPool *heap=0) throw ()
FXDLLPUBLIC FXMALLOCATTR void * operator new (size_t size, FX::FXMemoryPool *heap, FX::FXuint alignment=0) throw (std::bad_alloc)
FXDLLPUBLIC FXMALLOCATTR void * operator new[] (size_t size, FX::FXMemoryPool *heap, FX::FXuint alignment=0) throw (std::bad_alloc)
FXDLLPUBLIC void operator delete (void *p, FX::FXMemoryPool *heap) throw ()
FXDLLPUBLIC void operator delete[] (void *p, FX::FXMemoryPool *heap) throw ()
FXAPI FXMALLOCATTR void * tnfxmalloc (size_t size)
FXAPI FXMALLOCATTR void * tnfxcalloc (size_t no, size_t size)
FXAPI FXMALLOCATTR void * tnfxrealloc (void *p, size_t size)
FXAPI void tnfxfree (void *p)
FXDLLPUBLIC FXMALLOCATTR void * operator new (size_t size) throw (std::bad_alloc)
FXDLLPUBLIC FXMALLOCATTR void * operator new[] (size_t size) throw (std::bad_alloc)
FXDLLPUBLIC void operator delete (void *p) throw ()
FXDLLPUBLIC void operator delete[] (void *p) throw ()


(C) 2002-2009 Niall Douglas. Some parts (C) to assorted authors.
Generated on Fri Nov 20 18:31:31 2009 for TnFOX by doxygen v1.4.7