CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Static Public Member Functions
BlockWipedAllocated< T > Class Template Reference

#include <BlockWipedAllocator.h>

Static Public Member Functions

static void * alloc ()
 
static BlockWipedAllocatorallocator ()
 
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 ()
 

Detailed Description

template<typename T>
class BlockWipedAllocated< T >

Definition at line 196 of file BlockWipedAllocator.h.

Member Function Documentation

template<typename T>
static void* BlockWipedAllocated< T >::alloc ( )
inlinestatic

Definition at line 210 of file BlockWipedAllocator.h.

Referenced by BlockWipedAllocated< _bqueue_item< T > >::operator new().

210  {
212  return (BlockWipedPoolAllocated::s_usePool) ? allocator().alloc() : ::operator new(sizeof(T));
213  }
static BlockWipedAllocator & allocator()
long double T
template<typename T>
static BlockWipedAllocator& BlockWipedAllocated< T >::allocator ( )
inlinestatic
template<typename T>
static void BlockWipedAllocated< T >::dealloc ( void *  p)
inlinestatic
template<typename T>
static void BlockWipedAllocated< T >::destroy ( T p)
inlinestatic

Definition at line 229 of file BlockWipedAllocator.h.

template<typename T>
static void BlockWipedAllocated< T >::operator delete ( void *  p)
inlinestatic

Definition at line 202 of file BlockWipedAllocator.h.

202  {
203  dealloc(p);
204  }
static void dealloc(void *p)
template<typename T>
static void* BlockWipedAllocated< T >::operator new ( size_t  )
inlinestatic

Definition at line 198 of file BlockWipedAllocator.h.

198  {
199  return alloc();
200  }
template<typename T>
static void* BlockWipedAllocated< T >::operator new ( size_t  ,
void *  p 
)
inlinestatic

Definition at line 206 of file BlockWipedAllocator.h.

206  {
207  return p;
208  }
template<typename T>
static BlockWipedAllocator::Stat BlockWipedAllocated< T >::stat ( )
inlinestatic

Definition at line 238 of file BlockWipedAllocator.h.

238  {
239  return allocator().stat();
240  }
static BlockWipedAllocator & allocator()