ug4
|
Helps maintaining, activating and deactivating a set of flags from an enum. More...
#include <flags.h>
Public Member Functions | |
Flag & | add (TStorageType flag) |
bool | contains (const Flag &flag) const |
bool | contains (TStorageType flag) const |
Flag () | |
Flag (const Flag &flag) | |
Flag (TStorageType flag) | |
TStorageType | get () const |
bool | operator!= (const Flag &flag) const |
bool | operator!= (TStorageType val) const |
Flag | operator& (const Flag &flag) const |
Flag | operator&= (const Flag &flag) |
TStorageType | operator() () const |
Flag | operator= (const Flag &flag) |
Flag | operator= (TStorageType val) |
bool | operator== (const Flag &flag) const |
bool | operator== (TStorageType val) const |
Flag | operator| (const Flag &flag) const |
Flag | operator|= (const Flag &flag) |
bool | partially_contains (const Flag &flag) const |
bool | partially_contains (TStorageType flag) const |
Flag & | remove (TStorageType flag) |
Flag & | set (TStorageType flag) |
Private Attributes | |
TStorageType | m_value |
Helps maintaining, activating and deactivating a set of flags from an enum.
Given an enum
One can use the Flag class as follows:
|
inline |
|
inline |
|
inline |
|
inline |
References ug::Flag< TEnum, TStorageType, defaultValue >::m_value.
Referenced by ug::AssignSubsetsBySurfaceViewState().
|
inline |
|
inline |
|
inline |
|
inline |
References ug::Flag< TEnum, TStorageType, defaultValue >::m_value.
Referenced by ug::ExchangeAndAdjustSideErrors(), ug::SurfaceView::SurfaceViewElementIterator< TElem >::is_contained(), ug::SurfaceView::ConstSurfaceViewElementIterator< TElem >::is_contained(), ug::SurfaceView::is_contained(), ug::SurfaceView::is_shadowed(), ug::MarkForAdaption_GradientAverage(), and ug::SurfaceView::surface_state().
|
private |
Referenced by ug::Flag< TEnum, TStorageType, defaultValue >::add(), ug::Flag< TEnum, TStorageType, defaultValue >::contains(), ug::Flag< TEnum, TStorageType, defaultValue >::get(), ug::Flag< TEnum, TStorageType, defaultValue >::operator!=(), ug::Flag< TEnum, TStorageType, defaultValue >::operator&(), ug::Flag< TEnum, TStorageType, defaultValue >::operator&=(), ug::Flag< TEnum, TStorageType, defaultValue >::operator()(), ug::Flag< TEnum, TStorageType, defaultValue >::operator=(), ug::Flag< TEnum, TStorageType, defaultValue >::operator==(), ug::Flag< TEnum, TStorageType, defaultValue >::operator|(), ug::Flag< TEnum, TStorageType, defaultValue >::operator|=(), ug::Flag< TEnum, TStorageType, defaultValue >::partially_contains(), ug::Flag< TEnum, TStorageType, defaultValue >::remove(), and ug::Flag< TEnum, TStorageType, defaultValue >::set().