Thorin 1.9.0
The Higher ORder INtermediate representation
|
Ordered set maintained in a consecutive buffer and unified in Pool. More...
#include <thorin/util/pool.h>
Classes | |
struct | Data |
Public Member Functions | |
Getters | |
constexpr | operator bool () const noexcept |
Is not empty? | |
constexpr bool | empty () const noexcept |
constexpr size_t | size () const noexcept |
constexpr const T & | operator[] (size_t i) const |
constexpr const T & | front () const |
constexpr const T * | elems () const |
constexpr bool | contains (const T &elem) const |
Comparisons | |
constexpr bool | operator== (PooledSet< T > other) const noexcept |
constexpr bool | operator!= (PooledSet< T > other) const noexcept |
Iterators | |
constexpr auto | begin () const noexcept |
constexpr auto | end () const noexcept |
constexpr auto | cbegin () const noexcept |
constexpr auto | cend () const noexcept |
constexpr auto | rbegin () const noexcept |
constexpr auto | rend () const noexcept |
constexpr auto | crbegin () const noexcept |
constexpr auto | crend () const noexcept |
Construction & Destruction | |
constexpr | PooledSet () noexcept=default |
constexpr | PooledSet (const PooledSet &) noexcept=default |
constexpr PooledSet & | operator= (const PooledSet &) noexcept=default |
constexpr void | clear () noexcept |
Ordered set maintained in a consecutive buffer and unified in Pool.
|
constexprdefaultnoexcept |
|
constexprdefaultnoexcept |
|
inlineconstexprnoexcept |
Definition at line 77 of file pool.h.
References thorin::PooledSet< T >::elems().
Referenced by thorin::PooledSet< T >::contains(), thorin::Pool< T >::erase(), thorin::Pool< T >::has_intersection(), thorin::Pool< T >::merge(), and thorin::PooledSet< T >::rend().
|
inlineconstexprnoexcept |
Definition at line 79 of file pool.h.
References thorin::PooledSet< T >::elems().
|
inlineconstexprnoexcept |
Definition at line 80 of file pool.h.
References thorin::PooledSet< T >::end().
|
inlineconstexprnoexcept |
|
inlineconstexpr |
Definition at line 66 of file pool.h.
References thorin::PooledSet< T >::begin(), thorin::binary_find(), and thorin::PooledSet< T >::end().
Referenced by thorin::Pi::immutabilize(), thorin::Arr::immutabilize(), and thorin::Pack::immutabilize().
|
inlineconstexprnoexcept |
Definition at line 83 of file pool.h.
References thorin::PooledSet< T >::rbegin().
|
inlineconstexprnoexcept |
Definition at line 84 of file pool.h.
References thorin::PooledSet< T >::rend().
|
inlineconstexpr |
Definition at line 65 of file pool.h.
References thorin::PooledSet< T >::Data::elems.
Referenced by thorin::PooledSet< T >::begin(), thorin::PooledSet< T >::cbegin(), and thorin::PooledSet< T >::end().
|
inlineconstexprnoexcept |
Definition at line 61 of file pool.h.
Referenced by thorin::Def::is_closed(), thorin::Def::is_open(), thorin::VarRewriter::rewrite_imm(), and thorin::PooledSet< T >::size().
|
inlineconstexprnoexcept |
Definition at line 78 of file pool.h.
References thorin::PooledSet< T >::elems(), and thorin::PooledSet< T >::size().
Referenced by thorin::PooledSet< T >::cend(), thorin::PooledSet< T >::contains(), thorin::Pool< T >::erase(), thorin::Pool< T >::has_intersection(), thorin::Pool< T >::merge(), and thorin::PooledSet< T >::rbegin().
|
inlineconstexpr |
|
inlineexplicitconstexprnoexcept |
|
inlineconstexprnoexcept |
|
constexprdefaultnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexpr |
Definition at line 63 of file pool.h.
References thorin::PooledSet< T >::Data::elems.
|
inlineconstexprnoexcept |
Definition at line 81 of file pool.h.
References thorin::PooledSet< T >::end().
Referenced by thorin::PooledSet< T >::crbegin().
|
inlineconstexprnoexcept |
Definition at line 82 of file pool.h.
References thorin::PooledSet< T >::begin().
Referenced by thorin::PooledSet< T >::crend().
|
inlineconstexprnoexcept |
Definition at line 62 of file pool.h.
References thorin::PooledSet< T >::empty(), and thorin::PooledSet< T >::Data::size.
Referenced by thorin::PooledSet< T >::end(), thorin::Pool< T >::erase(), and thorin::Pool< T >::merge().