Guiliani  Version 2.6 revision 7293 (documentation build 12)
WorkingMemory Class Reference

#include <WorkingMemory.h>

Public Member Functions

 WorkingMemory (const eC_UInt &uiSize)
 
void * Acquire (const eC_UInt &uiSize)
 
eC_UInt GetMaxBufferCount () const
 
void Release ()
 

Detailed Description

this class provides a helper for working memories

Constructor & Destructor Documentation

◆ WorkingMemory()

WorkingMemory::WorkingMemory ( const eC_UInt &  uiSize)

Initialize the buffer for working memory

Parameters
uiSizeinitial size of buffer

Member Function Documentation

◆ Acquire()

void * WorkingMemory::Acquire ( const eC_UInt &  uiSize)

Get a portion of the working memory. This memory can be used for frequent actions like creating vertices or other temporary buffers for graphical operations. It is also possible to acquire multiple memory-blocks for an operation.

If the memory-block will not fit into the buffer of working memory additional buffers are created.

Parameters
uiSizesize of memory-block
Returns
memory

◆ GetMaxBufferCount()

eC_UInt WorkingMemory::GetMaxBufferCount ( ) const
inline

return maximum buffer count

Returns
max buffer count

◆ Release()

void WorkingMemory::Release ( )

Release all memory-blocks acquired from working memory This will reset the offset inside the working memory, so that the next acquisition will start from the beginning of the buffer.


The documentation for this class was generated from the following file: