mCRL2
Loading...
Searching...
No Matches
atermpp::utilities::unordered_map< Key, T, Hash, Pred, Alloc, ThreadSafe > Class Template Reference

A unordered_map class in which aterms can be stored. More...

#include <unordered_map.h>

Inheritance diagram for atermpp::utilities::unordered_map< Key, T, Hash, Pred, Alloc, ThreadSafe >:
mcrl2::utilities::unordered_map< Key, T, Hash, KeyEqual, Allocator, ThreadSafe, Resize >

Public Types

typedef super::allocator_type allocator_type
 Standard typedefs.
 
typedef super::value_type value_type
 
typedef super::size_type size_type
 
typedef super::reference reference
 
typedef super::iterator iterator
 
typedef super::const_iterator const_iterator
 
- Public Types inherited from mcrl2::utilities::unordered_map< Key, T, Hash, KeyEqual, Allocator, ThreadSafe, Resize >
using key_type = Key
 
using mapped_type = T
 
using value_type = std::pair< const Key, T >
 
typedef value_type node_type
 
using size_type = std::size_t
 
using difference_type = std::ptrdiff_t
 
using hasher = Hash
 
using key_equal = KeyEqual
 
using allocator_type = typename std::allocator_traits< Allocator >::template rebind_alloc< value_type >
 
using reference = value_type &
 
using const_reference = const value_type &
 
using pointer = typename std::allocator_traits< Allocator >::pointer
 
using const_pointer = typename std::allocator_traits< Allocator >::const_pointer
 
using iterator = typename Set::template unordered_set_iterator< bucket_type, false >
 
using const_iterator = typename Set::const_iterator
 
using local_iterator = typename bucket_type::iterator
 
using const_local_iterator = typename Set::const_local_iterator
 
typedef std::pair< unordered_map::iterator, bool > insert_return_type
 

Public Member Functions

 unordered_map ()
 Default constructor.
 
 unordered_map (const allocator_type &alloc)
 Constructor.
 
 unordered_map (size_type n, const allocator_type &alloc=allocator_type())
 Constructor.
 
 unordered_map (size_type n, const value_type &val, const allocator_type &alloc=allocator_type())
 
template<class InputIterator >
 unordered_map (InputIterator first, InputIterator last, const allocator_type &alloc=allocator_type())
 Constructor.
 
 unordered_map (const unordered_map &x)
 Constructor.
 
 unordered_map (const unordered_map &x, const allocator_type &alloc)
 Constructor.
 
 unordered_map (unordered_map &&x)
 Constructor.
 
 unordered_map (unordered_map &&x, const allocator_type &alloc)
 Constructor.
 
 unordered_map (std::initializer_list< value_type > il, const allocator_type &alloc=allocator_type())
 Constructor. To be done later....
 
unordered_mapoperator= (const unordered_map &other)=default
 Standard assignment.
 
unordered_mapoperator= (unordered_map &&other)=default
 Standard move assignment.
 
 ~unordered_map ()=default
 Standard destructor.
 
void clear () noexcept
 
template<typename ... Args>
iterator find (const Args &... args)
 Standard find function in a map.
 
template<typename ... Args>
const_iterator find (const Args &... args) const
 Standard find function in a map.
 
std::pair< iterator, bool > insert (const value_type &value)
 
template<class P >
std::pair< iterator, bool > insert (P &&value)
 
iterator insert (const_iterator hint, value_type &&value)
 
template<class P >
iterator insert (const_iterator hint, P &&value)
 
template<class InputIt >
void insert (InputIt first, InputIt last)
 
void insert (std::initializer_list< value_type > ilist)
 
template<class M >
std::pair< iterator, bool > insert_or_assign (const Key &k, M &&obj)
 
template<class M >
std::pair< iterator, bool > insert_or_assign (Key &&k, M &&obj)
 
template<class M >
iterator insert_or_assign (const_iterator hint, const Key &k, M &&obj)
 
template<class M >
iterator insert_or_assign (const_iterator hint, Key &&k, M &&obj)
 
template<class... Args>
std::pair< iterator, bool > emplace (Args &&... args)
 
template<class... Args>
iterator emplace_hint (const_iterator hint, Args &&... args)
 
template<class... Args>
std::pair< iterator, bool > try_emplace (const Key &k, Args &&... args)
 
template<class... Args>
std::pair< iterator, bool > try_emplace (Key &&k, Args &&... args)
 
template<class... Args>
iterator try_emplace (const_iterator hint, const Key &k, Args &&... args)
 
template<class... Args>
iterator try_emplace (const_iterator hint, Key &&k, Args &&... args)
 
iterator erase (iterator pos)
 
iterator erase (const_iterator pos)
 
iterator erase (const_iterator first, const_iterator last)
 
size_type erase (const Key &key)
 
void swap (unordered_map &other)
 
std::size_t size () const
 
iterator begin ()
 
iterator end ()
 
const_iterator begin () const
 
const_iterator end () const
 
const_iterator cbegin () const
 
const_iterator cend () const
 
bool empty () const noexcept
 
size_type max_size () const noexcept
 
- Public Member Functions inherited from mcrl2::utilities::unordered_map< Key, T, Hash, KeyEqual, Allocator, ThreadSafe, Resize >
 unordered_map ()
 
 unordered_map (std::size_t initial_size, const hasher &hash=hasher(), const key_equal &equals=key_equal())
 Constructs an unordered_map that can store initial_size number of elements before resizing.
 
const allocator_typeget_allocator () const noexcept
 
allocator_typeget_allocator () noexcept
 
iterator begin ()
 
iterator end ()
 
const_iterator begin () const
 
const_iterator end () const
 
const_iterator cbegin () const
 
const_iterator cend () const
 
bool empty () const noexcept
 
size_type size () const
 
size_type max_size () const noexcept
 
void clear ()
 Clears the content.
 
std::pair< iterator, bool > insert (const value_type &pair)
 Inserts elements.
 
std::pair< iterator, bool > insert (const_iterator hint, const value_type &pair)
 
template<typename ... Args>
std::pair< iterator, bool > emplace (Args &&... args)
 
template<typename ... Args>
iterator emplace_hint (const_iterator, Args &&... args)
 
template<typename ... Args>
std::pair< iterator, bool > try_emplace (const key_type &key, Args &&... args)
 
template<class... Args>
iterator try_emplace (const_iterator, const Key &k, Args &&... args)
 
template<class... Args>
iterator try_emplace (const_iterator, Key &&k, Args &&... args)
 
template<typename M >
std::pair< iterator, bool > insert_or_assign (Key &&k, M &&obj)
 
template<typename M >
std::pair< iterator, bool > insert_or_assign (const Key &k, M &&obj)
 
template<typename M >
std::pair< iterator, bool > insert_or_assign (const_iterator, const Key &k, M &&obj)
 
template<typename M >
std::pair< iterator, bool > insert_or_assign (const_iterator, Key &&k, M &&obj)
 
void erase (const key_type &key)
 Erases elements.
 
iterator erase (const_iterator it)
 
const T & at (const key_type &key) const
 Provides access to the value associated with the given key.
 
mapped_typeoperator[] (const key_type &key)
 Provides access to the value associated with the given key, constructs a default value whenever the key was undefined.
 
size_type count (const key_type &key) const
 
template<typename ... Args>
iterator find (const Args &... args)
 
template<typename ... Args>
const_iterator find (const Args &... args) const
 
local_iterator begin (size_type n)
 
local_iterator end (size_type n)
 
const_local_iterator begin (size_type n) const
 
const_local_iterator end (size_type n) const
 
const_local_iterator cbegin (size_type n) const
 
const_local_iterator cend (size_type n) const
 
size_type bucket_count () const noexcept
 
size_type max_bucket_count () const noexcept
 
size_type bucket_size (size_type n) const noexcept
 
size_type bucket (const key_type &key) const noexcept
 
float load_factor () const
 
float max_load_factor () const
 
void max_load_factor (float factor)
 
void rehash (size_type number_of_buckets)
 Resize the number buckets to at least number_of_buckets.
 
void reserve (size_type count)
 Resizes the set to the given number of elements.
 
hasher hash_function () const
 
key_equal key_eq () const
 
size_type capacity ()
 Number of elements that can be stored before rehash.
 

Protected Types

typedef mcrl2::utilities::unordered_map< detail::reference_aterm< Key >, detail::reference_aterm< T >, Hash, Pred, Alloc, ThreadSafe, false > super
 

Protected Member Functions

void rehash (std::size_t)
 Function below is implemented in a .cpp file.
 
void rehash_if_needed ()
 

Protected Attributes

detail::generic_aterm_container< mcrl2::utilities::unordered_map< detail::reference_aterm< Key >, detail::reference_aterm< T >, Hash, Pred, Alloc, ThreadSafe, false > > container_wrapper
 

Detailed Description

template<class Key, class T, class Hash = std::hash<detail::reference_aterm<Key> >, class Pred = std::equal_to<detail::reference_aterm<Key> >, class Alloc = std::allocator< std::pair<const detail::reference_aterm<Key>, detail::reference_aterm<T> > >, bool ThreadSafe = false>
class atermpp::utilities::unordered_map< Key, T, Hash, Pred, Alloc, ThreadSafe >

A unordered_map class in which aterms can be stored.

Definition at line 241 of file unordered_map.h.

Member Typedef Documentation

◆ allocator_type

template<class Key , class T , class Hash = std::hash<detail::reference_aterm<Key> >, class Pred = std::equal_to<detail::reference_aterm<Key> >, class Alloc = std::allocator< std::pair<const detail::reference_aterm<Key>, detail::reference_aterm<T> > >, bool ThreadSafe = false>
typedef super::allocator_type atermpp::utilities::unordered_map< Key, T, Hash, Pred, Alloc, ThreadSafe >::allocator_type

Standard typedefs.

Definition at line 252 of file unordered_map.h.

◆ const_iterator

template<class Key , class T , class Hash = std::hash<detail::reference_aterm<Key> >, class Pred = std::equal_to<detail::reference_aterm<Key> >, class Alloc = std::allocator< std::pair<const detail::reference_aterm<Key>, detail::reference_aterm<T> > >, bool ThreadSafe = false>
typedef super::const_iterator atermpp::utilities::unordered_map< Key, T, Hash, Pred, Alloc, ThreadSafe >::const_iterator

Definition at line 257 of file unordered_map.h.

◆ iterator

template<class Key , class T , class Hash = std::hash<detail::reference_aterm<Key> >, class Pred = std::equal_to<detail::reference_aterm<Key> >, class Alloc = std::allocator< std::pair<const detail::reference_aterm<Key>, detail::reference_aterm<T> > >, bool ThreadSafe = false>
typedef super::iterator atermpp::utilities::unordered_map< Key, T, Hash, Pred, Alloc, ThreadSafe >::iterator

Definition at line 256 of file unordered_map.h.

◆ reference

template<class Key , class T , class Hash = std::hash<detail::reference_aterm<Key> >, class Pred = std::equal_to<detail::reference_aterm<Key> >, class Alloc = std::allocator< std::pair<const detail::reference_aterm<Key>, detail::reference_aterm<T> > >, bool ThreadSafe = false>
typedef super::reference atermpp::utilities::unordered_map< Key, T, Hash, Pred, Alloc, ThreadSafe >::reference

Definition at line 255 of file unordered_map.h.

◆ size_type

template<class Key , class T , class Hash = std::hash<detail::reference_aterm<Key> >, class Pred = std::equal_to<detail::reference_aterm<Key> >, class Alloc = std::allocator< std::pair<const detail::reference_aterm<Key>, detail::reference_aterm<T> > >, bool ThreadSafe = false>
typedef super::size_type atermpp::utilities::unordered_map< Key, T, Hash, Pred, Alloc, ThreadSafe >::size_type

Definition at line 254 of file unordered_map.h.

◆ super

template<class Key , class T , class Hash = std::hash<detail::reference_aterm<Key> >, class Pred = std::equal_to<detail::reference_aterm<Key> >, class Alloc = std::allocator< std::pair<const detail::reference_aterm<Key>, detail::reference_aterm<T> > >, bool ThreadSafe = false>
typedef mcrl2::utilities::unordered_map< detail::reference_aterm<Key>, detail::reference_aterm<T>, Hash, Pred, Alloc, ThreadSafe, false > atermpp::utilities::unordered_map< Key, T, Hash, Pred, Alloc, ThreadSafe >::super
protected

Definition at line 245 of file unordered_map.h.

◆ value_type

template<class Key , class T , class Hash = std::hash<detail::reference_aterm<Key> >, class Pred = std::equal_to<detail::reference_aterm<Key> >, class Alloc = std::allocator< std::pair<const detail::reference_aterm<Key>, detail::reference_aterm<T> > >, bool ThreadSafe = false>
typedef super::value_type atermpp::utilities::unordered_map< Key, T, Hash, Pred, Alloc, ThreadSafe >::value_type

Definition at line 253 of file unordered_map.h.

Constructor & Destructor Documentation

◆ unordered_map() [1/10]

template<class Key , class T , class Hash = std::hash<detail::reference_aterm<Key> >, class Pred = std::equal_to<detail::reference_aterm<Key> >, class Alloc = std::allocator< std::pair<const detail::reference_aterm<Key>, detail::reference_aterm<T> > >, bool ThreadSafe = false>
atermpp::utilities::unordered_map< Key, T, Hash, Pred, Alloc, ThreadSafe >::unordered_map ( )
inline

Default constructor.

Definition at line 260 of file unordered_map.h.

◆ unordered_map() [2/10]

template<class Key , class T , class Hash = std::hash<detail::reference_aterm<Key> >, class Pred = std::equal_to<detail::reference_aterm<Key> >, class Alloc = std::allocator< std::pair<const detail::reference_aterm<Key>, detail::reference_aterm<T> > >, bool ThreadSafe = false>
atermpp::utilities::unordered_map< Key, T, Hash, Pred, Alloc, ThreadSafe >::unordered_map ( const allocator_type alloc)
inlineexplicit

Constructor.

Definition at line 266 of file unordered_map.h.

◆ unordered_map() [3/10]

template<class Key , class T , class Hash = std::hash<detail::reference_aterm<Key> >, class Pred = std::equal_to<detail::reference_aterm<Key> >, class Alloc = std::allocator< std::pair<const detail::reference_aterm<Key>, detail::reference_aterm<T> > >, bool ThreadSafe = false>
atermpp::utilities::unordered_map< Key, T, Hash, Pred, Alloc, ThreadSafe >::unordered_map ( size_type  n,
const allocator_type alloc = allocator_type() 
)
inlineexplicit

Constructor.

Definition at line 272 of file unordered_map.h.

◆ unordered_map() [4/10]

template<class Key , class T , class Hash = std::hash<detail::reference_aterm<Key> >, class Pred = std::equal_to<detail::reference_aterm<Key> >, class Alloc = std::allocator< std::pair<const detail::reference_aterm<Key>, detail::reference_aterm<T> > >, bool ThreadSafe = false>
atermpp::utilities::unordered_map< Key, T, Hash, Pred, Alloc, ThreadSafe >::unordered_map ( size_type  n,
const value_type val,
const allocator_type alloc = allocator_type() 
)
inline

Definition at line 277 of file unordered_map.h.

◆ unordered_map() [5/10]

template<class Key , class T , class Hash = std::hash<detail::reference_aterm<Key> >, class Pred = std::equal_to<detail::reference_aterm<Key> >, class Alloc = std::allocator< std::pair<const detail::reference_aterm<Key>, detail::reference_aterm<T> > >, bool ThreadSafe = false>
template<class InputIterator >
atermpp::utilities::unordered_map< Key, T, Hash, Pred, Alloc, ThreadSafe >::unordered_map ( InputIterator  first,
InputIterator  last,
const allocator_type alloc = allocator_type() 
)
inline

Constructor.

Definition at line 284 of file unordered_map.h.

◆ unordered_map() [6/10]

template<class Key , class T , class Hash = std::hash<detail::reference_aterm<Key> >, class Pred = std::equal_to<detail::reference_aterm<Key> >, class Alloc = std::allocator< std::pair<const detail::reference_aterm<Key>, detail::reference_aterm<T> > >, bool ThreadSafe = false>
atermpp::utilities::unordered_map< Key, T, Hash, Pred, Alloc, ThreadSafe >::unordered_map ( const unordered_map< Key, T, Hash, Pred, Alloc, ThreadSafe > &  x)
inline

Constructor.

Definition at line 290 of file unordered_map.h.

◆ unordered_map() [7/10]

template<class Key , class T , class Hash = std::hash<detail::reference_aterm<Key> >, class Pred = std::equal_to<detail::reference_aterm<Key> >, class Alloc = std::allocator< std::pair<const detail::reference_aterm<Key>, detail::reference_aterm<T> > >, bool ThreadSafe = false>
atermpp::utilities::unordered_map< Key, T, Hash, Pred, Alloc, ThreadSafe >::unordered_map ( const unordered_map< Key, T, Hash, Pred, Alloc, ThreadSafe > &  x,
const allocator_type alloc 
)
inline

Constructor.

Definition at line 296 of file unordered_map.h.

◆ unordered_map() [8/10]

template<class Key , class T , class Hash = std::hash<detail::reference_aterm<Key> >, class Pred = std::equal_to<detail::reference_aterm<Key> >, class Alloc = std::allocator< std::pair<const detail::reference_aterm<Key>, detail::reference_aterm<T> > >, bool ThreadSafe = false>
atermpp::utilities::unordered_map< Key, T, Hash, Pred, Alloc, ThreadSafe >::unordered_map ( unordered_map< Key, T, Hash, Pred, Alloc, ThreadSafe > &&  x)
inline

Constructor.

Definition at line 302 of file unordered_map.h.

◆ unordered_map() [9/10]

template<class Key , class T , class Hash = std::hash<detail::reference_aterm<Key> >, class Pred = std::equal_to<detail::reference_aterm<Key> >, class Alloc = std::allocator< std::pair<const detail::reference_aterm<Key>, detail::reference_aterm<T> > >, bool ThreadSafe = false>
atermpp::utilities::unordered_map< Key, T, Hash, Pred, Alloc, ThreadSafe >::unordered_map ( unordered_map< Key, T, Hash, Pred, Alloc, ThreadSafe > &&  x,
const allocator_type alloc 
)
inline

Constructor.

Definition at line 308 of file unordered_map.h.

◆ unordered_map() [10/10]

template<class Key , class T , class Hash = std::hash<detail::reference_aterm<Key> >, class Pred = std::equal_to<detail::reference_aterm<Key> >, class Alloc = std::allocator< std::pair<const detail::reference_aterm<Key>, detail::reference_aterm<T> > >, bool ThreadSafe = false>
atermpp::utilities::unordered_map< Key, T, Hash, Pred, Alloc, ThreadSafe >::unordered_map ( std::initializer_list< value_type il,
const allocator_type alloc = allocator_type() 
)
inline

Constructor. To be done later....

Definition at line 314 of file unordered_map.h.

◆ ~unordered_map()

template<class Key , class T , class Hash = std::hash<detail::reference_aterm<Key> >, class Pred = std::equal_to<detail::reference_aterm<Key> >, class Alloc = std::allocator< std::pair<const detail::reference_aterm<Key>, detail::reference_aterm<T> > >, bool ThreadSafe = false>
atermpp::utilities::unordered_map< Key, T, Hash, Pred, Alloc, ThreadSafe >::~unordered_map ( )
default

Standard destructor.

Member Function Documentation

◆ begin() [1/2]

template<class Key , class T , class Hash , class Pred , class Alloc , bool ThreadSafe>
unordered_map< Key, T, Hash, Pred, Alloc, ThreadSafe >::iterator atermpp::utilities::unordered_map< Key, T, Hash, Pred, Alloc, ThreadSafe >::begin
Returns
An iterator over all keys.

Definition at line 563 of file unordered_map_implementation.h.

◆ begin() [2/2]

template<class Key , class T , class Hash , class Pred , class Alloc , bool ThreadSafe>
unordered_map< Key, T, Hash, Pred, Alloc, ThreadSafe >::const_iterator atermpp::utilities::unordered_map< Key, T, Hash, Pred, Alloc, ThreadSafe >::begin
Returns
A const iterator over all keys.

Definition at line 577 of file unordered_map_implementation.h.

◆ cbegin()

template<class Key , class T , class Hash , class Pred , class Alloc , bool ThreadSafe>
unordered_map< Key, T, Hash, Pred, Alloc, ThreadSafe >::const_iterator atermpp::utilities::unordered_map< Key, T, Hash, Pred, Alloc, ThreadSafe >::cbegin
Returns
A const iterator over all keys.

Definition at line 591 of file unordered_map_implementation.h.

◆ cend()

template<class Key , class T , class Hash , class Pred , class Alloc , bool ThreadSafe>
unordered_map< Key, T, Hash, Pred, Alloc, ThreadSafe >::const_iterator atermpp::utilities::unordered_map< Key, T, Hash, Pred, Alloc, ThreadSafe >::cend

Definition at line 598 of file unordered_map_implementation.h.

◆ clear()

template<class Key , class T , class Hash , class Pred , class Alloc , bool ThreadSafe>
void atermpp::utilities::unordered_map< Key, T, Hash, Pred, Alloc, ThreadSafe >::clear
noexcept

Definition at line 340 of file unordered_map_implementation.h.

◆ emplace()

template<class Key , class T , class Hash = std::hash<detail::reference_aterm<Key> >, class Pred = std::equal_to<detail::reference_aterm<Key> >, class Alloc = std::allocator< std::pair<const detail::reference_aterm<Key>, detail::reference_aterm<T> > >, bool ThreadSafe = false>
template<class... Args>
std::pair< iterator, bool > atermpp::utilities::unordered_map< Key, T, Hash, Pred, Alloc, ThreadSafe >::emplace ( Args &&...  args)

◆ emplace_hint()

template<class Key , class T , class Hash , class Pred , class Alloc , bool ThreadSafe>
template<class... Args>
unordered_map< Key, T, Hash, Pred, Alloc, ThreadSafe >::iterator atermpp::utilities::unordered_map< Key, T, Hash, Pred, Alloc, ThreadSafe >::emplace_hint ( const_iterator  hint,
Args &&...  args 
)

Definition at line 484 of file unordered_map_implementation.h.

◆ empty()

template<class Key , class T , class Hash , class Pred , class Alloc , bool ThreadSafe>
bool atermpp::utilities::unordered_map< Key, T, Hash, Pred, Alloc, ThreadSafe >::empty
noexcept
Returns
True iff the set is empty.

Definition at line 605 of file unordered_map_implementation.h.

◆ end() [1/2]

template<class Key , class T , class Hash , class Pred , class Alloc , bool ThreadSafe>
unordered_map< Key, T, Hash, Pred, Alloc, ThreadSafe >::iterator atermpp::utilities::unordered_map< Key, T, Hash, Pred, Alloc, ThreadSafe >::end

Definition at line 570 of file unordered_map_implementation.h.

◆ end() [2/2]

template<class Key , class T , class Hash , class Pred , class Alloc , bool ThreadSafe>
unordered_map< Key, T, Hash, Pred, Alloc, ThreadSafe >::const_iterator atermpp::utilities::unordered_map< Key, T, Hash, Pred, Alloc, ThreadSafe >::end

Definition at line 584 of file unordered_map_implementation.h.

◆ erase() [1/4]

template<class Key , class T , class Hash , class Pred , class Alloc , bool ThreadSafe>
unordered_map< Key, T, Hash, Pred, Alloc, ThreadSafe >::size_type atermpp::utilities::unordered_map< Key, T, Hash, Pred, Alloc, ThreadSafe >::erase ( const Key &  key)

Definition at line 549 of file unordered_map_implementation.h.

◆ erase() [2/4]

template<class Key , class T , class Hash , class Pred , class Alloc , bool ThreadSafe>
unordered_map< Key, T, Hash, Pred, Alloc, ThreadSafe >::iterator atermpp::utilities::unordered_map< Key, T, Hash, Pred, Alloc, ThreadSafe >::erase ( const_iterator  first,
const_iterator  last 
)

Definition at line 542 of file unordered_map_implementation.h.

◆ erase() [3/4]

template<class Key , class T , class Hash , class Pred , class Alloc , bool ThreadSafe>
unordered_map< Key, T, Hash, Pred, Alloc, ThreadSafe >::iterator atermpp::utilities::unordered_map< Key, T, Hash, Pred, Alloc, ThreadSafe >::erase ( const_iterator  pos)

Definition at line 535 of file unordered_map_implementation.h.

◆ erase() [4/4]

template<class Key , class T , class Hash , class Pred , class Alloc , bool ThreadSafe>
unordered_map< Key, T, Hash, Pred, Alloc, ThreadSafe >::iterator atermpp::utilities::unordered_map< Key, T, Hash, Pred, Alloc, ThreadSafe >::erase ( iterator  pos)

Definition at line 528 of file unordered_map_implementation.h.

◆ find() [1/2]

template<class Key , class T , class Hash , class Pred , class Alloc , bool ThreadSafe>
template<typename ... Args>
unordered_map< Key, T, Hash, Pred, Alloc, ThreadSafe >::iterator atermpp::utilities::unordered_map< Key, T, Hash, Pred, Alloc, ThreadSafe >::find ( const Args &...  args)

Standard find function in a map.

Returns
Element with the specified key.

Definition at line 348 of file unordered_map_implementation.h.

◆ find() [2/2]

template<class Key , class T , class Hash , class Pred , class Alloc , bool ThreadSafe>
template<typename ... Args>
unordered_map< Key, T, Hash, Pred, Alloc, ThreadSafe >::const_iterator atermpp::utilities::unordered_map< Key, T, Hash, Pred, Alloc, ThreadSafe >::find ( const Args &...  args) const

Standard find function in a map.

Returns
Element with the specified key.

Definition at line 360 of file unordered_map_implementation.h.

◆ insert() [1/6]

template<class Key , class T , class Hash , class Pred , class Alloc , bool ThreadSafe>
std::pair< typename unordered_map< Key, T, Hash, Pred, Alloc, ThreadSafe >::iterator, bool > atermpp::utilities::unordered_map< Key, T, Hash, Pred, Alloc, ThreadSafe >::insert ( const value_type value)

Definition at line 371 of file unordered_map_implementation.h.

◆ insert() [2/6]

template<class Key , class T , class Hash , class Pred , class Alloc , bool ThreadSafe>
template<class P >
unordered_map< Key, T, Hash, Pred, Alloc, ThreadSafe >::iterator atermpp::utilities::unordered_map< Key, T, Hash, Pred, Alloc, ThreadSafe >::insert ( const_iterator  hint,
P &&  value 
)

Definition at line 397 of file unordered_map_implementation.h.

◆ insert() [3/6]

template<class Key , class T , class Hash , class Pred , class Alloc , bool ThreadSafe>
unordered_map< Key, T, Hash, Pred, Alloc, ThreadSafe >::iterator atermpp::utilities::unordered_map< Key, T, Hash, Pred, Alloc, ThreadSafe >::insert ( const_iterator  hint,
value_type &&  value 
)

Definition at line 388 of file unordered_map_implementation.h.

◆ insert() [4/6]

template<class Key , class T , class Hash , class Pred , class Alloc , bool ThreadSafe>
template<class InputIt >
void atermpp::utilities::unordered_map< Key, T, Hash, Pred, Alloc, ThreadSafe >::insert ( InputIt  first,
InputIt  last 
)

Definition at line 406 of file unordered_map_implementation.h.

◆ insert() [5/6]

template<class Key , class T , class Hash = std::hash<detail::reference_aterm<Key> >, class Pred = std::equal_to<detail::reference_aterm<Key> >, class Alloc = std::allocator< std::pair<const detail::reference_aterm<Key>, detail::reference_aterm<T> > >, bool ThreadSafe = false>
template<class P >
std::pair< iterator, bool > atermpp::utilities::unordered_map< Key, T, Hash, Pred, Alloc, ThreadSafe >::insert ( P &&  value)

◆ insert() [6/6]

template<class Key , class T , class Hash , class Pred , class Alloc , bool ThreadSafe>
void atermpp::utilities::unordered_map< Key, T, Hash, Pred, Alloc, ThreadSafe >::insert ( std::initializer_list< value_type ilist)

Definition at line 414 of file unordered_map_implementation.h.

◆ insert_or_assign() [1/4]

template<class Key , class T , class Hash = std::hash<detail::reference_aterm<Key> >, class Pred = std::equal_to<detail::reference_aterm<Key> >, class Alloc = std::allocator< std::pair<const detail::reference_aterm<Key>, detail::reference_aterm<T> > >, bool ThreadSafe = false>
template<class M >
std::pair< iterator, bool > atermpp::utilities::unordered_map< Key, T, Hash, Pred, Alloc, ThreadSafe >::insert_or_assign ( const Key &  k,
M &&  obj 
)

◆ insert_or_assign() [2/4]

template<class Key , class T , class Hash , class Pred , class Alloc , bool ThreadSafe>
template<class M >
unordered_map< Key, T, Hash, Pred, Alloc, ThreadSafe >::iterator atermpp::utilities::unordered_map< Key, T, Hash, Pred, Alloc, ThreadSafe >::insert_or_assign ( const_iterator  hint,
const Key &  k,
M &&  obj 
)

Definition at line 457 of file unordered_map_implementation.h.

◆ insert_or_assign() [3/4]

template<class Key , class T , class Hash , class Pred , class Alloc , bool ThreadSafe>
template<class M >
unordered_map< Key, T, Hash, Pred, Alloc, ThreadSafe >::iterator atermpp::utilities::unordered_map< Key, T, Hash, Pred, Alloc, ThreadSafe >::insert_or_assign ( const_iterator  hint,
Key &&  k,
M &&  obj 
)

Definition at line 466 of file unordered_map_implementation.h.

◆ insert_or_assign() [4/4]

template<class Key , class T , class Hash = std::hash<detail::reference_aterm<Key> >, class Pred = std::equal_to<detail::reference_aterm<Key> >, class Alloc = std::allocator< std::pair<const detail::reference_aterm<Key>, detail::reference_aterm<T> > >, bool ThreadSafe = false>
template<class M >
std::pair< iterator, bool > atermpp::utilities::unordered_map< Key, T, Hash, Pred, Alloc, ThreadSafe >::insert_or_assign ( Key &&  k,
M &&  obj 
)

◆ max_size()

template<class Key , class T , class Hash , class Pred , class Alloc , bool ThreadSafe>
unordered_map< Key, T, Hash, Pred, Alloc, ThreadSafe >::size_type atermpp::utilities::unordered_map< Key, T, Hash, Pred, Alloc, ThreadSafe >::max_size
noexcept
Returns
The amount of elements stored in this set.

Definition at line 612 of file unordered_map_implementation.h.

◆ operator=() [1/2]

template<class Key , class T , class Hash = std::hash<detail::reference_aterm<Key> >, class Pred = std::equal_to<detail::reference_aterm<Key> >, class Alloc = std::allocator< std::pair<const detail::reference_aterm<Key>, detail::reference_aterm<T> > >, bool ThreadSafe = false>
unordered_map & atermpp::utilities::unordered_map< Key, T, Hash, Pred, Alloc, ThreadSafe >::operator= ( const unordered_map< Key, T, Hash, Pred, Alloc, ThreadSafe > &  other)
default

Standard assignment.

◆ operator=() [2/2]

template<class Key , class T , class Hash = std::hash<detail::reference_aterm<Key> >, class Pred = std::equal_to<detail::reference_aterm<Key> >, class Alloc = std::allocator< std::pair<const detail::reference_aterm<Key>, detail::reference_aterm<T> > >, bool ThreadSafe = false>
unordered_map & atermpp::utilities::unordered_map< Key, T, Hash, Pred, Alloc, ThreadSafe >::operator= ( unordered_map< Key, T, Hash, Pred, Alloc, ThreadSafe > &&  other)
default

Standard move assignment.

◆ rehash()

template<class Key , class T , class Hash , class Pred , class Alloc , bool ThreadSafe>
void atermpp::utilities::unordered_map< Key, T, Hash, Pred, Alloc, ThreadSafe >::rehash ( std::size_t  new_size)
inlineprotected

Function below is implemented in a .cpp file.

Definition at line 312 of file unordered_map_implementation.h.

◆ rehash_if_needed()

template<class Key , class T , class Hash , class Pred , class Alloc , bool ThreadSafe>
void atermpp::utilities::unordered_map< Key, T, Hash, Pred, Alloc, ThreadSafe >::rehash_if_needed
inlineprotected

Definition at line 327 of file unordered_map_implementation.h.

◆ size()

template<class Key , class T , class Hash = std::hash<detail::reference_aterm<Key> >, class Pred = std::equal_to<detail::reference_aterm<Key> >, class Alloc = std::allocator< std::pair<const detail::reference_aterm<Key>, detail::reference_aterm<T> > >, bool ThreadSafe = false>
std::size_t atermpp::utilities::unordered_map< Key, T, Hash, Pred, Alloc, ThreadSafe >::size ( ) const
inline

Definition at line 419 of file unordered_map.h.

◆ swap()

template<class Key , class T , class Hash , class Pred , class Alloc , bool ThreadSafe>
void atermpp::utilities::unordered_map< Key, T, Hash, Pred, Alloc, ThreadSafe >::swap ( unordered_map< Key, T, Hash, Pred, Alloc, ThreadSafe > &  other)

Definition at line 556 of file unordered_map_implementation.h.

◆ try_emplace() [1/4]

template<class Key , class T , class Hash = std::hash<detail::reference_aterm<Key> >, class Pred = std::equal_to<detail::reference_aterm<Key> >, class Alloc = std::allocator< std::pair<const detail::reference_aterm<Key>, detail::reference_aterm<T> > >, bool ThreadSafe = false>
template<class... Args>
std::pair< iterator, bool > atermpp::utilities::unordered_map< Key, T, Hash, Pred, Alloc, ThreadSafe >::try_emplace ( const Key &  k,
Args &&...  args 
)

◆ try_emplace() [2/4]

template<class Key , class T , class Hash , class Pred , class Alloc , bool ThreadSafe>
template<class... Args>
unordered_map< Key, T, Hash, Pred, Alloc, ThreadSafe >::iterator atermpp::utilities::unordered_map< Key, T, Hash, Pred, Alloc, ThreadSafe >::try_emplace ( const_iterator  hint,
const Key &  k,
Args &&...  args 
)

Definition at line 511 of file unordered_map_implementation.h.

◆ try_emplace() [3/4]

template<class Key , class T , class Hash , class Pred , class Alloc , bool ThreadSafe>
template<class... Args>
unordered_map< Key, T, Hash, Pred, Alloc, ThreadSafe >::iterator atermpp::utilities::unordered_map< Key, T, Hash, Pred, Alloc, ThreadSafe >::try_emplace ( const_iterator  hint,
Key &&  k,
Args &&...  args 
)

Definition at line 520 of file unordered_map_implementation.h.

◆ try_emplace() [4/4]

template<class Key , class T , class Hash = std::hash<detail::reference_aterm<Key> >, class Pred = std::equal_to<detail::reference_aterm<Key> >, class Alloc = std::allocator< std::pair<const detail::reference_aterm<Key>, detail::reference_aterm<T> > >, bool ThreadSafe = false>
template<class... Args>
std::pair< iterator, bool > atermpp::utilities::unordered_map< Key, T, Hash, Pred, Alloc, ThreadSafe >::try_emplace ( Key &&  k,
Args &&...  args 
)

Member Data Documentation

◆ container_wrapper

template<class Key , class T , class Hash = std::hash<detail::reference_aterm<Key> >, class Pred = std::equal_to<detail::reference_aterm<Key> >, class Alloc = std::allocator< std::pair<const detail::reference_aterm<Key>, detail::reference_aterm<T> > >, bool ThreadSafe = false>
detail::generic_aterm_container<mcrl2::utilities::unordered_map< detail::reference_aterm<Key>, detail::reference_aterm<T>, Hash, Pred, Alloc, ThreadSafe, false > > atermpp::utilities::unordered_map< Key, T, Hash, Pred, Alloc, ThreadSafe >::container_wrapper
protected

Definition at line 247 of file unordered_map.h.


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