29#ifndef __MemoryNedAlloc_H__
30#define __MemoryNedAlloc_H__
32#if OGRE_MEMORY_ALLOCATOR == OGRE_MEMORY_ALLOCATOR_NED
50 const char* file,
int line,
const char*
func);
53 const char* file,
int line,
const char*
func);
70 const char* file = 0,
int line = 0,
const char*
func = 0)
72 return NedAllocImpl::allocBytes(
count, file, line,
func);
76 NedAllocImpl::deallocBytes(ptr);
81 return std::numeric_limits<size_t>::max();
102 template <
size_t Alignment = 0>
108 [Alignment <= 128 && ((Alignment & (Alignment-1)) == 0) ? +1 : -1];
111 const char* file = 0,
int line = 0,
const char*
func = 0)
124 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)
static void * allocateBytes(size_t count, const char *file=0, int line=0, const char *func=0)
int IsValidAlignment[Alignment<=128 &&((Alignment &(Alignment-1))==0) ?+1 :-1]
static size_t getMaxAllocationSize()
Get the maximum size of a single allocation.
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)
Reference-counted shared pointer, used for objects where implicit destruction is required.