MimIR 0.1
MimIR is my Intermediate Representation
|
Maintains PooledSets within a fe::Arena
and unifies them in a absl::flat_hash_set
.
More...
#include <mim/util/pool.h>
Public Member Functions | |
Construction & Destruction | |
Pool & | operator= (const Pool &)=delete |
Pool ()=default | |
Pool (const Pool &)=delete | |
Pool (Pool &&other) | |
Set Operations | |
| |
PooledSet< T > | create (T elem) |
PooledSet< T > | merge (PooledSet< T > a, PooledSet< T > b) |
Yields ![]() | |
PooledSet< T > | insert (PooledSet< T > a, const T &elem) |
Yields ![]() | |
PooledSet< T > | erase (PooledSet< T > set, const T &elem) |
Yields ![]() | |
Friends | |
void | swap (Pool &p1, Pool &p2) noexcept |
Maintains PooledSets within a fe::Arena
and unifies them in a absl::flat_hash_set
.
|
default |
Definition at line 132 of file pool.h.
References mim::Pool< T >::swap.
Create a PooledSet wih a single element
:
Definition at line 142 of file pool.h.
Referenced by mim::Pool< T >::insert().
|
inlinenodiscard |
Yields
Definition at line 180 of file pool.h.
References mim::PooledSet< T >::begin(), mim::binary_find(), mim::PooledSet< T >::end(), and mim::PooledSet< T >::size().
|
inlinenodiscard |
Yields
Definition at line 177 of file pool.h.
References mim::Pool< T >::create(), and mim::Pool< T >::merge().
|
inlinenodiscard |
Yields
Definition at line 149 of file pool.h.
References mim::PooledSet< T >::begin(), mim::PooledSet< T >::end(), and mim::PooledSet< T >::size().
Referenced by mim::Pool< T >::insert().
Definition at line 194 of file pool.h.
Referenced by mim::Pool< T >::Pool().