cocos2d-x  2.2.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
BatchAllocator< AllocatedType, objectPerAllocation > Class Template Reference

#include <json_batchallocator.h>

Public Types

typedef AllocatedType Type

Public Member Functions

 BatchAllocator (unsigned int objectsPerPage=255)
 ~BatchAllocator ()
 ~BatchAllocator ()
 ~BatchAllocator ()
AllocatedType * allocate ()
 allocate space for an array of objectPerAllocation object. More...
 
local allocate ()
 allocate space for an array of objectPerAllocation object. More...
 
void release (AllocatedType *object)
 Release the object. More...
 

Member Typedef Documentation

typedef AllocatedType Type
var Type
local Type

Constructor & Destructor Documentation

BatchAllocator ( unsigned int  objectsPerPage = 255)
inline
var BatchAllocator ( var  objectsPerPage = 255)
inline
local BatchAllocator ( local  objectsPerPage = 255)
inline
~BatchAllocator ( )
inline
var ~BatchAllocator ( )
inline
local ~BatchAllocator ( )
inline

Member Function Documentation

AllocatedType* allocate ( )
inline

allocate space for an array of objectPerAllocation object.

Warning
it is the responsability of the caller to call objects constructors.
var allocate ( )
inline

allocate space for an array of objectPerAllocation object.

Warning
it is the responsability of the caller to call objects constructors.
local allocate ( )
inline

allocate space for an array of objectPerAllocation object.

Warning
it is the responsability of the caller to call objects constructors.
void release ( AllocatedType *  object)
inline

Release the object.

Warning
it is the responsability of the caller to actually destruct the object.
var release ( var  object)
inline

Release the object.

Warning
it is the responsability of the caller to actually destruct the object.
local release ( local  object)
inline

Release the object.

Warning
it is the responsability of the caller to actually destruct the object.

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