|
template<typename ... T> |
| MultiFlagger (const T &... args) |
|
template<typename ... T> |
void | set (const T &... args) |
| Set bits, accepting numeric values or keys. More...
|
|
virtual void | assign (const std::string &s) |
| Set bits, accepting keys only. More...
|
|
template<typename T , typename ... TT> |
void | add (const T &arg, const TT &... args) |
| Add bit values.
|
|
virtual const key_t & | str () const |
| For exporting values.
|
|
virtual std::string & | str () |
| Given only a numeric/enum value,. More...
|
|
| FlaggerBase (dict_value_t &v) |
| Own value will be unused (and invisible). More...
|
|
virtual const dict_t & | getDict () const=0 |
|
void | reset () |
|
virtual void | set (const key_t &key) |
|
virtual void | set (const dict_value_t &value) |
|
virtual void | set (const FlaggerBase< E > &flagger) |
|
bool | isSet (dict_value_t x) const |
| Checks if a given bit, or any of given bits, is set.
|
|
bool | isSet (const key_t &key) const |
|
const dict_value_t & | getValue () const |
|
| operator const dict_value_t & () const |
| Given an integer, retrieves dictionary keys corresponding to each index of set bits.
|
|
| operator dict_value_t & () |
|
| operator const key_t & () const |
|
void | debug (std::ostream &ostr) const |
|
|
void | add () |
| This should be called after assigning a string to & str() .
|
|
virtual void | addOne (const dict_value_t &value) |
|
void | addOne (const key_t &key) |
|
|
dict_value_t & | value |
|
char | separator |
|
◆ assign()
virtual void assign |
( |
const std::string & |
s | ) |
|
|
inlinevirtual |
Set bits, accepting keys only.
Starts with resetting the flags.
\tparam T – numeric values or strings
inline void setKeys(const std::string & keys) { this->reset(); } Split a string to separate keys and/or values and set them.
Implements FlaggerBase< E >.
◆ set()
void set |
( |
const T &... |
args | ) |
|
|
inline |
Set bits, accepting numeric values or keys.
Starts with resetting the flags.
- Template Parameters
-
T | – numeric values or strings |
◆ str()
virtual std::string& str |
( |
| ) |
|
|
inlinevirtual |
Given only a numeric/enum value,.
For importing values. After assignment, update() should be called. Experimental
The documentation for this class was generated from the following file: