openMSX
Public Member Functions | Friends | List of all members
hash_set_impl::Pool< Value > Class Template Reference

#include <hash_set.hh>

Inheritance diagram for hash_set_impl::Pool< Value >:
Inheritance graph
[legend]

Public Member Functions

 Pool ()=default
 
 Pool (Pool &&source) noexcept
 
Pooloperator= (Pool &&source) noexcept
 
 ~Pool ()
 
Elemget (PoolIndex idx)
 
const Elemget (PoolIndex idx) const
 
template<typename V >
PoolIndex create (V &&value, unsigned hash, PoolIndex nextIdx)
 
void destroy (PoolIndex idx)
 
template<typename... Args>
PoolIndex emplace (Args &&... args)
 
unsigned capacity () const
 
void reserve (unsigned count)
 

Friends

void swap (Pool &x, Pool &y) noexcept
 

Detailed Description

template<typename Value>
class hash_set_impl::Pool< Value >

Definition at line 74 of file hash_set.hh.

Constructor & Destructor Documentation

◆ Pool() [1/2]

template<typename Value >
hash_set_impl::Pool< Value >::Pool ( )
default

◆ Pool() [2/2]

template<typename Value >
hash_set_impl::Pool< Value >::Pool ( Pool< Value > &&  source)
inlinenoexcept

Definition at line 80 of file hash_set.hh.

References hash_set_impl::invalidIndex.

◆ ~Pool()

template<typename Value >
hash_set_impl::Pool< Value >::~Pool ( )
inline

Definition at line 101 of file hash_set.hh.

Member Function Documentation

◆ capacity()

template<typename Value >
unsigned hash_set_impl::Pool< Value >::capacity ( ) const
inline

Definition at line 159 of file hash_set.hh.

◆ create()

template<typename Value >
template<typename V >
PoolIndex hash_set_impl::Pool< Value >::create ( V &&  value,
unsigned  hash,
PoolIndex  nextIdx 
)
inline

◆ destroy()

template<typename Value >
void hash_set_impl::Pool< Value >::destroy ( PoolIndex  idx)
inline

Definition at line 139 of file hash_set.hh.

References hash_set_impl::Pool< Value >::get().

◆ emplace()

template<typename Value >
template<typename... Args>
PoolIndex hash_set_impl::Pool< Value >::emplace ( Args &&...  args)
inline

◆ get() [1/2]

template<typename Value >
Elem & hash_set_impl::Pool< Value >::get ( PoolIndex  idx)
inline

◆ get() [2/2]

template<typename Value >
const Elem & hash_set_impl::Pool< Value >::get ( PoolIndex  idx) const
inline

Definition at line 114 of file hash_set.hh.

References hash_set_impl::Pool< Value >::get().

◆ operator=()

template<typename Value >
Pool & hash_set_impl::Pool< Value >::operator= ( Pool< Value > &&  source)
inlinenoexcept

Definition at line 90 of file hash_set.hh.

References hash_set_impl::invalidIndex.

◆ reserve()

template<typename Value >
void hash_set_impl::Pool< Value >::reserve ( unsigned  count)
inline

Definition at line 164 of file hash_set.hh.

Friends And Related Symbol Documentation

◆ swap

template<typename Value >
void swap ( Pool< Value > &  x,
Pool< Value > &  y 
)
friend

Definition at line 175 of file hash_set.hh.


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