Classes | Namespaces | Defines | Functions
OVR_Allocator.h File Reference
#include "OVR_Types.h"
Include dependency graph for OVR_Allocator.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  OVR::Allocator
class  OVR::Allocator_SingletonSupport< D >
struct  OVR::Allocator_SingletonSupport< D >::AllocContainer
class  OVR::DefaultAllocator
class  OVR::NewOverrideBase

Namespaces

namespace  OVR

Defines

#define OVR_ALLOC(s)   OVR::Allocator::GetInstance()->Alloc((s))
#define OVR_ALLOC_ALIGNED(s, a)   OVR::Allocator::GetInstance()->AllocAligned((s),(a))
#define OVR_ALLOC_DEBUG(s, f, l)   OVR::Allocator::GetInstance()->Alloc((s))
#define OVR_FREE(p)   OVR::Allocator::GetInstance()->Free((p))
#define OVR_FREE_ALIGNED(p)   OVR::Allocator::GetInstance()->FreeAligned((p))
#define OVR_MEMORY_CHECK_DELETE_NONE(class_name, p)
#define OVR_MEMORY_DEFINE_PLACEMENT_NEW
#define OVR_MEMORY_REDEFINE_NEW(class_name)   OVR_MEMORY_REDEFINE_NEW_IMPL(class_name, OVR_MEMORY_CHECK_DELETE_NONE)
#define OVR_MEMORY_REDEFINE_NEW_IMPL(class_name, check_delete)
#define OVR_REALLOC(p, s)   OVR::Allocator::GetInstance()->Realloc((p),(s))

Functions

template<class T >
OVR_FORCE_INLINE T * OVR::Construct (void *p)
template<class T >
OVR_FORCE_INLINE T * OVR::Construct (void *p, const T &source)
template<class T , class S >
OVR_FORCE_INLINE T * OVR::ConstructAlt (void *p, const S &source)
template<class T , class S1 , class S2 >
OVR_FORCE_INLINE T * OVR::ConstructAlt (void *p, const S1 &src1, const S2 &src2)
template<class T >
OVR_FORCE_INLINE void OVR::ConstructArray (void *p, UPInt count)
template<class T >
OVR_FORCE_INLINE void OVR::ConstructArray (void *p, UPInt count, const T &source)
template<class T >
OVR_FORCE_INLINE void OVR::Destruct (T *pobj)
template<class T >
OVR_FORCE_INLINE void OVR::DestructArray (T *pobj, UPInt count)

Define Documentation

#define OVR_ALLOC (   s)    OVR::Allocator::GetInstance()->Alloc((s))

Definition at line 310 of file OVR_Allocator.h.

#define OVR_ALLOC_ALIGNED (   s,
 
)    OVR::Allocator::GetInstance()->AllocAligned((s),(a))

Definition at line 303 of file OVR_Allocator.h.

#define OVR_ALLOC_DEBUG (   s,
  f,
 
)    OVR::Allocator::GetInstance()->Alloc((s))

Definition at line 311 of file OVR_Allocator.h.

#define OVR_FREE (   p)    OVR::Allocator::GetInstance()->Free((p))

Definition at line 302 of file OVR_Allocator.h.

#define OVR_FREE_ALIGNED (   p)    OVR::Allocator::GetInstance()->FreeAligned((p))

Definition at line 304 of file OVR_Allocator.h.

#define OVR_MEMORY_CHECK_DELETE_NONE (   class_name,
 
)

Definition at line 77 of file OVR_Allocator.h.

Value:
void*   operator new        (UPInt n, void *ptr)    { OVR_UNUSED(n); return ptr; }  \
    void    operator delete     (void *ptr, void *ptr2) { OVR_UNUSED2(ptr,ptr2); }

Definition at line 72 of file OVR_Allocator.h.

Definition at line 80 of file OVR_Allocator.h.

#define OVR_MEMORY_REDEFINE_NEW_IMPL (   class_name,
  check_delete 
)
Value:
void*   operator new(UPInt sz)                                                      \
    { void *p = OVR_ALLOC_DEBUG(sz, __FILE__, __LINE__); return p; }                                              \
    void*   operator new(UPInt sz, const char* file, int line)                          \
    { void* p = OVR_ALLOC_DEBUG(sz, file, line); OVR_UNUSED2(file, line); return p; }   \
    void    operator delete(void *p)                                                    \
    { check_delete(class_name, p); OVR_FREE(p); }                                       \
    void    operator delete(void *p, const char*, int)                                  \
    { check_delete(class_name, p); OVR_FREE(p); }

Definition at line 62 of file OVR_Allocator.h.

#define OVR_REALLOC (   p,
 
)    OVR::Allocator::GetInstance()->Realloc((p),(s))

Definition at line 301 of file OVR_Allocator.h.



oculus_sdk
Author(s): Tully Foote
autogenerated on Thu Jun 6 2019 20:13:49