momo  3.9
momo::internal::MemManagerProxy< TMemManager > Class Template Reference

#include <MemManager.h>

Public Types

typedef TMemManager MemManager
 

Public Member Functions

 MOMO_STATIC_ASSERT (std::is_nothrow_move_constructible< MemManager >::value)
 

Static Public Member Functions

template<typename ResObject = void>
static ResObject * Allocate (MemManager &memManager, size_t size)
 
template<typename ResObject , typename... ResObjectArgs>
static ResObject * AllocateCreate (MemManager &memManager, ResObjectArgs &&... resObjectArgs)
 
static void Deallocate (MemManager &memManager, void *ptr, size_t size) noexcept
 
template<typename ResObject = void>
static ResObject * Reallocate (MemManager &memManager, void *ptr, size_t size, size_t newSize)
 
static bool ReallocateInplace (MemManager &memManager, void *ptr, size_t size, size_t newSize) noexcept
 
static bool IsEqual (const MemManager &memManager1, const MemManager &memManager2) noexcept
 
static void Assign (MemManager &&srcMemManager, MemManager &dstMemManager) noexcept
 

Static Public Attributes

static const bool canReallocate = CanReallocate<MemManager>::value
 
static const bool canReallocateInplace = CanReallocateInplace<MemManager>::value
 
static const size_t ptrUsefulBitCount = PtrUsefulBitCount<MemManager>::value
 

Member Typedef Documentation

◆ MemManager

template<typename TMemManager >
typedef TMemManager momo::internal::MemManagerProxy< TMemManager >::MemManager

Member Function Documentation

◆ Allocate()

template<typename TMemManager >
template<typename ResObject = void>
static ResObject* momo::internal::MemManagerProxy< TMemManager >::Allocate ( MemManager memManager,
size_t  size 
)
inlinestatic

◆ AllocateCreate()

template<typename TMemManager >
template<typename ResObject , typename... ResObjectArgs>
static ResObject* momo::internal::MemManagerProxy< TMemManager >::AllocateCreate ( MemManager memManager,
ResObjectArgs &&...  resObjectArgs 
)
inlinestatic

◆ Assign()

template<typename TMemManager >
static void momo::internal::MemManagerProxy< TMemManager >::Assign ( MemManager &&  srcMemManager,
MemManager dstMemManager 
)
inlinestaticnoexcept

◆ Deallocate()

template<typename TMemManager >
static void momo::internal::MemManagerProxy< TMemManager >::Deallocate ( MemManager memManager,
void *  ptr,
size_t  size 
)
inlinestaticnoexcept

◆ IsEqual()

template<typename TMemManager >
static bool momo::internal::MemManagerProxy< TMemManager >::IsEqual ( const MemManager memManager1,
const MemManager memManager2 
)
inlinestaticnoexcept

◆ MOMO_STATIC_ASSERT()

template<typename TMemManager >
momo::internal::MemManagerProxy< TMemManager >::MOMO_STATIC_ASSERT ( std::is_nothrow_move_constructible< MemManager >::value  )

◆ Reallocate()

template<typename TMemManager >
template<typename ResObject = void>
static ResObject* momo::internal::MemManagerProxy< TMemManager >::Reallocate ( MemManager memManager,
void *  ptr,
size_t  size,
size_t  newSize 
)
inlinestatic

◆ ReallocateInplace()

template<typename TMemManager >
static bool momo::internal::MemManagerProxy< TMemManager >::ReallocateInplace ( MemManager memManager,
void *  ptr,
size_t  size,
size_t  newSize 
)
inlinestaticnoexcept

Member Data Documentation

◆ canReallocate

template<typename TMemManager >
const bool momo::internal::MemManagerProxy< TMemManager >::canReallocate = CanReallocate<MemManager>::value
static

◆ canReallocateInplace

template<typename TMemManager >
const bool momo::internal::MemManagerProxy< TMemManager >::canReallocateInplace = CanReallocateInplace<MemManager>::value
static

◆ ptrUsefulBitCount

template<typename TMemManager >
const size_t momo::internal::MemManagerProxy< TMemManager >::ptrUsefulBitCount = PtrUsefulBitCount<MemManager>::value
static

The documentation for this class was generated from the following file: