CMS 3D CMS Logo

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

#include <BlockWipedAllocator.h>

Inheritance diagram for LocalCache< T >:
BlockWipedAllocator::LocalCache

Public Member Functions

 LocalCache ()
 
void reset ()
 
 ~LocalCache ()
 

Public Attributes

std::auto_ptr< Tptr
 

Detailed Description

template<typename T>
struct LocalCache< T >

Definition at line 181 of file BlockWipedAllocator.h.

Constructor & Destructor Documentation

template<typename T>
LocalCache< T >::LocalCache ( )
inline

Definition at line 183 of file BlockWipedAllocator.h.

References BlockWipedPoolAllocated::s_usePool.

183  {
185  blockWipedAllocator<sizeof(T)>().registerCache(this);
186  }
template<typename T>
LocalCache< T >::~LocalCache ( )
inlinevirtual

Reimplemented from BlockWipedAllocator::LocalCache.

Definition at line 187 of file BlockWipedAllocator.h.

187 {}

Member Function Documentation

template<typename T>
void LocalCache< T >::reset ( void  )
inlinevirtual

Implements BlockWipedAllocator::LocalCache.

Definition at line 188 of file BlockWipedAllocator.h.

References LocalCache< T >::ptr.

188 { ptr.reset();}
std::auto_ptr< T > ptr

Member Data Documentation

template<typename T>
std::auto_ptr<T> LocalCache< T >::ptr