Grappa  r3821, hash 22cd626d567a91ead5b23302066d1e9469f45c66
CacheAllocator< T > Class Template Reference

Allocator for cache local storage. More...

#include <Cache.hpp>

Public Member Functions

 CacheAllocator (T *buffer, size_t size)
 
 ~CacheAllocator ()
 
 operator T * ()
 
 operator T * () const
 
T * pointer ()
 
const T * const_pointer () const
 

Public Attributes

T * storage_
 
bool heap_
 

Detailed Description

template<typename T>
class CacheAllocator< T >

Allocator for cache local storage.

If you pass in a pointer to a buffer you've allocated, it uses that. Otherwise, it allocates a buffer.

Definition at line 62 of file Cache.hpp.

Constructor & Destructor Documentation

template<typename T >
CacheAllocator< T >::CacheAllocator ( T *  buffer,
size_t  size 
)
inline

Definition at line 66 of file Cache.hpp.

template<typename T >
CacheAllocator< T >::~CacheAllocator ( )
inline

Definition at line 73 of file Cache.hpp.

Member Function Documentation

template<typename T >
const T* CacheAllocator< T >::const_pointer ( ) const
inline

Definition at line 87 of file Cache.hpp.

template<typename T >
CacheAllocator< T >::operator T * ( )
inline

Definition at line 78 of file Cache.hpp.

template<typename T >
CacheAllocator< T >::operator T * ( ) const
inline

Definition at line 81 of file Cache.hpp.

template<typename T >
T* CacheAllocator< T >::pointer ( )
inline

Definition at line 84 of file Cache.hpp.

Member Data Documentation

template<typename T >
bool CacheAllocator< T >::heap_

Definition at line 65 of file Cache.hpp.

template<typename T >
T* CacheAllocator< T >::storage_

Definition at line 64 of file Cache.hpp.


The documentation for this class was generated from the following file: