E:/p4/sw/physx/PxShared/1.0/trunk/src/foundation/include/PsAllocator.h File Reference
#include "foundation/PxAllocatorCallback.h"
#include "Ps.h"#include "PsGlobals.h"#include <new>Go to the source code of this file.
Classes | |
| class | physx::shdfnd::RawAllocator |
| class | physx::shdfnd::NonTrackingAllocator |
| class | physx::shdfnd::ReflectionAllocator< T > |
| struct | physx::shdfnd::AllocatorTraits< T > |
| union | physx::shdfnd::EnableIfPod< T, X > |
Namespaces | |
| namespace | physx |
| Sorts an array of objects in ascending order, assuming that the predicate implements the < operator:. | |
| namespace | physx::shdfnd |
Defines | |
| #define | PX_ALLOC(n, name) physx::shdfnd::NonTrackingAllocator().allocate(n, __FILE__, __LINE__) |
| #define | PX_ALLOC_TEMP(n, name) PX_ALLOC(n, name) |
| #define | PX_FREE(x) physx::shdfnd::NonTrackingAllocator().deallocate(x) |
| #define | PX_FREE_AND_RESET(x) |
| #define | PX_NEW(T) new (physx::shdfnd::ReflectionAllocator<T>(), __FILE__, __LINE__) T |
| #define | PX_NEW_TEMP(T) PX_NEW(T) |
| #define | PX_DELETE(x) delete x |
| #define | PX_DELETE_AND_RESET(x) |
| #define | PX_DELETE_POD(x) |
| #define | PX_DELETE_ARRAY(x) |
| #define | PX_ALIGNED16_ALLOC(n) physx::shdfnd::AlignedAllocator<16>().allocate(n, __FILE__, __LINE__) |
| #define | PX_ALIGNED16_FREE(x) physx::shdfnd::AlignedAllocator<16>().deallocate(x) |
| #define | PX_PLACEMENT_NEW(p, T) new (p) T |
| placement new macro to make it easy to spot bad use of 'new' | |
| #define | PX_USE_NAMED_ALLOCATOR 0 |
| #define | PxAllocaAligned(x, alignment) ((size_t(PxAlloca(x + alignment)) + (alignment - 1)) & ~size_t(alignment - 1)) |
Functions | |
| void | physx::shdfnd::initializeNamedAllocatorGlobals () |
| void | physx::shdfnd::terminateNamedAllocatorGlobals () |
| template<typename T > | |
| PX_INLINE void * | operator new (size_t size, physx::shdfnd::ReflectionAllocator< T > alloc, const char *fileName, typename physx::shdfnd::EnableIfPod< T, int >::Type line) |
| template<typename T > | |
| PX_INLINE void * | operator new[] (size_t size, physx::shdfnd::ReflectionAllocator< T > alloc, const char *fileName, typename physx::shdfnd::EnableIfPod< T, int >::Type line) |
| template<typename T > | |
| PX_INLINE void | operator delete (void *ptr, physx::shdfnd::ReflectionAllocator< T > alloc, const char *fileName, typename physx::shdfnd::EnableIfPod< T, int >::Type line) |
| template<typename T > | |
| PX_INLINE void | operator delete[] (void *ptr, physx::shdfnd::ReflectionAllocator< T > alloc, const char *fileName, typename physx::shdfnd::EnableIfPod< T, int >::Type line) |
Define Documentation
| #define PX_ALIGNED16_ALLOC | ( | n | ) | physx::shdfnd::AlignedAllocator<16>().allocate(n, __FILE__, __LINE__) |
| #define PX_ALIGNED16_FREE | ( | x | ) | physx::shdfnd::AlignedAllocator<16>().deallocate(x) |
| #define PX_ALLOC | ( | n, | |||
| name | ) | physx::shdfnd::NonTrackingAllocator().allocate(n, __FILE__, __LINE__) |
| #define PX_ALLOC_TEMP | ( | n, | |||
| name | ) | PX_ALLOC(n, name) |
| #define PX_DELETE | ( | x | ) | delete x |
| #define PX_DELETE_AND_RESET | ( | x | ) |
Value:
{ \
PX_DELETE(x); \
x = 0; \
}
| #define PX_DELETE_ARRAY | ( | x | ) |
Value:
{ \
PX_DELETE([] x); \
x = 0; \
}
| #define PX_DELETE_POD | ( | x | ) |
Value:
{ \
PX_FREE(x); \
x = 0; \
}
| #define PX_FREE | ( | x | ) | physx::shdfnd::NonTrackingAllocator().deallocate(x) |
| #define PX_FREE_AND_RESET | ( | x | ) |
Value:
{ \
PX_FREE(x); \
x = 0; \
}
| #define PX_NEW | ( | T | ) | new (physx::shdfnd::ReflectionAllocator<T>(), __FILE__, __LINE__) T |
| #define PX_NEW_TEMP | ( | T | ) | PX_NEW(T) |
| #define PX_PLACEMENT_NEW | ( | p, | |||
| T | ) | new (p) T |
placement new macro to make it easy to spot bad use of 'new'
| #define PX_USE_NAMED_ALLOCATOR 0 |
| #define PxAllocaAligned | ( | x, | |||
| alignment | ) | ((size_t(PxAlloca(x + alignment)) + (alignment - 1)) & ~size_t(alignment - 1)) |
Function Documentation
template<typename T >
| PX_INLINE void operator delete | ( | void * | ptr, | |
| physx::shdfnd::ReflectionAllocator< T > | alloc, | |||
| const char * | fileName, | |||
| typename physx::shdfnd::EnableIfPod< T, int >::Type | line | |||
| ) | [inline] |
template<typename T >
| PX_INLINE void operator delete[] | ( | void * | ptr, | |
| physx::shdfnd::ReflectionAllocator< T > | alloc, | |||
| const char * | fileName, | |||
| typename physx::shdfnd::EnableIfPod< T, int >::Type | line | |||
| ) | [inline] |
template<typename T >
| PX_INLINE void* operator new | ( | size_t | size, | |
| physx::shdfnd::ReflectionAllocator< T > | alloc, | |||
| const char * | fileName, | |||
| typename physx::shdfnd::EnableIfPod< T, int >::Type | line | |||
| ) | [inline] |
template<typename T >
| PX_INLINE void* operator new[] | ( | size_t | size, | |
| physx::shdfnd::ReflectionAllocator< T > | alloc, | |||
| const char * | fileName, | |||
| typename physx::shdfnd::EnableIfPod< T, int >::Type | line | |||
| ) | [inline] |
Generated on Tue Jul 28 14:21:55 2015 for NVIDIA(R) PsFoundation Reference by
1.5.8