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 ()
 
 Pool (Pool &&source) noexcept
 
Pooloperator= (Pool &&source) noexcept
 
 ~Pool ()
 
Elemget (unsigned idx)
 
const Elemget (unsigned idx) const
 
template<typename V >
unsigned create (V &&value, unsigned hash, unsigned nextIdx)
 
void destroy (unsigned idx)
 
template<typename... Args>
unsigned 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 94 of file hash_set.hh.

Constructor & Destructor Documentation

◆ Pool() [1/2]

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

Definition at line 98 of file hash_set.hh.

◆ Pool() [2/2]

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

Definition at line 103 of file hash_set.hh.

◆ ~Pool()

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

Definition at line 124 of file hash_set.hh.

Member Function Documentation

◆ capacity()

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

Definition at line 184 of file hash_set.hh.

◆ create()

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

Definition at line 151 of file hash_set.hh.

◆ destroy()

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

Definition at line 164 of file hash_set.hh.

◆ emplace()

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

Definition at line 174 of file hash_set.hh.

◆ get() [1/2]

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

Definition at line 133 of file hash_set.hh.

Referenced by hash_set_impl::Pool< openmsx::Command *>::get().

◆ get() [2/2]

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

Definition at line 139 of file hash_set.hh.

◆ operator=()

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

Definition at line 113 of file hash_set.hh.

◆ reserve()

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

Definition at line 189 of file hash_set.hh.

Friends And Related Function Documentation

◆ swap

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

Definition at line 197 of file hash_set.hh.


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