|
template<class T2 > |
GlobalFlags< T > & | operator= (const T2 &x) |
| Sets value, ie. set or unsets all the flags.
|
|
| MultiFlagger (const dict_t &dict) |
|
| MultiFlagger (const dict_t &dict, const V &... args) |
|
| MultiFlagger (const dict_t &dict, storage_t &target, char sep=',') |
|
virtual const dict_t & | getDict () const override |
| Returns the static dictionary created for this value_t . More...
|
|
virtual bool | isSet (const storage_t &x) const override |
| Return true, all the bits of argument x are set.
|
|
void | unset (const storage_t &x) |
| Unset some bit(s).
|
|
void | set (const V &... args) |
| Set bits, accepting numeric values or keys. More...
|
|
void | add (const V &arg, const VV &... args) |
| Add bit values.
|
|
virtual const key_t & | str () const override |
| For exporting values.
|
|
virtual std::string & | str () |
| For importing values. After assignment, update() should be called. Experimental.
|
|
| FlaggerBase (char separator=',') |
|
| FlaggerBase (storage_t &v, char separator=',') |
| Value-referencing constructor. More...
|
|
virtual void | reset () |
|
virtual void | set (const key_t &key) |
| Sets one or several flags.
|
|
virtual void | set (const value_t &value) |
| Set a single flag.
|
|
virtual void | set (const FlaggerBase< E > &flagger) |
|
bool | isSet (const key_t &key) const |
|
const storage_t & | getValue () const |
|
| operator const storage_t & () const |
| Given an integer, retrieves dictionary keys corresponding to each index of set bits.
|
|
| operator storage_t & () |
|
| operator bool () const |
|
| operator const key_t & () const |
|
void | debug (std::ostream &ostr) const |
|
template<class T>
class drain::GlobalFlags< T >
Flags using a global dictionary.