Go to the documentation of this file.
30 #ifndef __MemoryNedPooling_H__
31 #define __MemoryNedPooling_H__
33 #if OGRE_MEMORY_ALLOCATOR == OGRE_MEMORY_ALLOCATOR_NEDPOOLING
50 static void* allocBytes(
size_t count,
51 const char* file,
int line,
const char* func);
52 static void deallocBytes(
void* ptr);
53 static void* allocBytesAligned(
size_t align,
size_t count,
54 const char* file,
int line,
const char* func);
55 static void deallocBytesAligned(
size_t align,
void* ptr);
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();
146 #endif // __MemoryNedPooling_H__
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 * allocBytesAligned(size_t align, size_t count, const char *file, int line, const char *func)
An allocation policy for use with AllocatedObject and STLAllocator, which aligns memory at a given bo...
An allocation policy for use with AllocatedObject and STLAllocator.
static void * allocBytes(size_t count, const char *file, int line, const char *func)
NedPoolingAlignedPolicy()
static void deallocateBytes(void *ptr)
static void deallocateBytes(void *ptr)
static void * allocateBytes(size_t count, const char *file=0, int line=0, const char *func=0)
static void deallocBytesAligned(size_t align, void *ptr)
static void deallocBytes(void *ptr)
int IsValidAlignment[Alignment<=128 &&((Alignment &(Alignment-1))==0) ?+1 :-1]
Non-templated utility class just to hide nedmalloc.
static size_t getMaxAllocationSize()
Get the maximum size of a single allocation.
Copyright © 2012 Torus Knot Software Ltd

This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.