Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes
megatree::StdSingletonAllocatorInstance< T > Class Template Reference

#include <std_singleton_allocator.h>

List of all members.

Public Member Functions

T * allocate (size_t n)
void deallocate (T *obj, size_t n)
void destruct ()
size_t max_size () const

Static Public Member Functions

static
StdSingletonAllocatorInstance
< T > * 
getInstance (size_t size=0)

Private Member Functions

 StdSingletonAllocatorInstance (size_t size_)

Private Attributes

T * mem
std::vector< T * > mem_vec
boost::mutex mutex
size_t size

Static Private Attributes

static
StdSingletonAllocatorInstance
< T > * 
instance_ = NULL

Detailed Description

template<class T>
class megatree::StdSingletonAllocatorInstance< T >

Definition at line 13 of file std_singleton_allocator.h.


Constructor & Destructor Documentation

template<class T >
megatree::StdSingletonAllocatorInstance< T >::StdSingletonAllocatorInstance ( size_t  size_) [inline, private]

Definition at line 62 of file std_singleton_allocator.h.


Member Function Documentation

template<class T >
T* megatree::StdSingletonAllocatorInstance< T >::allocate ( size_t  n) [inline]

Definition at line 38 of file std_singleton_allocator.h.

template<class T >
void megatree::StdSingletonAllocatorInstance< T >::deallocate ( T *  obj,
size_t  n 
) [inline]

Definition at line 47 of file std_singleton_allocator.h.

template<class T >
void megatree::StdSingletonAllocatorInstance< T >::destruct ( ) [inline]

Definition at line 54 of file std_singleton_allocator.h.

template<class T >
static StdSingletonAllocatorInstance<T>* megatree::StdSingletonAllocatorInstance< T >::getInstance ( size_t  size = 0) [inline, static]

Definition at line 16 of file std_singleton_allocator.h.

template<class T >
size_t megatree::StdSingletonAllocatorInstance< T >::max_size ( ) const [inline]

Definition at line 33 of file std_singleton_allocator.h.


Member Data Documentation

template<class T >
StdSingletonAllocatorInstance< T > * megatree::StdSingletonAllocatorInstance< T >::instance_ = NULL [static, private]

Definition at line 72 of file std_singleton_allocator.h.

template<class T >
T* megatree::StdSingletonAllocatorInstance< T >::mem [private]

Definition at line 75 of file std_singleton_allocator.h.

template<class T >
std::vector<T*> megatree::StdSingletonAllocatorInstance< T >::mem_vec [private]

Definition at line 76 of file std_singleton_allocator.h.

template<class T >
boost::mutex megatree::StdSingletonAllocatorInstance< T >::mutex [private]

Definition at line 78 of file std_singleton_allocator.h.

template<class T >
size_t megatree::StdSingletonAllocatorInstance< T >::size [private]

Definition at line 74 of file std_singleton_allocator.h.


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


megatree_core
Author(s): Stuart Glaser
autogenerated on Thu Nov 28 2013 11:30:23