Public Types | Public Member Functions | Protected Attributes | List of all members
Flags2< F > Class Template Reference

Flagger with own dictionary, and accepting values of (integer) type T. More...

#include <Flags.h>

Inheritance diagram for Flags2< F >:
Inheritance graph
[legend]
Collaboration diagram for Flags2< F >:
Collaboration graph
[legend]

Public Types

typedef F fbase_t
 
typedef fbase_t::value_t value_t
 
typedef fbase_t::dict_t dict_t
 

Public Member Functions

virtual const dict_t & getDict () const
 
virtual dict_t & getDict ()
 
 Flags2 ()
 
 Flags2 (std::initializer_list< typename dict_t::entry_t > list)
 Constructor for relatively short dictionaries. More...
 
 Flags2 (const Flags2< F > &flags)
 
template<class T >
Flags2< F > & operator= (const T &v)
 

Protected Attributes

dict_t dict
 

Detailed Description

template<class F>
class drain::Flags2< F >

Flagger with own dictionary, and accepting values of (integer) type T.

Designed for local, instantaneous use. Should several flaggers use the same dictionary, use Flagger2<F> instead.

Template Parameters
F– SingleFlagger<T> or MultiFlagger<T>

Constructor & Destructor Documentation

◆ Flags2() [1/2]

Flags2 ( )
inline

If the dictionary is small, consider short init: Flags2({"A",1}, {"B",2}}

◆ Flags2() [2/2]

Flags2 ( std::initializer_list< typename dict_t::entry_t >  list)
inline

Constructor for relatively short dictionaries.

Flags2 flags({"A",1}, {"B",2}});
Flags2()
Definition: Flags.h:933

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