momo  3.9
momo::internal::BucketLimP4< TItemTraits, tMaxCount, TMemPoolParams, tUseHashCodePartGetter > Class Template Reference

#include <HashBucketLimP4.h>

Inheritance diagram for momo::internal::BucketLimP4< TItemTraits, tMaxCount, TMemPoolParams, tUseHashCodePartGetter >:
momo::internal::BucketBase

Classes

class  Params
 

Public Types

typedef ItemTraits::Item Item
 
typedef ItemTraits::MemManager MemManager
 
typedef ItemIterator
 
typedef ArrayBounds< IteratorBounds
 

Public Member Functions

 MOMO_STATIC_ASSERT (0< maxCount &&maxCount<=4)
 
 BucketLimP4 () noexcept
 
 BucketLimP4 (const BucketLimP4 &)=delete
 
 ~BucketLimP4 () noexcept
 
BucketLimP4operator= (const BucketLimP4 &)=delete
 
Bounds GetBounds (Params &) noexcept
 
template<bool first, typename ItemPredicate >
MOMO_FORCEINLINE Iterator Find (Params &, const ItemPredicate &itemPred, size_t hashCode)
 
bool IsFull () const noexcept
 
bool WasFull () const noexcept
 
void Clear (Params &params) noexcept
 
template<typename ItemCreator >
Iterator AddCrt (Params &params, ItemCreator &&itemCreator, size_t hashCode, size_t logBucketCount, size_t probe)
 
template<typename ItemReplacer >
Iterator Remove (Params &params, Iterator iter, ItemReplacer &&itemReplacer)
 
template<typename HashCodeFullGetter >
size_t GetHashCodePart (const HashCodeFullGetter &hashCodeFullGetter, Iterator iter, size_t bucketIndex, size_t logBucketCount, size_t newLogBucketCount)
 
- Public Member Functions inherited from momo::internal::BucketBase
size_t GetMaxProbe (size_t logBucketCount) const noexcept
 
void UpdateMaxProbe (size_t) noexcept
 
template<typename HashCodeFullGetter , typename Iterator >
size_t GetHashCodePart (const HashCodeFullGetter &hashCodeFullGetter, Iterator, size_t, size_t, size_t)
 

Static Public Member Functions

static size_t GetNextBucketIndex (size_t bucketIndex, size_t, size_t bucketCount, size_t) noexcept
 
- Static Public Member Functions inherited from momo::internal::BucketBase
static size_t GetStartBucketIndex (size_t hashCode, size_t bucketCount) noexcept
 
static size_t GetNextBucketIndex (size_t bucketIndex, size_t, size_t bucketCount, size_t) noexcept
 

Static Public Attributes

static const size_t maxCount = tMaxCount
 
static const bool isNothrowAddableIfNothrowCreatable = false
 

Protected Types

typedef TItemTraits ItemTraits
 
typedef TMemPoolParams MemPoolParams
 

Static Protected Attributes

static const bool useHashCodePartGetter = tUseHashCodePartGetter
 

Member Typedef Documentation

◆ Bounds

template<typename TItemTraits , size_t tMaxCount, typename TMemPoolParams , bool tUseHashCodePartGetter>
typedef ArrayBounds<Iterator> momo::internal::BucketLimP4< TItemTraits, tMaxCount, TMemPoolParams, tUseHashCodePartGetter >::Bounds

◆ Item

template<typename TItemTraits , size_t tMaxCount, typename TMemPoolParams , bool tUseHashCodePartGetter>
typedef ItemTraits::Item momo::internal::BucketLimP4< TItemTraits, tMaxCount, TMemPoolParams, tUseHashCodePartGetter >::Item

◆ ItemTraits

template<typename TItemTraits , size_t tMaxCount, typename TMemPoolParams , bool tUseHashCodePartGetter>
typedef TItemTraits momo::internal::BucketLimP4< TItemTraits, tMaxCount, TMemPoolParams, tUseHashCodePartGetter >::ItemTraits
protected

◆ Iterator

template<typename TItemTraits , size_t tMaxCount, typename TMemPoolParams , bool tUseHashCodePartGetter>
typedef Item* momo::internal::BucketLimP4< TItemTraits, tMaxCount, TMemPoolParams, tUseHashCodePartGetter >::Iterator

◆ MemManager

template<typename TItemTraits , size_t tMaxCount, typename TMemPoolParams , bool tUseHashCodePartGetter>
typedef ItemTraits::MemManager momo::internal::BucketLimP4< TItemTraits, tMaxCount, TMemPoolParams, tUseHashCodePartGetter >::MemManager

◆ MemPoolParams

template<typename TItemTraits , size_t tMaxCount, typename TMemPoolParams , bool tUseHashCodePartGetter>
typedef TMemPoolParams momo::internal::BucketLimP4< TItemTraits, tMaxCount, TMemPoolParams, tUseHashCodePartGetter >::MemPoolParams
protected

Constructor & Destructor Documentation

◆ BucketLimP4() [1/2]

template<typename TItemTraits , size_t tMaxCount, typename TMemPoolParams , bool tUseHashCodePartGetter>
momo::internal::BucketLimP4< TItemTraits, tMaxCount, TMemPoolParams, tUseHashCodePartGetter >::BucketLimP4 ( )
inlineexplicitnoexcept

◆ BucketLimP4() [2/2]

template<typename TItemTraits , size_t tMaxCount, typename TMemPoolParams , bool tUseHashCodePartGetter>
momo::internal::BucketLimP4< TItemTraits, tMaxCount, TMemPoolParams, tUseHashCodePartGetter >::BucketLimP4 ( const BucketLimP4< TItemTraits, tMaxCount, TMemPoolParams, tUseHashCodePartGetter > &  )
delete

◆ ~BucketLimP4()

template<typename TItemTraits , size_t tMaxCount, typename TMemPoolParams , bool tUseHashCodePartGetter>
momo::internal::BucketLimP4< TItemTraits, tMaxCount, TMemPoolParams, tUseHashCodePartGetter >::~BucketLimP4 ( )
inlinenoexcept

Member Function Documentation

◆ AddCrt()

template<typename TItemTraits , size_t tMaxCount, typename TMemPoolParams , bool tUseHashCodePartGetter>
template<typename ItemCreator >
Iterator momo::internal::BucketLimP4< TItemTraits, tMaxCount, TMemPoolParams, tUseHashCodePartGetter >::AddCrt ( Params params,
ItemCreator &&  itemCreator,
size_t  hashCode,
size_t  logBucketCount,
size_t  probe 
)
inline

◆ Clear()

template<typename TItemTraits , size_t tMaxCount, typename TMemPoolParams , bool tUseHashCodePartGetter>
void momo::internal::BucketLimP4< TItemTraits, tMaxCount, TMemPoolParams, tUseHashCodePartGetter >::Clear ( Params params)
inlinenoexcept

◆ Find()

template<typename TItemTraits , size_t tMaxCount, typename TMemPoolParams , bool tUseHashCodePartGetter>
template<bool first, typename ItemPredicate >
MOMO_FORCEINLINE Iterator momo::internal::BucketLimP4< TItemTraits, tMaxCount, TMemPoolParams, tUseHashCodePartGetter >::Find ( Params ,
const ItemPredicate &  itemPred,
size_t  hashCode 
)
inline

◆ GetBounds()

template<typename TItemTraits , size_t tMaxCount, typename TMemPoolParams , bool tUseHashCodePartGetter>
Bounds momo::internal::BucketLimP4< TItemTraits, tMaxCount, TMemPoolParams, tUseHashCodePartGetter >::GetBounds ( Params )
inlinenoexcept

◆ GetHashCodePart()

template<typename TItemTraits , size_t tMaxCount, typename TMemPoolParams , bool tUseHashCodePartGetter>
template<typename HashCodeFullGetter >
size_t momo::internal::BucketLimP4< TItemTraits, tMaxCount, TMemPoolParams, tUseHashCodePartGetter >::GetHashCodePart ( const HashCodeFullGetter &  hashCodeFullGetter,
Iterator  iter,
size_t  bucketIndex,
size_t  logBucketCount,
size_t  newLogBucketCount 
)
inline

◆ GetNextBucketIndex()

template<typename TItemTraits , size_t tMaxCount, typename TMemPoolParams , bool tUseHashCodePartGetter>
static size_t momo::internal::BucketLimP4< TItemTraits, tMaxCount, TMemPoolParams, tUseHashCodePartGetter >::GetNextBucketIndex ( size_t  bucketIndex,
size_t  ,
size_t  bucketCount,
size_t   
)
inlinestaticnoexcept

◆ IsFull()

template<typename TItemTraits , size_t tMaxCount, typename TMemPoolParams , bool tUseHashCodePartGetter>
bool momo::internal::BucketLimP4< TItemTraits, tMaxCount, TMemPoolParams, tUseHashCodePartGetter >::IsFull ( ) const
inlinenoexcept

◆ MOMO_STATIC_ASSERT()

template<typename TItemTraits , size_t tMaxCount, typename TMemPoolParams , bool tUseHashCodePartGetter>
momo::internal::BucketLimP4< TItemTraits, tMaxCount, TMemPoolParams, tUseHashCodePartGetter >::MOMO_STATIC_ASSERT ( )

◆ operator=()

template<typename TItemTraits , size_t tMaxCount, typename TMemPoolParams , bool tUseHashCodePartGetter>
BucketLimP4& momo::internal::BucketLimP4< TItemTraits, tMaxCount, TMemPoolParams, tUseHashCodePartGetter >::operator= ( const BucketLimP4< TItemTraits, tMaxCount, TMemPoolParams, tUseHashCodePartGetter > &  )
delete

◆ Remove()

template<typename TItemTraits , size_t tMaxCount, typename TMemPoolParams , bool tUseHashCodePartGetter>
template<typename ItemReplacer >
Iterator momo::internal::BucketLimP4< TItemTraits, tMaxCount, TMemPoolParams, tUseHashCodePartGetter >::Remove ( Params params,
Iterator  iter,
ItemReplacer &&  itemReplacer 
)
inline

◆ WasFull()

template<typename TItemTraits , size_t tMaxCount, typename TMemPoolParams , bool tUseHashCodePartGetter>
bool momo::internal::BucketLimP4< TItemTraits, tMaxCount, TMemPoolParams, tUseHashCodePartGetter >::WasFull ( ) const
inlinenoexcept

Member Data Documentation

◆ isNothrowAddableIfNothrowCreatable

template<typename TItemTraits , size_t tMaxCount, typename TMemPoolParams , bool tUseHashCodePartGetter>
const bool momo::internal::BucketLimP4< TItemTraits, tMaxCount, TMemPoolParams, tUseHashCodePartGetter >::isNothrowAddableIfNothrowCreatable = false
static

◆ maxCount

template<typename TItemTraits , size_t tMaxCount, typename TMemPoolParams , bool tUseHashCodePartGetter>
const size_t momo::internal::BucketLimP4< TItemTraits, tMaxCount, TMemPoolParams, tUseHashCodePartGetter >::maxCount = tMaxCount
static

◆ useHashCodePartGetter

template<typename TItemTraits , size_t tMaxCount, typename TMemPoolParams , bool tUseHashCodePartGetter>
const bool momo::internal::BucketLimP4< TItemTraits, tMaxCount, TMemPoolParams, tUseHashCodePartGetter >::useHashCodePartGetter = tUseHashCodePartGetter
staticprotected

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