Grappa  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 51 of file Cache.hpp.

Constructor & Destructor Documentation

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

Definition at line 55 of file Cache.hpp.

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

Definition at line 62 of file Cache.hpp.

Member Function Documentation

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

Definition at line 76 of file Cache.hpp.

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

Definition at line 67 of file Cache.hpp.

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

Definition at line 70 of file Cache.hpp.

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

Definition at line 73 of file Cache.hpp.

Member Data Documentation

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

Definition at line 54 of file Cache.hpp.

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

Definition at line 53 of file Cache.hpp.


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