momo  3.9
momo::MemPoolConst Class Reference

#include <MemPool.h>

Static Public Member Functions

static constexpr size_t GetBlockAlignment (size_t blockSize, size_t maxAlignment=momo::internal::UIntConst::maxAlignment) noexcept
 
static constexpr size_t CorrectBlockSize (size_t blockSize, size_t blockAlignment, size_t blockCount) noexcept
 
static constexpr bool CheckBlockCount (size_t blockCount) noexcept
 
static constexpr bool CheckBlockAlignment (size_t blockAlignment) noexcept
 

Static Public Attributes

static const size_t defaultBlockCount = MOMO_DEFAULT_MEM_POOL_BLOCK_COUNT
 
static const size_t defaultCachedFreeBlockCount = MOMO_DEFAULT_MEM_POOL_CACHED_FREE_BLOCK_COUNT
 

Member Function Documentation

◆ CheckBlockAlignment()

static constexpr bool momo::MemPoolConst::CheckBlockAlignment ( size_t  blockAlignment)
inlinestaticconstexprnoexcept

◆ CheckBlockCount()

static constexpr bool momo::MemPoolConst::CheckBlockCount ( size_t  blockCount)
inlinestaticconstexprnoexcept

◆ CorrectBlockSize()

static constexpr size_t momo::MemPoolConst::CorrectBlockSize ( size_t  blockSize,
size_t  blockAlignment,
size_t  blockCount 
)
inlinestaticconstexprnoexcept

◆ GetBlockAlignment()

static constexpr size_t momo::MemPoolConst::GetBlockAlignment ( size_t  blockSize,
size_t  maxAlignment = momo::internal::UIntConst::maxAlignment 
)
inlinestaticconstexprnoexcept

Member Data Documentation

◆ defaultBlockCount

const size_t momo::MemPoolConst::defaultBlockCount = MOMO_DEFAULT_MEM_POOL_BLOCK_COUNT
static

◆ defaultCachedFreeBlockCount

const size_t momo::MemPoolConst::defaultCachedFreeBlockCount = MOMO_DEFAULT_MEM_POOL_CACHED_FREE_BLOCK_COUNT
static

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