momo  3.9
momo::internal::BucketOpenN1< TItemTraits, tMaxCount, tReverse > Class Template Reference

#include <HashBucketOpenN1.h>

Inheritance diagram for momo::internal::BucketOpenN1< TItemTraits, tMaxCount, tReverse >:
momo::internal::BucketBase

Public Types

typedef ItemTraits::Item Item
 
typedef ItemTraits::MemManager MemManager
 
typedef std::conditional< reverse, std::reverse_iterator< Item * >, Item * >::type Iterator
 
typedef ArrayBounds< IteratorBounds
 
typedef BucketParamsOpen< MemManagerParams
 

Public Member Functions

 MOMO_STATIC_ASSERT (0< maxCount &&maxCount< 8)
 
 BucketOpenN1 () noexcept
 
 BucketOpenN1 (const BucketOpenN1 &)=delete
 
 ~BucketOpenN1 () noexcept
 
BucketOpenN1operator= (const BucketOpenN1 &)=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
 
size_t GetMaxProbe (size_t logBucketCount) const noexcept
 
void UpdateMaxProbe (size_t probe) 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)
 
- 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 = true
 

Protected Types

typedef TItemTraits ItemTraits
 

Protected Member Functions

const void * ptGetData () const noexcept
 
ItemptGetItemPtr (size_t index) noexcept
 

Static Protected Member Functions

static uint8_t ptCalcShortHash (size_t hashCode) noexcept
 

Static Protected Attributes

static const bool reverse = tReverse
 

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, bool tReverse>
typedef ArrayBounds<Iterator> momo::internal::BucketOpenN1< TItemTraits, tMaxCount, tReverse >::Bounds

◆ Item

template<typename TItemTraits , size_t tMaxCount, bool tReverse>
typedef ItemTraits::Item momo::internal::BucketOpenN1< TItemTraits, tMaxCount, tReverse >::Item

◆ ItemTraits

template<typename TItemTraits , size_t tMaxCount, bool tReverse>
typedef TItemTraits momo::internal::BucketOpenN1< TItemTraits, tMaxCount, tReverse >::ItemTraits
protected

◆ Iterator

template<typename TItemTraits , size_t tMaxCount, bool tReverse>
typedef std::conditional<reverse, std::reverse_iterator<Item*>, Item*>::type momo::internal::BucketOpenN1< TItemTraits, tMaxCount, tReverse >::Iterator

◆ MemManager

template<typename TItemTraits , size_t tMaxCount, bool tReverse>
typedef ItemTraits::MemManager momo::internal::BucketOpenN1< TItemTraits, tMaxCount, tReverse >::MemManager

◆ Params

template<typename TItemTraits , size_t tMaxCount, bool tReverse>
typedef BucketParamsOpen<MemManager> momo::internal::BucketOpenN1< TItemTraits, tMaxCount, tReverse >::Params

Constructor & Destructor Documentation

◆ BucketOpenN1() [1/2]

template<typename TItemTraits , size_t tMaxCount, bool tReverse>
momo::internal::BucketOpenN1< TItemTraits, tMaxCount, tReverse >::BucketOpenN1 ( )
inlineexplicitnoexcept

◆ BucketOpenN1() [2/2]

template<typename TItemTraits , size_t tMaxCount, bool tReverse>
momo::internal::BucketOpenN1< TItemTraits, tMaxCount, tReverse >::BucketOpenN1 ( const BucketOpenN1< TItemTraits, tMaxCount, tReverse > &  )
delete

◆ ~BucketOpenN1()

template<typename TItemTraits , size_t tMaxCount, bool tReverse>
momo::internal::BucketOpenN1< TItemTraits, tMaxCount, tReverse >::~BucketOpenN1 ( )
inlinenoexcept

Member Function Documentation

◆ AddCrt()

template<typename TItemTraits , size_t tMaxCount, bool tReverse>
template<typename ItemCreator >
Iterator momo::internal::BucketOpenN1< TItemTraits, tMaxCount, tReverse >::AddCrt ( Params ,
ItemCreator &&  itemCreator,
size_t  hashCode,
size_t  ,
size_t   
)
inlinenoexcept

◆ Clear()

template<typename TItemTraits , size_t tMaxCount, bool tReverse>
void momo::internal::BucketOpenN1< TItemTraits, tMaxCount, tReverse >::Clear ( Params )
inlinenoexcept

◆ Find()

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

◆ GetBounds()

template<typename TItemTraits , size_t tMaxCount, bool tReverse>
Bounds momo::internal::BucketOpenN1< TItemTraits, tMaxCount, tReverse >::GetBounds ( Params )
inlinenoexcept

◆ GetMaxProbe()

template<typename TItemTraits , size_t tMaxCount, bool tReverse>
size_t momo::internal::BucketOpenN1< TItemTraits, tMaxCount, tReverse >::GetMaxProbe ( size_t  logBucketCount) const
inlinenoexcept

◆ IsFull()

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

◆ MOMO_STATIC_ASSERT()

template<typename TItemTraits , size_t tMaxCount, bool tReverse>
momo::internal::BucketOpenN1< TItemTraits, tMaxCount, tReverse >::MOMO_STATIC_ASSERT ( )

◆ operator=()

template<typename TItemTraits , size_t tMaxCount, bool tReverse>
BucketOpenN1& momo::internal::BucketOpenN1< TItemTraits, tMaxCount, tReverse >::operator= ( const BucketOpenN1< TItemTraits, tMaxCount, tReverse > &  )
delete

◆ ptCalcShortHash()

template<typename TItemTraits , size_t tMaxCount, bool tReverse>
static uint8_t momo::internal::BucketOpenN1< TItemTraits, tMaxCount, tReverse >::ptCalcShortHash ( size_t  hashCode)
inlinestaticprotectednoexcept

◆ ptGetData()

template<typename TItemTraits , size_t tMaxCount, bool tReverse>
const void* momo::internal::BucketOpenN1< TItemTraits, tMaxCount, tReverse >::ptGetData ( ) const
inlineprotectednoexcept

◆ ptGetItemPtr()

template<typename TItemTraits , size_t tMaxCount, bool tReverse>
Item* momo::internal::BucketOpenN1< TItemTraits, tMaxCount, tReverse >::ptGetItemPtr ( size_t  index)
inlineprotectednoexcept

◆ Remove()

template<typename TItemTraits , size_t tMaxCount, bool tReverse>
template<typename ItemReplacer >
Iterator momo::internal::BucketOpenN1< TItemTraits, tMaxCount, tReverse >::Remove ( Params ,
Iterator  iter,
ItemReplacer &&  itemReplacer 
)
inline

◆ UpdateMaxProbe()

template<typename TItemTraits , size_t tMaxCount, bool tReverse>
void momo::internal::BucketOpenN1< TItemTraits, tMaxCount, tReverse >::UpdateMaxProbe ( size_t  probe)
inlinenoexcept

◆ WasFull()

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

Member Data Documentation

◆ isNothrowAddableIfNothrowCreatable

template<typename TItemTraits , size_t tMaxCount, bool tReverse>
const bool momo::internal::BucketOpenN1< TItemTraits, tMaxCount, tReverse >::isNothrowAddableIfNothrowCreatable = true
static

◆ maxCount

template<typename TItemTraits , size_t tMaxCount, bool tReverse>
const size_t momo::internal::BucketOpenN1< TItemTraits, tMaxCount, tReverse >::maxCount = tMaxCount
static

◆ reverse

template<typename TItemTraits , size_t tMaxCount, bool tReverse>
const bool momo::internal::BucketOpenN1< TItemTraits, tMaxCount, tReverse >::reverse = tReverse
staticprotected

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