In file localheap.hpp: Optimized memory handler.
Documentation
Optimized memory handler.
One block of data is organized as stack memory.
One can allocate memory out of it. This increases the stack pointer.
With CleanUp, the pointer is reset to the beginning or to a
specific position.
Public Methods
-
LocalHeap(unsigned int asize)
- Allocate one block of size asize
-
LocalHeap(char* adata, unsigned int asize) throw()
- Use provided memory for the LocalHeap
-
~LocalHeap()
- free memory
-
void CleanUp() throw()
- delete all memory on local heap
-
void* GetPointer() throw()
- returns heap-pointer
-
void CleanUp(void* addr) throw()
- deletes memory back to heap-pointer
-
void* Alloc(unsigned int size) throw(LocalHeapOverflow)
- allocates size bytes of memory from local heap
-
template<typename T> T* Alloc(unsigned int size) throw(LocalHeapOverflow)
- allocates size objects of type T on local heap
-
void ThrowException() throw(LocalHeapOverflow)
-
void Free(void* data) throw()
- free memory (dummy function)
-
int Available() const throw()
- available memory on LocalHeap
LocalHeap(unsigned int asize)
- Allocate one block of size asize
LocalHeap(char* adata, unsigned int asize) throw()
- Use provided memory for the LocalHeap
~LocalHeap()
- free memory
void CleanUp() throw()
- delete all memory on local heap
void* GetPointer() throw()
- returns heap-pointer
void CleanUp(void* addr) throw()
- deletes memory back to heap-pointer
void* Alloc(unsigned int size) throw(LocalHeapOverflow)
- allocates size bytes of memory from local heap
template<typename T> T* Alloc(unsigned int size) throw(LocalHeapOverflow)
- allocates size objects of type T on local heap
void ThrowException() throw(LocalHeapOverflow)
void Free(void* data) throw()
- free memory (dummy function)
int Available() const throw()
- available memory on LocalHeap
- This class has no child classes.
Alphabetic index HTML hierarchy of classes or Java
This page was generated with the help of DOC++.