#include <allocator.h>
Public Member Functions | |
T * | allocate () |
void | allocateMany (size_t howmany, std::vector< T * > &vec) |
Allocator (unsigned size=0) | |
void | deAllocate (T *obj) |
void | deallocateMany (std::vector< T * > &vec) |
~Allocator () | |
Private Attributes | |
boost::mutex | mutex |
std::vector< T * > | obj_stack |
T * | objects |
unsigned | overflow |
Definition at line 14 of file allocator.h.
megatree::Allocator< T >::Allocator | ( | unsigned | size = 0 | ) | [inline] |
Definition at line 17 of file allocator.h.
megatree::Allocator< T >::~Allocator | ( | ) | [inline] |
Definition at line 29 of file allocator.h.
T* megatree::Allocator< T >::allocate | ( | ) | [inline] |
Definition at line 35 of file allocator.h.
void megatree::Allocator< T >::allocateMany | ( | size_t | howmany, |
std::vector< T * > & | vec | ||
) | [inline] |
Definition at line 44 of file allocator.h.
void megatree::Allocator< T >::deAllocate | ( | T * | obj | ) | [inline] |
Definition at line 59 of file allocator.h.
void megatree::Allocator< T >::deallocateMany | ( | std::vector< T * > & | vec | ) | [inline] |
Definition at line 65 of file allocator.h.
boost::mutex megatree::Allocator< T >::mutex [private] |
Definition at line 74 of file allocator.h.
std::vector<T*> megatree::Allocator< T >::obj_stack [private] |
Definition at line 76 of file allocator.h.
T* megatree::Allocator< T >::objects [private] |
Definition at line 75 of file allocator.h.
unsigned megatree::Allocator< T >::overflow [private] |
Definition at line 77 of file allocator.h.