#include <BlockWipedAllocator.h>
Static Public Member Functions | |
static BlockWipedAllocator & | allocator () |
static void | operator delete (void *p) |
static void * | operator new (size_t s) |
static void * | operator new (size_t s, void *p) |
static BlockWipedAllocator::Stat | stat () |
Definition at line 194 of file BlockWipedAllocator.h.
static BlockWipedAllocator& BlockWipedAllocated< T >::allocator | ( | ) | [inline, static] |
Definition at line 212 of file BlockWipedAllocator.h.
Referenced by BlockWipedAllocated< _bqueue_item< T > >::operator delete(), BlockWipedAllocated< _bqueue_item< T > >::operator new(), and BlockWipedAllocated< _bqueue_item< T > >::stat().
{ static BlockWipedAllocator & local = blockWipedPool().allocator(sizeof(T)); return local; }
static void BlockWipedAllocated< T >::operator delete | ( | void * | p | ) | [inline, static] |
Definition at line 201 of file BlockWipedAllocator.h.
{ if (0==p) return; BlockWipedPoolAllocated::s_alive--; return (BlockWipedPoolAllocated::s_usePool) ? allocator().dealloc(p) : ::operator delete(p); }
static void* BlockWipedAllocated< T >::operator new | ( | size_t | s | ) | [inline, static] |
Definition at line 196 of file BlockWipedAllocator.h.
{ BlockWipedPoolAllocated::s_alive++; return (BlockWipedPoolAllocated::s_usePool) ? allocator().alloc() : ::operator new(s); }
static void* BlockWipedAllocated< T >::operator new | ( | size_t | s, |
void * | p | ||
) | [inline, static] |
Definition at line 207 of file BlockWipedAllocator.h.
{ return p; }
static BlockWipedAllocator::Stat BlockWipedAllocated< T >::stat | ( | ) | [inline, static] |
Definition at line 218 of file BlockWipedAllocator.h.