ergo
mat::Allocator< Treal > Class Template Reference

#include <Allocator.h>

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
 

Constructor & Destructor Documentation

◆ Allocator()

◆ ~Allocator()

template<class Treal >
mat::Allocator< Treal >::~Allocator ( )
inline

Member Function Documentation

◆ alloc()

◆ free()

◆ getNoOfOccupiedSlots()

template<class Treal >
int mat::Allocator< Treal >::getNoOfOccupiedSlots ( )
inline

◆ isEmpty()

template<class Treal >
bool mat::Allocator< Treal >::isEmpty ( )
inline

◆ isFull()

template<class Treal >
bool mat::Allocator< Treal >::isFull ( )
inline

◆ ownsPtr()

template<class Treal >
bool mat::Allocator< Treal >::ownsPtr ( Treal *  ptr)
inline

Member Data Documentation

◆ buffer

◆ firstFreeIndex

template<class Treal >
int mat::Allocator< Treal >::firstFreeIndex
private

◆ nextFreeIndexList

◆ noOfBuffers

◆ noOfOccupiedSlots

◆ noOfRealsPerBuffer


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