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>
109 typedef int IsValidAlignment
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 deallocateBytes(void *ptr)
static size_t getMaxAllocationSize()
Get the maximum size of a single allocation.
static void * allocBytes(size_t count, const char *file, int line, const char *func)
static void deallocBytes(void *ptr)
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 void deallocBytesAligned(size_t align, void *ptr)
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.
This source file is part of OGRE (Object-oriented Graphics Rendering Engine) For the latest info...
static void deallocateBytes(void *ptr)
static void * allocBytesAligned(size_t align, size_t count, const char *file, int line, const char *func)
NedPoolingAlignedPolicy()
An allocation policy for use with AllocatedObject and STLAllocator, which aligns memory at a given bo...