33 #ifndef __H__UG__flags__
34 #define __H__UG__flags__
62 template <
class TEnum,
class TStorageType =
unsigned int, TStorageType defaultValue = 0>
Helps maintaining, activating and deactivating a set of flags from an enum.
Definition: flags.h:63
Flag()
Definition: flags.h:65
Flag operator=(const Flag &flag)
Definition: flags.h:83
TStorageType operator()() const
Definition: flags.h:86
Flag operator|=(const Flag &flag)
Definition: flags.h:82
Flag & set(TStorageType flag)
Definition: flags.h:75
Flag(TStorageType flag)
Definition: flags.h:66
TStorageType m_value
Definition: flags.h:96
bool partially_contains(const Flag &flag) const
Definition: flags.h:73
Flag operator&(const Flag &flag) const
Definition: flags.h:79
Flag operator&=(const Flag &flag)
Definition: flags.h:80
Flag operator|(const Flag &flag) const
Definition: flags.h:81
bool operator!=(const Flag &flag) const
Definition: flags.h:92
Flag & add(TStorageType flag)
Definition: flags.h:76
TStorageType get() const
Definition: flags.h:87
bool operator==(const Flag &flag) const
Definition: flags.h:89
Flag & remove(TStorageType flag)
Definition: flags.h:77
bool contains(TStorageType flag) const
Definition: flags.h:69
bool contains(const Flag &flag) const
Definition: flags.h:70
bool partially_contains(TStorageType flag) const
Definition: flags.h:72
Flag(const Flag &flag)
Definition: flags.h:67