|
ADTF Display Toolbox
|
Dynamic memory block class. More...
Public Member Functions | |
| cDynamicMemoryBlock () | |
| D-Pointer implementation. More... | |
| virtual | ~cDynamicMemoryBlock () |
| Destructor. | |
Public Member Functions inherited from IDynamicMemoryBlock | |
| virtual tResult | Append (const tVoid *pvData, tInt nDataSize)=0 |
| Append data to the allocated memory. More... | |
| virtual tVoid * | GetPtr ()=0 |
| Get a pointer to the allocated memory. More... | |
| virtual tSize | GetSize ()=0 |
| Get the amount of used memory in bytes. More... | |
| virtual tResult | Reset ()=0 |
| Resets the size. More... | |
| virtual tResult | SetIncrement (tInt nNewIncrement)=0 |
| Sets the allocated memory growing size Default growing size is 256 bytes. More... | |
| 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 101 of file dynamic_memoryblock.h.
D-Pointer implementation.
Default constructor.