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 > | singleton (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 . | |
bool | has_intersection (PooledSet< T > a, PooledSet< T > b) |
Is ? | |
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 115 of file pool.h.
References mim::Pool< T >::swap.
|
inlinenodiscard |
Yields .
Definition at line 163 of file pool.h.
References mim::PooledSet< T >::begin(), mim::binary_find(), mim::PooledSet< T >::end(), and mim::PooledSet< T >::size().
|
inlinenodiscard |
Is ?
Definition at line 177 of file pool.h.
References mim::PooledSet< T >::begin(), and mim::PooledSet< T >::end().
|
inlinenodiscard |
Yields .
Definition at line 160 of file pool.h.
References mim::Pool< T >::merge(), and mim::Pool< T >::singleton().
|
inlinenodiscard |
Yields .
Definition at line 132 of file pool.h.
References mim::PooledSet< T >::begin(), mim::PooledSet< T >::end(), and mim::PooledSet< T >::size().
Referenced by mim::Pool< T >::insert().
Create a PooledSet wih a single element
: .
Definition at line 125 of file pool.h.
Referenced by mim::Pool< T >::insert().
Definition at line 194 of file pool.h.
Referenced by mim::Pool< T >::Pool().