ADTF_DISPLAY_TOOLBOX  3.8.0 (ADTF 3.14.3)
cDynamicMemoryBlock

Dynamic memory block class. More...

Inheritance diagram for cDynamicMemoryBlock:
[legend]

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. 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.
 

Private Member Functions

 A_UTILS_D (cDynamicMemoryBlock)
 D-Pointer implementation.
 

Additional Inherited Members

- Protected Member Functions inherited from IDynamicMemoryBlock
 ~IDynamicMemoryBlock ()
 Prohibit class destructor.
 

Detailed Description

Dynamic memory block class.

Manages memory allocation, reallocation, deletion etc.

Definition at line 101 of file dynamic_memoryblock.h.