cocos2d-x  3.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
AllocatorStrategyGlobalSmallBlock Class Reference

#include <CCAllocatorStrategyGlobalSmallBlock.h>

Inheritance diagram for AllocatorStrategyGlobalSmallBlock:
AllocatorBase

Public Member Functions

void _lazy_init ()
 AllocatorStrategyGlobalSmallBlock ()
 AllocatorStrategyGlobalSmallBlock ()
 AllocatorStrategyGlobalSmallBlock ()
virtual ~AllocatorStrategyGlobalSmallBlock ()
local ~AllocatorStrategyGlobalSmallBlock ()
CC_ALLOCATOR_INLINE void * allocate (size_t size)
local allocate ( local size)
CC_ALLOCATOR_INLINE void deallocate (void *address, size_t size=0)
local deallocate ( local address, local 0)

Static Public Attributes

static const size_t kDefaultSmallBlockCount = 100
var kDefaultSmallBlockCount = 100
local kDefaultSmallBlockCount = 100
static const size_t kMaxSmallBlockPower = 13
var kMaxSmallBlockPower = 13
local kMaxSmallBlockPower = 13

Protected Attributes

size_t _maxBlockSize
AllocatorBase_smallBlockAllocators [kMaxSmallBlockPower+1]

Additional Inherited Members

- Public Types inherited from AllocatorBase
enum  { kDefaultAlignment = 16 }
 
typedef void * pointer

Constructor & Destructor Documentation

virtual
~AllocatorStrategyGlobalSmallBlock
( )
inlinevirtual
var
~AllocatorStrategyGlobalSmallBlock
( )
inlinevirtual
local
~AllocatorStrategyGlobalSmallBlock
( )
inlinevirtual

Member Function Documentation

void _lazy_init ( )
inline
var _lazy_init ( )
inline
local _lazy_init ( )
inline
CC_ALLOCATOR_INLINE void* allocate ( size_t  size)
inline
var allocate ( var  size)
inline
local allocate ( local  size)
inline
CC_ALLOCATOR_INLINE void deallocate ( void *  address,
size_t  size = 0 
)
inline
var deallocate ( var  address,
var  size = 0 
)
inline
local deallocate ( local  address,
local  size = 0 
)
inline

Member Data Documentation

size_t _maxBlockSize
protected
var _maxBlockSize
protected
local _maxBlockSize
protected
AllocatorBase*
_smallBlockAllocators[kMaxSmallBlockPower+1]
protected
AllocatorBase*
_smallBlockAllocators[kMaxSmallBlockPower+1]
protected
AllocatorBase*
_smallBlockAllocators[kMaxSmallBlockPower+1]
protected
const size_t
kDefaultSmallBlockCount = 100
static
var kDefaultSmallBlockCount = 100
static
local kDefaultSmallBlockCount = 100
static
const size_t kMaxSmallBlockPower = 13
static
var kMaxSmallBlockPower = 13
static
local kMaxSmallBlockPower = 13
static

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