openMSX
Public Member Functions | List of all members
SimpleHashSet< InvalidValue, Hasher, Equality > Class Template Reference

#include <SimpleHashSet.hh>

Inheritance diagram for SimpleHashSet< InvalidValue, Hasher, Equality >:
Inheritance graph
[legend]

Public Member Functions

 SimpleHashSet (Hasher hasher_={}, Equality equality_={})
 
 SimpleHashSet (const SimpleHashSet &)=delete
 
 SimpleHashSet (SimpleHashSet &&)=delete
 
SimpleHashSetoperator= (const SimpleHashSet &)=delete
 
SimpleHashSetoperator= (SimpleHashSet &&)=delete
 
 ~SimpleHashSet ()
 
void reserve (size_t n)
 
size_t capacity () const
 
size_t size () const
 
bool empty () const
 
template<typename Value2 >
bool insert (Value2 &&val)
 
template<typename Value2 >
bool erase (const Value2 &val)
 
template<typename Value2 >
Value * find (const Value2 &val) const
 
template<typename Value2 >
bool contains (const Value2 &val) const
 

Detailed Description

template<auto InvalidValue, typename Hasher, typename Equality>
class SimpleHashSet< InvalidValue, Hasher, Equality >

Definition at line 39 of file SimpleHashSet.hh.

Constructor & Destructor Documentation

◆ SimpleHashSet() [1/3]

template<auto InvalidValue, typename Hasher , typename Equality >
SimpleHashSet< InvalidValue, Hasher, Equality >::SimpleHashSet ( Hasher  hasher_ = {},
Equality  equality_ = {} 
)
inline

Definition at line 43 of file SimpleHashSet.hh.

◆ SimpleHashSet() [2/3]

template<auto InvalidValue, typename Hasher , typename Equality >
SimpleHashSet< InvalidValue, Hasher, Equality >::SimpleHashSet ( const SimpleHashSet< InvalidValue, Hasher, Equality > &  )
delete

◆ SimpleHashSet() [3/3]

template<auto InvalidValue, typename Hasher , typename Equality >
SimpleHashSet< InvalidValue, Hasher, Equality >::SimpleHashSet ( SimpleHashSet< InvalidValue, Hasher, Equality > &&  )
delete

◆ ~SimpleHashSet()

template<auto InvalidValue, typename Hasher , typename Equality >
SimpleHashSet< InvalidValue, Hasher, Equality >::~SimpleHashSet ( )
inline

Definition at line 53 of file SimpleHashSet.hh.

Member Function Documentation

◆ capacity()

template<auto InvalidValue, typename Hasher , typename Equality >
size_t SimpleHashSet< InvalidValue, Hasher, Equality >::capacity ( ) const
inline

◆ contains()

template<auto InvalidValue, typename Hasher , typename Equality >
template<typename Value2 >
bool SimpleHashSet< InvalidValue, Hasher, Equality >::contains ( const Value2 &  val) const
inline

Definition at line 142 of file SimpleHashSet.hh.

◆ empty()

template<auto InvalidValue, typename Hasher , typename Equality >
bool SimpleHashSet< InvalidValue, Hasher, Equality >::empty ( ) const
inline

◆ erase()

template<auto InvalidValue, typename Hasher , typename Equality >
template<typename Value2 >
bool SimpleHashSet< InvalidValue, Hasher, Equality >::erase ( const Value2 &  val)
inline

Definition at line 101 of file SimpleHashSet.hh.

References p3.

◆ find()

template<auto InvalidValue, typename Hasher , typename Equality >
template<typename Value2 >
Value * SimpleHashSet< InvalidValue, Hasher, Equality >::find ( const Value2 &  val) const
inline

Definition at line 135 of file SimpleHashSet.hh.

◆ insert()

template<auto InvalidValue, typename Hasher , typename Equality >
template<typename Value2 >
bool SimpleHashSet< InvalidValue, Hasher, Equality >::insert ( Value2 &&  val)
inline

◆ operator=() [1/2]

template<auto InvalidValue, typename Hasher , typename Equality >
SimpleHashSet & SimpleHashSet< InvalidValue, Hasher, Equality >::operator= ( const SimpleHashSet< InvalidValue, Hasher, Equality > &  )
delete

◆ operator=() [2/2]

template<auto InvalidValue, typename Hasher , typename Equality >
SimpleHashSet & SimpleHashSet< InvalidValue, Hasher, Equality >::operator= ( SimpleHashSet< InvalidValue, Hasher, Equality > &&  )
delete

◆ reserve()

template<auto InvalidValue, typename Hasher , typename Equality >
void SimpleHashSet< InvalidValue, Hasher, Equality >::reserve ( size_t  n)
inline

◆ size()

template<auto InvalidValue, typename Hasher , typename Equality >
size_t SimpleHashSet< InvalidValue, Hasher, Equality >::size ( ) const
inline

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