momo  3.9
momo::internal::MemPoolUInt32< tBlockCount, TMemManager > Class Template Reference

#include <MemPool.h>

Public Types

typedef TMemManager MemManager
 

Public Member Functions

 MOMO_STATIC_ASSERT (blockCount > 0)
 
 MemPoolUInt32 (size_t blockSize, MemManager &&memManager, size_t maxTotalBlockCount)
 
 MemPoolUInt32 (const MemPoolUInt32 &)=delete
 
 ~MemPoolUInt32 () noexcept
 
MemPoolUInt32operator= (const MemPoolUInt32 &)=delete
 
const MemManagerGetMemManager () const noexcept
 
MemManagerGetMemManager () noexcept
 
template<typename ResObject = void>
ResObject * GetRealPointer (uint32_t block) noexcept
 
uint32_t Allocate ()
 
void Deallocate (uint32_t block) noexcept
 
void DeallocateAll () noexcept
 

Static Public Attributes

static const size_t blockCount = tBlockCount
 
static const uint32_t nullPtr = UIntConst::max32
 

Member Typedef Documentation

◆ MemManager

template<size_t tBlockCount, typename TMemManager >
typedef TMemManager momo::internal::MemPoolUInt32< tBlockCount, TMemManager >::MemManager

Constructor & Destructor Documentation

◆ MemPoolUInt32() [1/2]

template<size_t tBlockCount, typename TMemManager >
momo::internal::MemPoolUInt32< tBlockCount, TMemManager >::MemPoolUInt32 ( size_t  blockSize,
MemManager &&  memManager,
size_t  maxTotalBlockCount 
)
inlineexplicit

◆ MemPoolUInt32() [2/2]

template<size_t tBlockCount, typename TMemManager >
momo::internal::MemPoolUInt32< tBlockCount, TMemManager >::MemPoolUInt32 ( const MemPoolUInt32< tBlockCount, TMemManager > &  )
delete

◆ ~MemPoolUInt32()

template<size_t tBlockCount, typename TMemManager >
momo::internal::MemPoolUInt32< tBlockCount, TMemManager >::~MemPoolUInt32 ( )
inlinenoexcept

Member Function Documentation

◆ Allocate()

template<size_t tBlockCount, typename TMemManager >
uint32_t momo::internal::MemPoolUInt32< tBlockCount, TMemManager >::Allocate ( )
inline

◆ Deallocate()

template<size_t tBlockCount, typename TMemManager >
void momo::internal::MemPoolUInt32< tBlockCount, TMemManager >::Deallocate ( uint32_t  block)
inlinenoexcept

◆ DeallocateAll()

template<size_t tBlockCount, typename TMemManager >
void momo::internal::MemPoolUInt32< tBlockCount, TMemManager >::DeallocateAll ( )
inlinenoexcept

◆ GetMemManager() [1/2]

template<size_t tBlockCount, typename TMemManager >
const MemManager& momo::internal::MemPoolUInt32< tBlockCount, TMemManager >::GetMemManager ( ) const
inlinenoexcept

◆ GetMemManager() [2/2]

template<size_t tBlockCount, typename TMemManager >
MemManager& momo::internal::MemPoolUInt32< tBlockCount, TMemManager >::GetMemManager ( )
inlinenoexcept

◆ GetRealPointer()

template<size_t tBlockCount, typename TMemManager >
template<typename ResObject = void>
ResObject* momo::internal::MemPoolUInt32< tBlockCount, TMemManager >::GetRealPointer ( uint32_t  block)
inlinenoexcept

◆ MOMO_STATIC_ASSERT()

template<size_t tBlockCount, typename TMemManager >
momo::internal::MemPoolUInt32< tBlockCount, TMemManager >::MOMO_STATIC_ASSERT ( blockCount  ,
 
)

◆ operator=()

template<size_t tBlockCount, typename TMemManager >
MemPoolUInt32& momo::internal::MemPoolUInt32< tBlockCount, TMemManager >::operator= ( const MemPoolUInt32< tBlockCount, TMemManager > &  )
delete

Member Data Documentation

◆ blockCount

template<size_t tBlockCount, typename TMemManager >
const size_t momo::internal::MemPoolUInt32< tBlockCount, TMemManager >::blockCount = tBlockCount
static

◆ nullPtr

template<size_t tBlockCount, typename TMemManager >
const uint32_t momo::internal::MemPoolUInt32< tBlockCount, TMemManager >::nullPtr = UIntConst::max32
static

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