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.
|
inline |
Definition at line 40 of file indexset.h.
|
inlinenoexcept |
Definition at line 43 of file indexset.h.
|
inline |
Definition at line 49 of file indexset.h.
References mim::IndexSet< Indexer, Key >::indexer().
Referenced by mim::IndexSet< Indexer, Key >::next(), and mim::IndexSet< Indexer, Key >::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 mim::IndexSet< Indexer, Key >::set().
|
inline |
Definition at line 48 of file indexset.h.
Referenced by mim::IndexSet< Indexer, Key >::capacity(), and mim::IndexSet< Indexer, Key >::operator[]().
|
inline |
Inserts key
and returns true if successful.
Definition at line 69 of file indexset.h.
References mim::IndexSet< Indexer, Key >::set().
Referenced by mim::visit().
|
inline |
Definition at line 50 of file indexset.h.
References mim::IndexSet< Indexer, Key >::capacity().
|
inline |
Definition at line 79 of file indexset.h.
References mim::IndexSet< Indexer, Key >::transform().
|
inlinenoexcept |
Definition at line 46 of file indexset.h.
References mim::IndexSet< Indexer, Key >::swap.
|
inline |
Definition at line 55 of file indexset.h.
References mim::IndexSet< Indexer, Key >::indexer().
|
inline |
Definition at line 60 of file indexset.h.
|
inline |
Definition at line 81 of file indexset.h.
References mim::IndexSet< Indexer, Key >::transform().
|
inline |
Definition at line 80 of file indexset.h.
References mim::IndexSet< Indexer, Key >::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.
Referenced by mim::IndexSet< Indexer, Key >::erase(), and mim::IndexSet< Indexer, Key >::insert().
|
inline |
Definition at line 74 of file indexset.h.
References mim::IndexSet< Indexer, Key >::capacity().
Referenced by mim::IndexSet< Indexer, Key >::operator&=(), mim::IndexSet< Indexer, Key >::operator^=(), and mim::IndexSet< Indexer, Key >::operator|=().
|
friend |
Definition at line 82 of file indexset.h.
Referenced by mim::IndexSet< Indexer, Key >::operator=().