ergo
mat::Allocator< Treal > Class Template Reference

#include <Allocator.h>

Public Member Functions

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

Private Attributes

int noOfRealsPerBuffer
 
int noOfBuffers
 
Trealbuffer
 
intnextFreeIndexList
 
int firstFreeIndex
 
int noOfOccupiedSlots
 

Constructor & Destructor Documentation

◆ Allocator()

◆ ~Allocator()

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

◆ ownsPtr()

Member Data Documentation

◆ buffer

◆ firstFreeIndex

◆ nextFreeIndexList

◆ noOfBuffers

◆ noOfOccupiedSlots

◆ noOfRealsPerBuffer


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