|
ergo
|
#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 |
|
inlineprivate |
References mat::AllocatorManager< Treal >::mutex.
|
inlineprivate |
References mat::AllocatorManager< Treal >::list.
|
inline |
References mat::Allocator< Treal >::alloc(), mat::AllocatorManager< Treal >::list, mat::AllocatorManager< Treal >::mutex, mat::AllocatorManager< Treal >::noOfBuffers, mat::AllocatorManager< Treal >::noOfRealsPerBuffer, and mat::AllocatorManager< Treal >::peakListSize.
Referenced by mat::allocateElements< double >(), and mat::allocateElements< float >().
|
inline |
References mat::AllocatorManager< Treal >::list, and mat::AllocatorManager< Treal >::mutex.
Referenced by mat::freeElements().
|
inline |
References mat::AllocatorManager< Treal >::list, mat::AllocatorManager< Treal >::noOfBuffers, mat::AllocatorManager< Treal >::noOfRealsPerBuffer, and mat::AllocatorManager< Treal >::peakListSize.
Referenced by SCF_general::do_SCF_iterations(), GetDensFromFock::get_dens_from_fock(), and GetDensFromFock::get_dens_from_fock_sparse().
|
inline |
References mat::AllocatorManager< Treal >::noOfBuffers, and mat::AllocatorManager< Treal >::noOfRealsPerBuffer.
Referenced by SCF::MatOptions::prepare().
| AllocatorManager< float > & mat::AllocatorManager< float >::instance | ( | ) |
| AllocatorManager< double > & mat::AllocatorManager< double >::instance | ( | ) |
| AllocatorManager< long double > & mat::AllocatorManager< long double >::instance | ( | ) |
|
static |
|
private |
|
private |
|
private |
|
private |
|
private |