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 75 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 81 of file hash_set.hh.

◆ ~Pool()

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

Definition at line 102 of file hash_set.hh.

Member Function Documentation

◆ capacity()

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

Definition at line 160 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

Definition at line 127 of file hash_set.hh.

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

◆ destroy()

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

Definition at line 140 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 115 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 91 of file hash_set.hh.

◆ reserve()

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

Definition at line 165 of file hash_set.hh.

References LZ4::count().

Friends And Related Function Documentation

◆ swap

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

Definition at line 176 of file hash_set.hh.


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