|
ADTF Display Toolbox
|
Dynamic memory block class. More...
#include <dynamic_memoryblock.h>
Public Member Functions | |
| cDynamicMemoryBlock () | |
| Default constructor. | |
| virtual | ~cDynamicMemoryBlock () |
| Destructor. | |
Public Member Functions inherited from IDynamicMemoryBlock | |
| virtual tResult | Append (const tVoid *pvData, tInt nDataSize)=0 |
| Append data to the allocated memory. | |
| virtual tVoid * | GetPtr ()=0 |
| Get a pointer to the allocated memory. | |
| virtual tSize | GetSize ()=0 |
| Get the amount of used memory in bytes. | |
| virtual tResult | Reset ()=0 |
| Resets the size. | |
| virtual tResult | SetIncrement (tInt nNewIncrement)=0 |
| Sets the allocated memory growing size Default growing size is 256 bytes. | |
| virtual tVoid | Destroy ()=0 |
| Destroys the object and frees the allocated memory. | |
Protected Attributes | |
| util::cMemoryBlock * | m_pData |
| Memory block for allocation, deletion. | |
| tUInt32 | m_ui32BlockSize |
| Allocated memory size. | |
| tUInt32 | m_ui32BlockIncrement |
| Growing size. | |
| tUInt32 | m_ui32UsedSize |
| Used memory size. | |
Additional Inherited Members | |
Protected Member Functions inherited from IDynamicMemoryBlock | |
| ~IDynamicMemoryBlock () | |
| Prohibit class destructor. | |
Dynamic memory block class.
Manages memory allocation, reallocation, deletion etc.
Definition at line 104 of file dynamic_memoryblock.h.
|
inline |
Default constructor.
Definition at line 110 of file dynamic_memoryblock.h.
|
inlinevirtual |
Destructor.
Definition at line 121 of file dynamic_memoryblock.h.
|
protected |
Memory block for allocation, deletion.
Definition at line 195 of file dynamic_memoryblock.h.
|
protected |
Growing size.
Definition at line 199 of file dynamic_memoryblock.h.
|
protected |
Allocated memory size.
Definition at line 197 of file dynamic_memoryblock.h.
|
protected |
Used memory size.
Definition at line 201 of file dynamic_memoryblock.h.