Pictel 2d 0.1
Game Engine Documentation
Public Member Functions | List of all members
engine::MemoryI Class Reference
Inheritance diagram for engine::MemoryI:
engine::CallableScriptFunctionI engine::CallableParameters1< A > engine::CallableParameters2< A, B > engine::CallableParameters3< A, B, C > engine::CallableParametersEmpty

Public Member Functions

void Keep ()
 
void Release ()
 
void FreeMem ()
 

Detailed Description

An abstract interface to deal with releasing object. During the course of the lifecycle of the game scripts many objects can be created. To limit the number of managers, those objects that do not belong to a manager land in a common ReleaseQueue. At the end of the script (or scene change) the ReleaseQueue is drained. The Queue should contain only those object that fit the "dangling in memory" criterion.

Some object may keep the objects for longer thus preventing the MemoryI::ReleaseMem() function from actually releasing the object.