csFrameDataHolder< T > Class Template ReferenceHelper template to retrieve an instance of some type that has not yet been used in a frame. More...
Public Member Functions
|void||Clear (bool instaClear=false)|
|Remove all allocated instances. |
|T &||GetUnusedData (bool &created, uint frameNumber)|
|Retrieve an instance of the type T whose associated frame number differs from frameNumber. |
Helper template to retrieve an instance of some type that has not yet been used in a frame.
class csFrameDataHolder< T >
Retrieval in subsequent frames will reuse already created instances, if appropriate (that is, the associated frame number differs from the provide current frame number).
Member Function Documentation
|void csFrameDataHolder< T >::Clear||(||bool|| instaClear =
Remove all allocated instances.
- Warning! Don't use if pointers etc. to contained data still in use!
By default. does not clear the allocated data instantly but rather upon the next frame (ie when the frameNumber parameter passed to GetUnusedData() differs from the last). To change this behaviour, set instaClear to true.
|T& csFrameDataHolder< T >::GetUnusedData||(||bool &||created,|
Retrieve an instance of the type T whose associated frame number differs from frameNumber.
In created, it is returned whether a new instance was created (value is true) or an existing one was reused (value is false). Can be used to e.g. determine whether some initialization work can be saved.
The documentation for this class was generated from the following file:
Generated for Crystal Space 1.2.1 by doxygen 1.5.3