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

#include <HashBucketLimP1.h>

Inheritance diagram for momo::internal::BucketLimP1< TItemTraits, tMaxCount, TMemPoolParams >:
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< 16)
 
 BucketLimP1 () noexcept
 
 BucketLimP1 (const BucketLimP1 &)=delete
 
 ~BucketLimP1 () noexcept
 
BucketLimP1operator= (const BucketLimP1 &)=delete
 
Bounds GetBounds (Params &) noexcept
 
template<bool first, typename ItemPredicate >
MOMO_FORCEINLINE Iterator Find (Params &, const ItemPredicate &itemPred, size_t)
 
bool IsFull () const noexcept
 
bool WasFull () const noexcept
 
void Clear (Params &params) noexcept
 
template<typename ItemCreator >
Iterator AddCrt (Params &params, ItemCreator &&itemCreator, size_t, size_t, size_t)
 
template<typename ItemReplacer >
Iterator Remove (Params &params, Iterator iter, ItemReplacer &&itemReplacer)
 
- 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 Attributes

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

Protected Types

typedef TItemTraits ItemTraits
 
typedef TMemPoolParams MemPoolParams
 

Additional Inherited Members

- 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
 

Member Typedef Documentation

◆ Bounds

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

◆ Item

template<typename TItemTraits , size_t tMaxCount, typename TMemPoolParams >
typedef ItemTraits::Item momo::internal::BucketLimP1< TItemTraits, tMaxCount, TMemPoolParams >::Item

◆ ItemTraits

template<typename TItemTraits , size_t tMaxCount, typename TMemPoolParams >
typedef TItemTraits momo::internal::BucketLimP1< TItemTraits, tMaxCount, TMemPoolParams >::ItemTraits
protected

◆ Iterator

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

◆ MemManager

template<typename TItemTraits , size_t tMaxCount, typename TMemPoolParams >
typedef ItemTraits::MemManager momo::internal::BucketLimP1< TItemTraits, tMaxCount, TMemPoolParams >::MemManager

◆ MemPoolParams

template<typename TItemTraits , size_t tMaxCount, typename TMemPoolParams >
typedef TMemPoolParams momo::internal::BucketLimP1< TItemTraits, tMaxCount, TMemPoolParams >::MemPoolParams
protected

Constructor & Destructor Documentation

◆ BucketLimP1() [1/2]

template<typename TItemTraits , size_t tMaxCount, typename TMemPoolParams >
momo::internal::BucketLimP1< TItemTraits, tMaxCount, TMemPoolParams >::BucketLimP1 ( )
inlineexplicitnoexcept

◆ BucketLimP1() [2/2]

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

◆ ~BucketLimP1()

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

Member Function Documentation

◆ AddCrt()

template<typename TItemTraits , size_t tMaxCount, typename TMemPoolParams >
template<typename ItemCreator >
Iterator momo::internal::BucketLimP1< TItemTraits, tMaxCount, TMemPoolParams >::AddCrt ( Params params,
ItemCreator &&  itemCreator,
size_t  ,
size_t  ,
size_t   
)
inline

◆ Clear()

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

◆ Find()

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

◆ GetBounds()

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

◆ IsFull()

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

◆ MOMO_STATIC_ASSERT()

template<typename TItemTraits , size_t tMaxCount, typename TMemPoolParams >
momo::internal::BucketLimP1< TItemTraits, tMaxCount, TMemPoolParams >::MOMO_STATIC_ASSERT ( )

◆ operator=()

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

◆ Remove()

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

◆ WasFull()

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

Member Data Documentation

◆ isNothrowAddableIfNothrowCreatable

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

◆ maxCount

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

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