Flags turns enums into typesave flags It is strongly related (copied) from Useage: enum mDrawFlags { draw_none = 0x00, draw_ellipse = 0x01, draw_stats = 0x02, draw_center = 0x04, }; typedef Flags<mDrawFlags> DrawFlags;
More...
#include <Utils.h>
template<typename EnumType, typename Underlying = int>
class rdf::Flags< EnumType, Underlying >
Flags turns enums into typesave flags It is strongly related (copied) from Useage: enum mDrawFlags { draw_none = 0x00, draw_ellipse = 0x01, draw_stats = 0x02, draw_center = 0x04, }; typedef Flags<mDrawFlags> DrawFlags;
http://stackoverflow.com/questions/1448396/how-to-use-enums-as-flags-in-c/33971769#33971769 thanks A.
template<typename EnumType , typename Underlying = int>
template<typename EnumType , typename Underlying = int>
template<typename EnumType , typename Underlying = int>
template<typename EnumType , typename Underlying = int>
rdf::Flags< EnumType, Underlying >::operator RestrictedBool |
( |
| ) |
const |
|
inline |
template<typename EnumType , typename Underlying = int>
template<typename EnumType , typename Underlying = int>
template<typename EnumType , typename Underlying = int>
template<typename EnumType , typename Underlying = int>
Underlying rdf::Flags< EnumType, Underlying >::value |
( |
| ) |
const |
|
inline |
template<typename EnumType , typename Underlying = int>
Flags operator& |
( |
const Flags< EnumType, Underlying > & |
f1, |
|
|
const Flags< EnumType, Underlying > & |
f2 |
|
) |
| |
|
friend |
template<typename EnumType , typename Underlying = int>
Flags operator| |
( |
const Flags< EnumType, Underlying > & |
f1, |
|
|
const Flags< EnumType, Underlying > & |
f2 |
|
) |
| |
|
friend |
template<typename EnumType , typename Underlying = int>
Underlying rdf::Flags< EnumType, Underlying >::mFlags |
|
protected |
The documentation for this class was generated from the following file:
- /srv/ReadFramework/src/Core/Utils.h