CMS 3D CMS Logo

Public Member Functions | Public Attributes

LocalCache< T > Struct Template Reference

#include <BlockWipedAllocator.h>

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

List of all members.

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.

              { 
    if (BlockWipedPoolAllocated::s_usePool)
      blockWipedAllocator<sizeof(T)>().registerCache(this);
  }
template<typename T>
LocalCache< T >::~LocalCache ( ) [inline, virtual]

Reimplemented from BlockWipedAllocator::LocalCache.

Definition at line 187 of file BlockWipedAllocator.h.

{}

Member Function Documentation

template<typename T>
void LocalCache< T >::reset ( void  ) [inline, virtual]

Implements BlockWipedAllocator::LocalCache.

Definition at line 188 of file BlockWipedAllocator.h.

References LocalCache< T >::ptr.

{ ptr.reset();}

Member Data Documentation

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

Definition at line 182 of file BlockWipedAllocator.h.

Referenced by LocalCache< T >::reset().