library of assembled shared sources

http://lass.cocamware.com

lass::util::AllocatorClassAdaptor< VariableAllocator, destructionPriority > Class Template Reference
[Allocator]

Use an Allocator to implement a class' new and delete

Derive from this class to implement new and delete based on Allocator. More...

#include <allocator.h>

Inheritance diagram for lass::util::AllocatorClassAdaptor< VariableAllocator, destructionPriority >:

Inheritance graph
[legend]

Static Public Member Functions

static void * operator new (std::size_t size)
static void * operator new (std::size_t size, std::nothrow_t) throw ()
static void * operator new (std::size_t, void *mem)
static void * operator new[] (std::size_t size)
static void * operator new[] (std::size_t size, std::nothrow_t) throw ()
static void * operator new[] (std::size_t, void *mem)
static void operator delete (void *mem, std::size_t size)
static void operator delete (void *mem, std::size_t size, std::nothrow_t)
static void operator delete (void *, std::size_t, std::nothrow_t, void *)
static void operator delete[] (void *mem, std::size_t size)
static void operator delete[] (void *mem, std::size_t size, std::nothrow_t)
static void operator delete[] (void *, std::size_t, std::nothrow_t, void *)

Static Private Member Functions

static VariableAllocator * allocator ()

Detailed Description

template<typename VariableAllocator, int destructionPriority = destructionPriorityInternalAllocators>
class lass::util::AllocatorClassAdaptor< VariableAllocator, destructionPriority >

Use an Allocator to implement a class' new and delete

Derive from this class to implement new and delete based on Allocator.

It uses a singleton of Allocator that is shared per <Allocator type, destruction priority> pair. So if you have another class using the same allocator and destruction priority, the allocator singleton will be shared.

Definition at line 142 of file allocator.h.


Member Function Documentation

template<typename VariableAllocator , int destructionPriority = destructionPriorityInternalAllocators>
static void* lass::util::AllocatorClassAdaptor< VariableAllocator, destructionPriority >::operator new ( std::size_t  size  )  [inline, static]

Definition at line 145 of file allocator.h.

template<typename VariableAllocator , int destructionPriority = destructionPriorityInternalAllocators>
static void* lass::util::AllocatorClassAdaptor< VariableAllocator, destructionPriority >::operator new ( std::size_t  size,
std::nothrow_t   
) throw () [inline, static]

Definition at line 155 of file allocator.h.

template<typename VariableAllocator , int destructionPriority = destructionPriorityInternalAllocators>
static void* lass::util::AllocatorClassAdaptor< VariableAllocator, destructionPriority >::operator new ( std::size_t  ,
void *  mem 
) [inline, static]

Definition at line 167 of file allocator.h.

template<typename VariableAllocator , int destructionPriority = destructionPriorityInternalAllocators>
static void* lass::util::AllocatorClassAdaptor< VariableAllocator, destructionPriority >::operator new[] ( std::size_t  size  )  [inline, static]

Definition at line 172 of file allocator.h.

template<typename VariableAllocator , int destructionPriority = destructionPriorityInternalAllocators>
static void* lass::util::AllocatorClassAdaptor< VariableAllocator, destructionPriority >::operator new[] ( std::size_t  size,
std::nothrow_t   
) throw () [inline, static]

Definition at line 182 of file allocator.h.

template<typename VariableAllocator , int destructionPriority = destructionPriorityInternalAllocators>
static void* lass::util::AllocatorClassAdaptor< VariableAllocator, destructionPriority >::operator new[] ( std::size_t  ,
void *  mem 
) [inline, static]

Definition at line 194 of file allocator.h.

template<typename VariableAllocator , int destructionPriority = destructionPriorityInternalAllocators>
static void lass::util::AllocatorClassAdaptor< VariableAllocator, destructionPriority >::operator delete ( void *  mem,
std::size_t  size 
) [inline, static]

Definition at line 199 of file allocator.h.

template<typename VariableAllocator , int destructionPriority = destructionPriorityInternalAllocators>
static void lass::util::AllocatorClassAdaptor< VariableAllocator, destructionPriority >::operator delete ( void *  mem,
std::size_t  size,
std::nothrow_t   
) [inline, static]

Definition at line 204 of file allocator.h.

template<typename VariableAllocator , int destructionPriority = destructionPriorityInternalAllocators>
static void lass::util::AllocatorClassAdaptor< VariableAllocator, destructionPriority >::operator delete ( void *  ,
std::size_t  ,
std::nothrow_t  ,
void *   
) [inline, static]

Definition at line 209 of file allocator.h.

template<typename VariableAllocator , int destructionPriority = destructionPriorityInternalAllocators>
static void lass::util::AllocatorClassAdaptor< VariableAllocator, destructionPriority >::operator delete[] ( void *  mem,
std::size_t  size 
) [inline, static]

Definition at line 213 of file allocator.h.

template<typename VariableAllocator , int destructionPriority = destructionPriorityInternalAllocators>
static void lass::util::AllocatorClassAdaptor< VariableAllocator, destructionPriority >::operator delete[] ( void *  mem,
std::size_t  size,
std::nothrow_t   
) [inline, static]

Definition at line 218 of file allocator.h.

template<typename VariableAllocator , int destructionPriority = destructionPriorityInternalAllocators>
static void lass::util::AllocatorClassAdaptor< VariableAllocator, destructionPriority >::operator delete[] ( void *  ,
std::size_t  ,
std::nothrow_t  ,
void *   
) [inline, static]

Definition at line 223 of file allocator.h.

template<typename VariableAllocator , int destructionPriority = destructionPriorityInternalAllocators>
static VariableAllocator* lass::util::AllocatorClassAdaptor< VariableAllocator, destructionPriority >::allocator (  )  [inline, static, private]

Definition at line 229 of file allocator.h.


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

Generated on Mon Nov 10 14:22:16 2008 for Library of Assembled Shared Sources by doxygen 1.5.7.1
SourceForge.net Logo