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

#include <SimpleHashSet.hh>

Inheritance diagram for SimpleHashSet< Value, 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<typename Value, Value InvalidValue, typename Hasher, typename Equality>
class SimpleHashSet< Value, InvalidValue, Hasher, Equality >

Definition at line 45 of file SimpleHashSet.hh.

Constructor & Destructor Documentation

◆ SimpleHashSet() [1/3]

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

Definition at line 48 of file SimpleHashSet.hh.

◆ SimpleHashSet() [2/3]

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

◆ SimpleHashSet() [3/3]

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

◆ ~SimpleHashSet()

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

Definition at line 58 of file SimpleHashSet.hh.

Member Function Documentation

◆ capacity()

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

◆ contains()

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

Definition at line 147 of file SimpleHashSet.hh.

◆ empty()

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

Definition at line 78 of file SimpleHashSet.hh.

◆ erase()

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

Definition at line 106 of file SimpleHashSet.hh.

◆ find()

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

Definition at line 140 of file SimpleHashSet.hh.

◆ insert()

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

Definition at line 84 of file SimpleHashSet.hh.

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

◆ reserve()

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

Definition at line 63 of file SimpleHashSet.hh.

◆ size()

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

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