|
|
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 .
|
| |
|
virtual bool | isSet (const storage_t &x) const override |
| | Return true, all the bits of argument x are set.
|
| |
|
bool | isAnySet (const storage_t &x) const |
| | 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.
|
| |
|
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.
|
| |
|
virtual void | reset () |
| |
| virtual bool | isSet (const storage_t &x) const =0 |
| | Checks if a given bit, or any of given bits, is set.
|
| |
|
bool | isSet (const key_t &key) const |
| |
|
const storage_t & | getValue () const |
| |
|
| operator const storage_t & () const |
| |
|
| operator storage_t & () |
| |
|
| operator bool () const |
| |
|
| operator const key_t & () const |
| |
|
void | debug (std::ostream &ostr) const |
| |
|
|
typedef int | value_t |
| |
|
typedef size_t | storage_t |
| |
|
typedef FlaggerBase< int, size_t > | flagger_t |
| |
|
typedef flagger_t::dict_t | dict_t |
| |
|
typedef dict_t::key_t | key_t |
| |
|
typedef E | value_t |
| |
|
typedef T | storage_t |
| |
|
typedef Dictionary< std::string, E > | dict_t |
| |
|
typedef dict_t::key_t | key_t |
| |
|
storage_t & | value |
| |
|
char | separator |
| |
|
void | add () |
| |
| virtual void | assign (const std::string &s) override |
| | Split a string to separate keys and/or values and set them.
|
| |
|
void | addOne (const key_t &key) |
| |
|
void | addOne (const storage_t &value) |
| |
|
void | addOne (const T2 &value) |
| |
|
| FlaggerBase (char separator=',') |
| |
| | FlaggerBase (storage_t &v, char separator=',') |
| | Value-referencing constructor.
|
| |
|
const dict_t & | dict |
| |
|
std::string | currentStr |
| |
template<class T>
class drain::GlobalFlags< T >
Flags using a global dictionary.