#include <BlockWipedAllocator.h>
Static Public Member Functions | |
static void * | alloc () |
static BlockWipedAllocator & | allocator () |
static void | dealloc (void *p) |
static void | destroy (T *p) |
static void | operator delete (void *p) |
static void * | operator new (size_t) |
static void * | operator new (size_t, void *p) |
static BlockWipedAllocator::Stat | stat () |
Definition at line 196 of file BlockWipedAllocator.h.
static void* BlockWipedAllocated< T >::alloc | ( | ) | [inline, static] |
Definition at line 210 of file BlockWipedAllocator.h.
Referenced by BlockWipedAllocated< _bqueue_item< T > >::operator new().
{ BlockWipedPoolAllocated::s_alive++; return (BlockWipedPoolAllocated::s_usePool) ? allocator().alloc() : ::operator new(sizeof(T)); }
static BlockWipedAllocator& BlockWipedAllocated< T >::allocator | ( | ) | [inline, static] |
Definition at line 232 of file BlockWipedAllocator.h.
Referenced by BlockWipedAllocated< _bqueue_item< T > >::alloc(), BlockWipedAllocated< _bqueue_item< T > >::dealloc(), and BlockWipedAllocated< _bqueue_item< T > >::stat().
{ static BlockWipedAllocator & local = blockWipedPool().allocator(sizeof(T)); return local; }
static void BlockWipedAllocated< T >::dealloc | ( | void * | p | ) | [inline, static] |
Definition at line 215 of file BlockWipedAllocator.h.
Referenced by BlockWipedAllocated< _bqueue_item< T > >::operator delete().
{ if (0==p) return; BlockWipedPoolAllocated::s_alive--; return (BlockWipedPoolAllocated::s_usePool) ? allocator().dealloc(p) : ::operator delete(p); }
static void BlockWipedAllocated< T >::destroy | ( | T * | p | ) | [inline, static] |
Definition at line 229 of file BlockWipedAllocator.h.
{ p->~T(); }
static void BlockWipedAllocated< T >::operator delete | ( | void * | p | ) | [inline, static] |
Definition at line 202 of file BlockWipedAllocator.h.
static void* BlockWipedAllocated< T >::operator new | ( | size_t | ) | [inline, static] |
Definition at line 198 of file BlockWipedAllocator.h.
{ return alloc(); }
static void* BlockWipedAllocated< T >::operator new | ( | size_t | , |
void * | p | ||
) | [inline, static] |
Definition at line 206 of file BlockWipedAllocator.h.
{ return p; }
static BlockWipedAllocator::Stat BlockWipedAllocated< T >::stat | ( | ) | [inline, static] |
Definition at line 238 of file BlockWipedAllocator.h.