#include <std_singleton_allocator.h>
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 |
Definition at line 13 of file std_singleton_allocator.h.
megatree::StdSingletonAllocatorInstance< T >::StdSingletonAllocatorInstance | ( | size_t | size_ | ) | [inline, private] |
Definition at line 62 of file std_singleton_allocator.h.
T* megatree::StdSingletonAllocatorInstance< T >::allocate | ( | size_t | n | ) | [inline] |
Definition at line 38 of file std_singleton_allocator.h.
void megatree::StdSingletonAllocatorInstance< T >::deallocate | ( | T * | obj, |
size_t | n | ||
) | [inline] |
Definition at line 47 of file std_singleton_allocator.h.
void megatree::StdSingletonAllocatorInstance< T >::destruct | ( | ) | [inline] |
Definition at line 54 of file std_singleton_allocator.h.
static StdSingletonAllocatorInstance<T>* megatree::StdSingletonAllocatorInstance< T >::getInstance | ( | size_t | size = 0 | ) | [inline, static] |
Definition at line 16 of file std_singleton_allocator.h.
size_t megatree::StdSingletonAllocatorInstance< T >::max_size | ( | ) | const [inline] |
Definition at line 33 of file std_singleton_allocator.h.
StdSingletonAllocatorInstance< T > * megatree::StdSingletonAllocatorInstance< T >::instance_ = NULL [static, private] |
Definition at line 72 of file std_singleton_allocator.h.
T* megatree::StdSingletonAllocatorInstance< T >::mem [private] |
Definition at line 75 of file std_singleton_allocator.h.
std::vector<T*> megatree::StdSingletonAllocatorInstance< T >::mem_vec [private] |
Definition at line 76 of file std_singleton_allocator.h.
boost::mutex megatree::StdSingletonAllocatorInstance< T >::mutex [private] |
Definition at line 78 of file std_singleton_allocator.h.
size_t megatree::StdSingletonAllocatorInstance< T >::size [private] |
Definition at line 74 of file std_singleton_allocator.h.