MimIR 0.1
MimIR is my Intermediate Representation
|
#include <mim/util/indexset.h>
Classes | |
class | reference |
Public Member Functions | |
IndexSet (const Indexer &indexer) | |
IndexSet (const IndexSet &other) | |
IndexSet (IndexSet &&other) noexcept | |
IndexSet & | operator= (IndexSet other) noexcept |
const Indexer & | indexer () const |
size_t | capacity () const |
size_t | next (size_t pos=0) |
reference | operator[] (Key key) |
bool | operator[] (Key key) const |
template<bool flag> | |
bool | set (Key key) |
Depending on flag this method either inserts (true) or removes (false) key and returns true if successful. | |
bool | insert (Key key) |
Inserts key and returns true if successful. | |
bool | erase (Key key) |
Erase key and returns true if successful. | |
bool | contains (Key key) const |
void | clear () |
template<class Op> | |
IndexSet & | transform (const IndexSet &other, Op op) |
IndexSet & | operator&= (const IndexSet &other) |
IndexSet & | operator|= (const IndexSet &other) |
IndexSet & | operator^= (const IndexSet &other) |
Friends | |
void | swap (IndexSet &set1, IndexSet &set2) noexcept |
Definition at line 7 of file indexset.h.
|
inline |
Definition at line 37 of file indexset.h.
References capacity(), and indexer().
Referenced by IndexSet(), IndexSet(), operator&=(), operator=(), operator[](), operator^=(), operator|=(), swap, and transform().
|
inline |
Definition at line 40 of file indexset.h.
References indexer(), and IndexSet().
|
inlinenoexcept |
Definition at line 43 of file indexset.h.
References IndexSet().
|
inline |
Definition at line 49 of file indexset.h.
References indexer().
Referenced by IndexSet(), next(), and transform().
|
inline |
Definition at line 72 of file indexset.h.
|
inline |
Definition at line 71 of file indexset.h.
Referenced by mim::visit_first().
|
inline |
Erase key
and returns true if successful.
Definition at line 70 of file indexset.h.
References set().
|
inline |
Definition at line 48 of file indexset.h.
Referenced by capacity(), IndexSet(), IndexSet(), and operator[]().
|
inline |
Inserts key
and returns true if successful.
Definition at line 69 of file indexset.h.
References set().
Referenced by mim::visit().
|
inline |
Definition at line 50 of file indexset.h.
References capacity().
|
inline |
Definition at line 79 of file indexset.h.
References IndexSet(), and transform().
|
inlinenoexcept |
Definition at line 46 of file indexset.h.
References IndexSet(), and swap.
|
inline |
Definition at line 55 of file indexset.h.
References indexer().
|
inline |
Definition at line 60 of file indexset.h.
References IndexSet().
|
inline |
Definition at line 81 of file indexset.h.
References IndexSet(), and transform().
|
inline |
Definition at line 80 of file indexset.h.
References IndexSet(), and transform().
|
inline |
Depending on flag
this method either inserts (true) or removes (false) key
and returns true if successful.
Definition at line 63 of file indexset.h.
|
inline |
Definition at line 74 of file indexset.h.
References capacity(), and IndexSet().
Referenced by operator&=(), operator^=(), and operator|=().
|
friend |
Definition at line 82 of file indexset.h.
References IndexSet(), and swap.
Referenced by operator=(), and swap.