ADTF Display Toolbox
Loading...
Searching...
No Matches
cDynamicMemoryBlock

Dynamic memory block class. More...

#include <dynamic_memoryblock.h>

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

Detailed Description

Dynamic memory block class.

Manages memory allocation, reallocation, deletion etc.

Definition at line 104 of file dynamic_memoryblock.h.

Constructor & Destructor Documentation

◆ cDynamicMemoryBlock()

cDynamicMemoryBlock ( )
inline

Default constructor.

Definition at line 110 of file dynamic_memoryblock.h.

◆ ~cDynamicMemoryBlock()

virtual ~cDynamicMemoryBlock ( )
inlinevirtual

Destructor.

Definition at line 121 of file dynamic_memoryblock.h.

Member Data Documentation

◆ m_pData

util::cMemoryBlock* m_pData
protected

Memory block for allocation, deletion.

Definition at line 195 of file dynamic_memoryblock.h.

◆ m_ui32BlockIncrement

tUInt32 m_ui32BlockIncrement
protected

Growing size.

Definition at line 199 of file dynamic_memoryblock.h.

◆ m_ui32BlockSize

tUInt32 m_ui32BlockSize
protected

Allocated memory size.

Definition at line 197 of file dynamic_memoryblock.h.

◆ m_ui32UsedSize

tUInt32 m_ui32UsedSize
protected

Used memory size.

Definition at line 201 of file dynamic_memoryblock.h.