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

#include <allocator.h>

List of all members.

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

Detailed Description

template<class T>
class megatree::Allocator< T >

Definition at line 14 of file allocator.h.


Constructor & Destructor Documentation

template<class T >
megatree::Allocator< T >::Allocator ( unsigned  size = 0) [inline]

Definition at line 17 of file allocator.h.

template<class T >
megatree::Allocator< T >::~Allocator ( ) [inline]

Definition at line 29 of file allocator.h.


Member Function Documentation

template<class T >
T* megatree::Allocator< T >::allocate ( ) [inline]

Definition at line 35 of file allocator.h.

template<class T >
void megatree::Allocator< T >::allocateMany ( size_t  howmany,
std::vector< T * > &  vec 
) [inline]

Definition at line 44 of file allocator.h.

template<class T >
void megatree::Allocator< T >::deAllocate ( T *  obj) [inline]

Definition at line 59 of file allocator.h.

template<class T >
void megatree::Allocator< T >::deallocateMany ( std::vector< T * > &  vec) [inline]

Definition at line 65 of file allocator.h.


Member Data Documentation

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

Definition at line 74 of file allocator.h.

template<class T >
std::vector<T*> megatree::Allocator< T >::obj_stack [private]

Definition at line 76 of file allocator.h.

template<class T >
T* megatree::Allocator< T >::objects [private]

Definition at line 75 of file allocator.h.

template<class T >
unsigned megatree::Allocator< T >::overflow [private]

Definition at line 77 of file allocator.h.


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


megatree_core
Author(s): Stuart Glaser
autogenerated on Mon Dec 2 2013 13:01:15