#include <AllocatorManager.h>
Public Member Functions | |
void | init (size_t noOfRealsPerBuffer_, size_t noOfBuffers_) |
Treal * | alloc (size_t n) |
void | free (Treal *ptr) |
std::string | getStatistics () |
template<> | |
AllocatorManager< float > & | instance () |
template<> | |
AllocatorManager< double > & | instance () |
template<> | |
AllocatorManager< long double > & | instance () |
Static Public Member Functions | |
static AllocatorManager & | instance () |
Private Member Functions | |
AllocatorManager () | |
~AllocatorManager () | |
Private Attributes | |
std::list< Allocator< Treal > * > | list |
size_t | noOfRealsPerBuffer |
size_t | noOfBuffers |
pthread_mutex_t | mutex |
size_t | peakListSize |
mat::AllocatorManager< Treal >::AllocatorManager | ( | ) | [inline, private] |
References mat::AllocatorManager< Treal >::mutex.
mat::AllocatorManager< Treal >::~AllocatorManager | ( | ) | [inline, private] |
References mat::AllocatorManager< Treal >::list.
Treal* mat::AllocatorManager< Treal >::alloc | ( | size_t | n | ) | [inline] |
void mat::AllocatorManager< Treal >::free | ( | Treal * | ptr | ) | [inline] |
std::string mat::AllocatorManager< Treal >::getStatistics | ( | ) | [inline] |
void mat::AllocatorManager< Treal >::init | ( | size_t | noOfRealsPerBuffer_, | |
size_t | noOfBuffers_ | |||
) | [inline] |
AllocatorManager< long double > & mat::AllocatorManager< long double >::instance | ( | ) | [inline] |
AllocatorManager< double > & mat::AllocatorManager< double >::instance | ( | ) | [inline] |
AllocatorManager< float > & mat::AllocatorManager< float >::instance | ( | ) | [inline] |
static AllocatorManager& mat::AllocatorManager< Treal >::instance | ( | ) | [static] |
std::list< Allocator<Treal>* > mat::AllocatorManager< Treal >::list [private] |
pthread_mutex_t mat::AllocatorManager< Treal >::mutex [private] |
size_t mat::AllocatorManager< Treal >::noOfBuffers [private] |
size_t mat::AllocatorManager< Treal >::noOfRealsPerBuffer [private] |
size_t mat::AllocatorManager< Treal >::peakListSize [private] |