C:/quickbuild-1.2.13/working/root/Docs/TGEA_Offline_Docs/checkouts/engine/source/core/frameAllocator.h File Reference

#include "platform/platform.h"

Classes

class  FrameAllocator
 Temporary memory pool for per-frame allocations. More...
class  FrameAllocatorMarker
 Helper class to deal with FrameAllocator usage. More...
class  FrameTemp< T >
 Class for temporary variables that you want to allocate easily using the FrameAllocator. More...

Defines

#define FRAME_TEMP_NC_SPEC(type)

Functions

 FRAME_TEMP_NC_SPEC (char)
 FRAME_TEMP_NC_SPEC (float)
 FRAME_TEMP_NC_SPEC (double)
 FRAME_TEMP_NC_SPEC (bool)
 FRAME_TEMP_NC_SPEC (int)
 FRAME_TEMP_NC_SPEC (short)
 FRAME_TEMP_NC_SPEC (unsigned char)


Define Documentation

#define FRAME_TEMP_NC_SPEC ( type   ) 

Value:

template<> \
   inline FrameTemp<type>::FrameTemp( const U32 count ) \
   { \
      AssertFatal( count > 0, "Allocating a FrameTemp with less than one instance" ); \
      mWaterMark = FrameAllocator::getWaterMark(); \
      mMemory = reinterpret_cast<type *>( FrameAllocator::alloc( sizeof( type ) * count ) ); \
   } \
   template<>\
   inline FrameTemp<type>::~FrameTemp() \
   { \
      FrameAllocator::setWaterMark( mWaterMark ); \
   } \


Function Documentation

FRAME_TEMP_NC_SPEC ( char   ) 

FRAME_TEMP_NC_SPEC ( float   ) 

FRAME_TEMP_NC_SPEC ( double   ) 

FRAME_TEMP_NC_SPEC ( bool   ) 

FRAME_TEMP_NC_SPEC ( int   ) 

FRAME_TEMP_NC_SPEC ( short   ) 

FRAME_TEMP_NC_SPEC ( unsigned  char  )