Public Types | Public Member Functions | List of all members
SingleFlagger< E > Class Template Reference
Inheritance diagram for SingleFlagger< E >:
Inheritance graph
[legend]
Collaboration diagram for SingleFlagger< E >:
Collaboration graph
[legend]

Public Types

typedef E ivalue_t
 
typedef FlagResolver::dict_t dict_t
 
typedef dict_t::key_t key_t
 
typedef dict_t::value_t dvalue_t
 
- Public Types inherited from FlaggerBase< E >
typedef E value_t
 
typedef FlagResolver::dict_t dict_t
 
typedef dict_t::key_t key_t
 
typedef dict_t::value_t dict_value_t
 

Public Member Functions

 SingleFlagger (ivalue_t v)
 
virtual void assign (const std::string &s)
 
template<class T >
SingleFlagger< E > & operator= (const T &v)
 
virtual const key_t & str () const
 String corresponding the current value. Returns empty, if not found.
 
- Public Member Functions inherited from FlaggerBase< E >
 FlaggerBase (dict_value_t &v)
 Own value will be unused (and invisible). More...
 
virtual const dict_tgetDict () 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
 

Additional Inherited Members

- Public Attributes inherited from FlaggerBase< E >
dict_value_t & value
 
char separator
 

The documentation for this class was generated from the following file: