mat::Allocator< Treal > Class Template Reference

#include <Allocator.h>

List of all members.

Public Member Functions

 Allocator (int noOfRealsPerBuffer_, int noOfBuffers_)
 ~Allocator ()
Treal * alloc ()
void free (Treal *ptr)
bool isFull ()
bool isEmpty ()
bool ownsPtr (Treal *ptr)
int getNoOfOccupiedSlots ()

Private Attributes

int noOfRealsPerBuffer
int noOfBuffers
Treal * buffer
int * nextFreeIndexList
int firstFreeIndex
int noOfOccupiedSlots

template<class Treal>
class mat::Allocator< Treal >


Constructor & Destructor Documentation

template<class Treal>
mat::Allocator< Treal >::Allocator ( int  noOfRealsPerBuffer_,
int  noOfBuffers_ 
) [inline]
template<class Treal>
mat::Allocator< Treal >::~Allocator (  )  [inline]

Member Function Documentation

template<class Treal>
Treal* mat::Allocator< Treal >::alloc (  )  [inline]
template<class Treal>
void mat::Allocator< Treal >::free ( Treal *  ptr  )  [inline]
template<class Treal>
int mat::Allocator< Treal >::getNoOfOccupiedSlots (  )  [inline]
template<class Treal>
bool mat::Allocator< Treal >::isEmpty (  )  [inline]
template<class Treal>
bool mat::Allocator< Treal >::isFull (  )  [inline]
template<class Treal>
bool mat::Allocator< Treal >::ownsPtr ( Treal *  ptr  )  [inline]

Member Data Documentation

template<class Treal>
Treal* mat::Allocator< Treal >::buffer [private]
template<class Treal>
int mat::Allocator< Treal >::firstFreeIndex [private]
template<class Treal>
int* mat::Allocator< Treal >::nextFreeIndexList [private]
template<class Treal>
int mat::Allocator< Treal >::noOfBuffers [private]
template<class Treal>
int mat::Allocator< Treal >::noOfOccupiedSlots [private]
template<class Treal>
int mat::Allocator< Treal >::noOfRealsPerBuffer [private]

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

Generated on 10 Jul 2018 for ergo by  doxygen 1.6.1