momo  3.9
momo::internal::UIntMath< TUInt > Class Template Reference

#include <Utility.h>

Classes

struct  DivResult
 

Public Types

typedef TUInt UInt
 

Static Public Member Functions

static constexpr UInt Ceil (UInt value, UInt mod) noexcept
 
template<typename Iterator >
static UInt Dist (Iterator begin, Iterator end)
 
template<typename Iterator >
static Iterator Next (Iterator iter, UInt dist)
 
static bool GetBit (const UInt *data, size_t bitIndex)
 
static void SetBit (UInt *data, size_t bitIndex)
 
template<UInt mod>
static DivResult DivByConst (UInt value) noexcept
 
static DivResult DivBySmall (UInt value, UInt mod) noexcept
 
static UInt Log2 (UInt value) noexcept
 

Member Typedef Documentation

◆ UInt

template<typename TUInt = size_t>
typedef TUInt momo::internal::UIntMath< TUInt >::UInt

Member Function Documentation

◆ Ceil()

template<typename TUInt = size_t>
static constexpr UInt momo::internal::UIntMath< TUInt >::Ceil ( UInt  value,
UInt  mod 
)
inlinestaticconstexprnoexcept

◆ Dist()

template<typename TUInt = size_t>
template<typename Iterator >
static UInt momo::internal::UIntMath< TUInt >::Dist ( Iterator  begin,
Iterator  end 
)
inlinestatic

◆ DivByConst()

template<typename TUInt = size_t>
template<UInt mod>
static DivResult momo::internal::UIntMath< TUInt >::DivByConst ( UInt  value)
inlinestaticnoexcept

◆ DivBySmall()

template<typename TUInt = size_t>
static DivResult momo::internal::UIntMath< TUInt >::DivBySmall ( UInt  value,
UInt  mod 
)
inlinestaticnoexcept

◆ GetBit()

template<typename TUInt = size_t>
static bool momo::internal::UIntMath< TUInt >::GetBit ( const UInt data,
size_t  bitIndex 
)
inlinestatic

◆ Log2()

template<typename TUInt = size_t>
static UInt momo::internal::UIntMath< TUInt >::Log2 ( UInt  value)
inlinestaticnoexcept

◆ Next()

template<typename TUInt = size_t>
template<typename Iterator >
static Iterator momo::internal::UIntMath< TUInt >::Next ( Iterator  iter,
UInt  dist 
)
inlinestatic

◆ SetBit()

template<typename TUInt = size_t>
static void momo::internal::UIntMath< TUInt >::SetBit ( UInt data,
size_t  bitIndex 
)
inlinestatic

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