mat::AllocatorManager< Treal > Class Template Reference

#include <AllocatorManager.h>

List of all members.

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 AllocatorManagerinstance ()

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

template<class Treal>
class mat::AllocatorManager< Treal >


Constructor & Destructor Documentation

template<class Treal>
mat::AllocatorManager< Treal >::AllocatorManager (  )  [inline, private]
template<class Treal>
mat::AllocatorManager< Treal >::~AllocatorManager (  )  [inline, private]

Member Function Documentation

template<class Treal>
Treal* mat::AllocatorManager< Treal >::alloc ( size_t  n  )  [inline]
template<class Treal>
void mat::AllocatorManager< Treal >::free ( Treal *  ptr  )  [inline]
template<class Treal>
std::string mat::AllocatorManager< Treal >::getStatistics (  )  [inline]
template<class Treal>
void mat::AllocatorManager< Treal >::init ( size_t  noOfRealsPerBuffer_,
size_t  noOfBuffers_ 
) [inline]
template<>
AllocatorManager< long double > & mat::AllocatorManager< long double >::instance (  )  [inline]
template<>
AllocatorManager< double > & mat::AllocatorManager< double >::instance (  )  [inline]
template<>
AllocatorManager< float > & mat::AllocatorManager< float >::instance (  )  [inline]
template<class Treal>
static AllocatorManager& mat::AllocatorManager< Treal >::instance (  )  [static]

Member Data Documentation

template<class Treal>
std::list< Allocator<Treal>* > mat::AllocatorManager< Treal >::list [private]
template<class Treal>
pthread_mutex_t mat::AllocatorManager< Treal >::mutex [private]
template<class Treal>
size_t mat::AllocatorManager< Treal >::noOfBuffers [private]
template<class Treal>
size_t mat::AllocatorManager< Treal >::noOfRealsPerBuffer [private]
template<class Treal>
size_t mat::AllocatorManager< Treal >::peakListSize [private]

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

Generated on 10 Jul 2018 for ergo by  doxygen 1.6.1