#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 |
| mat::Allocator< Treal >::Allocator | ( | int | noOfRealsPerBuffer_, | |
| int | noOfBuffers_ | |||
| ) | [inline] |
| mat::Allocator< Treal >::~Allocator | ( | ) | [inline] |
| Treal* mat::Allocator< Treal >::alloc | ( | ) | [inline] |
| void mat::Allocator< Treal >::free | ( | Treal * | ptr | ) | [inline] |
| int mat::Allocator< Treal >::getNoOfOccupiedSlots | ( | ) | [inline] |
References mat::Allocator< Treal >::noOfOccupiedSlots.
| bool mat::Allocator< Treal >::isEmpty | ( | ) | [inline] |
References mat::Allocator< Treal >::noOfOccupiedSlots.
| bool mat::Allocator< Treal >::isFull | ( | ) | [inline] |
| bool mat::Allocator< Treal >::ownsPtr | ( | Treal * | ptr | ) | [inline] |
Treal* mat::Allocator< Treal >::buffer [private] |
int mat::Allocator< Treal >::firstFreeIndex [private] |
int* mat::Allocator< Treal >::nextFreeIndexList [private] |
int mat::Allocator< Treal >::noOfBuffers [private] |
int mat::Allocator< Treal >::noOfOccupiedSlots [private] |
int mat::Allocator< Treal >::noOfRealsPerBuffer [private] |
1.6.1