30 #ifndef __MemoryNedPooling_H__
31 #define __MemoryNedPooling_H__
33 #if OGRE_MEMORY_ALLOCATOR == OGRE_MEMORY_ALLOCATOR_NEDPOOLING
51 const char* file,
int line,
const char* func);
54 const char* file,
int line,
const char* func);
71 const char* file = 0,
int line = 0,
const char* func = 0)
82 return std::numeric_limits<size_t>::max();
104 template <
size_t Alignment = 0>
110 [Alignment <= 128 && ((Alignment & (Alignment-1)) == 0) ? +1 : -1];
113 const char* file = 0,
int line = 0,
const char* func = 0)
126 return std::numeric_limits<size_t>::max();
An allocation policy for use with AllocatedObject and STLAllocator, which aligns memory at a given bo...
static void deallocateBytes(void *ptr)
NedPoolingAlignedPolicy()
int IsValidAlignment[Alignment<=128 &&((Alignment &(Alignment-1))==0) ?+1 :-1]
static size_t getMaxAllocationSize()
Get the maximum size of a single allocation.
static void * allocateBytes(size_t count, const char *file=0, int line=0, const char *func=0)
Non-templated utility class just to hide nedmalloc.
static void deallocBytesAligned(size_t align, void *ptr)
static void * allocBytes(size_t count, const char *file, int line, const char *func)
static void deallocBytes(void *ptr)
static void * allocBytesAligned(size_t align, size_t count, const char *file, int line, const char *func)
An allocation policy for use with AllocatedObject and STLAllocator.
static void * allocateBytes(size_t count, const char *file=0, int line=0, const char *func=0)
static size_t getMaxAllocationSize()
Get the maximum size of a single allocation.
static void deallocateBytes(void *ptr)