momo  3.9
momo::internal::BucketOne< TItemTraits, tMinStateSize > Class Template Reference

#include <HashBucketOne.h>

Inheritance diagram for momo::internal::BucketOne< TItemTraits, tMinStateSize >:
momo::internal::BucketBase

Public Types

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

Public Member Functions

 BucketOne () noexcept
 
 BucketOne (const BucketOne &)=delete
 
 ~BucketOne () noexcept
 
BucketOneoperator= (const BucketOne &)=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 &) noexcept
 
template<typename ItemCreator >
Iterator AddCrt (Params &, ItemCreator &&itemCreator, size_t hashCode, size_t, size_t) noexcept(noexcept(std::forward< ItemCreator >(itemCreator)(std::declval< Item * >())))
 
template<typename ItemReplacer >
Iterator Remove (Params &, Iterator iter, ItemReplacer &&itemReplacer)
 
template<typename HashCodeFullGetter >
size_t GetHashCodePart (const HashCodeFullGetter &hashCodeFullGetter, Iterator iter, size_t, size_t, size_t)
 
- 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 = 1
 
static const bool isNothrowAddableIfNothrowCreatable = true
 

Protected Types

typedef TItemTraits ItemTraits
 

Protected Member Functions

 MOMO_STATIC_ASSERT (0< minStateSize &&minStateSize<=sizeof(size_t))
 

Static Protected Attributes

static const size_t minStateSize = tMinStateSize
 

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 tMinStateSize>
typedef ArrayBounds<Iterator> momo::internal::BucketOne< TItemTraits, tMinStateSize >::Bounds

◆ Item

template<typename TItemTraits , size_t tMinStateSize>
typedef ItemTraits::Item momo::internal::BucketOne< TItemTraits, tMinStateSize >::Item

◆ ItemTraits

template<typename TItemTraits , size_t tMinStateSize>
typedef TItemTraits momo::internal::BucketOne< TItemTraits, tMinStateSize >::ItemTraits
protected

◆ Iterator

template<typename TItemTraits , size_t tMinStateSize>
typedef Item* momo::internal::BucketOne< TItemTraits, tMinStateSize >::Iterator

◆ MemManager

template<typename TItemTraits , size_t tMinStateSize>
typedef ItemTraits::MemManager momo::internal::BucketOne< TItemTraits, tMinStateSize >::MemManager

◆ Params

template<typename TItemTraits , size_t tMinStateSize>
typedef BucketParamsOpen<MemManager> momo::internal::BucketOne< TItemTraits, tMinStateSize >::Params

Constructor & Destructor Documentation

◆ BucketOne() [1/2]

template<typename TItemTraits , size_t tMinStateSize>
momo::internal::BucketOne< TItemTraits, tMinStateSize >::BucketOne ( )
inlineexplicitnoexcept

◆ BucketOne() [2/2]

template<typename TItemTraits , size_t tMinStateSize>
momo::internal::BucketOne< TItemTraits, tMinStateSize >::BucketOne ( const BucketOne< TItemTraits, tMinStateSize > &  )
delete

◆ ~BucketOne()

template<typename TItemTraits , size_t tMinStateSize>
momo::internal::BucketOne< TItemTraits, tMinStateSize >::~BucketOne ( )
inlinenoexcept

Member Function Documentation

◆ AddCrt()

template<typename TItemTraits , size_t tMinStateSize>
template<typename ItemCreator >
Iterator momo::internal::BucketOne< TItemTraits, tMinStateSize >::AddCrt ( Params ,
ItemCreator &&  itemCreator,
size_t  hashCode,
size_t  ,
size_t   
)
inlinenoexcept

◆ Clear()

template<typename TItemTraits , size_t tMinStateSize>
void momo::internal::BucketOne< TItemTraits, tMinStateSize >::Clear ( Params )
inlinenoexcept

◆ Find()

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

◆ GetBounds()

template<typename TItemTraits , size_t tMinStateSize>
Bounds momo::internal::BucketOne< TItemTraits, tMinStateSize >::GetBounds ( Params )
inlinenoexcept

◆ GetHashCodePart()

template<typename TItemTraits , size_t tMinStateSize>
template<typename HashCodeFullGetter >
size_t momo::internal::BucketOne< TItemTraits, tMinStateSize >::GetHashCodePart ( const HashCodeFullGetter &  hashCodeFullGetter,
Iterator  iter,
size_t  ,
size_t  ,
size_t   
)
inline

◆ IsFull()

template<typename TItemTraits , size_t tMinStateSize>
bool momo::internal::BucketOne< TItemTraits, tMinStateSize >::IsFull ( ) const
inlinenoexcept

◆ MOMO_STATIC_ASSERT()

template<typename TItemTraits , size_t tMinStateSize>
momo::internal::BucketOne< TItemTraits, tMinStateSize >::MOMO_STATIC_ASSERT ( )
protected

◆ operator=()

template<typename TItemTraits , size_t tMinStateSize>
BucketOne& momo::internal::BucketOne< TItemTraits, tMinStateSize >::operator= ( const BucketOne< TItemTraits, tMinStateSize > &  )
delete

◆ Remove()

template<typename TItemTraits , size_t tMinStateSize>
template<typename ItemReplacer >
Iterator momo::internal::BucketOne< TItemTraits, tMinStateSize >::Remove ( Params ,
Iterator  iter,
ItemReplacer &&  itemReplacer 
)
inline

◆ WasFull()

template<typename TItemTraits , size_t tMinStateSize>
bool momo::internal::BucketOne< TItemTraits, tMinStateSize >::WasFull ( ) const
inlinenoexcept

Member Data Documentation

◆ isNothrowAddableIfNothrowCreatable

template<typename TItemTraits , size_t tMinStateSize>
const bool momo::internal::BucketOne< TItemTraits, tMinStateSize >::isNothrowAddableIfNothrowCreatable = true
static

◆ maxCount

template<typename TItemTraits , size_t tMinStateSize>
const size_t momo::internal::BucketOne< TItemTraits, tMinStateSize >::maxCount = 1
static

◆ minStateSize

template<typename TItemTraits , size_t tMinStateSize>
const size_t momo::internal::BucketOne< TItemTraits, tMinStateSize >::minStateSize = tMinStateSize
staticprotected

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