momo  3.9
momo::MemPoolParams< tBlockCount, tCachedFreeBlockCount > Class Template Reference

#include <MemPool.h>

Public Member Functions

 MOMO_STATIC_ASSERT (MemPoolConst::CheckBlockCount(blockCount))
 
 MemPoolParams (size_t blockSize) noexcept
 
 MemPoolParams (size_t blockSize, size_t blockAlignment) noexcept
 
size_t GetBlockSize () const noexcept
 
size_t GetBlockAlignment () const noexcept
 

Static Public Attributes

static const size_t blockCount = tBlockCount
 
static const size_t cachedFreeBlockCount = tCachedFreeBlockCount
 

Protected Attributes

size_t blockSize
 
size_t blockAlignment
 

Constructor & Destructor Documentation

◆ MemPoolParams() [1/2]

template<size_t tBlockCount = MemPoolConst::defaultBlockCount, size_t tCachedFreeBlockCount = MemPoolConst::defaultCachedFreeBlockCount>
momo::MemPoolParams< tBlockCount, tCachedFreeBlockCount >::MemPoolParams ( size_t  blockSize)
inlineexplicitnoexcept

◆ MemPoolParams() [2/2]

template<size_t tBlockCount = MemPoolConst::defaultBlockCount, size_t tCachedFreeBlockCount = MemPoolConst::defaultCachedFreeBlockCount>
momo::MemPoolParams< tBlockCount, tCachedFreeBlockCount >::MemPoolParams ( size_t  blockSize,
size_t  blockAlignment 
)
inlineexplicitnoexcept

Member Function Documentation

◆ GetBlockAlignment()

template<size_t tBlockCount = MemPoolConst::defaultBlockCount, size_t tCachedFreeBlockCount = MemPoolConst::defaultCachedFreeBlockCount>
size_t momo::MemPoolParams< tBlockCount, tCachedFreeBlockCount >::GetBlockAlignment ( ) const
inlinenoexcept

◆ GetBlockSize()

template<size_t tBlockCount = MemPoolConst::defaultBlockCount, size_t tCachedFreeBlockCount = MemPoolConst::defaultCachedFreeBlockCount>
size_t momo::MemPoolParams< tBlockCount, tCachedFreeBlockCount >::GetBlockSize ( ) const
inlinenoexcept

◆ MOMO_STATIC_ASSERT()

template<size_t tBlockCount = MemPoolConst::defaultBlockCount, size_t tCachedFreeBlockCount = MemPoolConst::defaultCachedFreeBlockCount>
momo::MemPoolParams< tBlockCount, tCachedFreeBlockCount >::MOMO_STATIC_ASSERT ( MemPoolConst::CheckBlockCount(blockCount )

Member Data Documentation

◆ blockAlignment

template<size_t tBlockCount = MemPoolConst::defaultBlockCount, size_t tCachedFreeBlockCount = MemPoolConst::defaultCachedFreeBlockCount>
size_t momo::MemPoolParams< tBlockCount, tCachedFreeBlockCount >::blockAlignment
protected

◆ blockCount

template<size_t tBlockCount = MemPoolConst::defaultBlockCount, size_t tCachedFreeBlockCount = MemPoolConst::defaultCachedFreeBlockCount>
const size_t momo::MemPoolParams< tBlockCount, tCachedFreeBlockCount >::blockCount = tBlockCount
static

◆ blockSize

template<size_t tBlockCount = MemPoolConst::defaultBlockCount, size_t tCachedFreeBlockCount = MemPoolConst::defaultCachedFreeBlockCount>
size_t momo::MemPoolParams< tBlockCount, tCachedFreeBlockCount >::blockSize
protected

◆ cachedFreeBlockCount

template<size_t tBlockCount = MemPoolConst::defaultBlockCount, size_t tCachedFreeBlockCount = MemPoolConst::defaultCachedFreeBlockCount>
const size_t momo::MemPoolParams< tBlockCount, tCachedFreeBlockCount >::cachedFreeBlockCount = tCachedFreeBlockCount
static

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