Visualization Library v1.0.3A lightweight C++ OpenGL middleware for 2D/3D graphics |
[Download] [Tutorials] [All Classes] [Grouped Classes] |
Simple class to manage flags in a type safe manner. More...
#include <Flags.hpp>
Public Types | |
typedef T_FlagEnum | flag_type |
typedef unsigned int | flag_storage |
Public Member Functions | |
Flags () | |
flag_storage | flags () const |
void | reset () |
Flags | operator| (const Flags &flag) const |
Flags | operator& (const Flags &flag) const |
Flags | operator^ (const Flags &flag) const |
Flags | operator- (const Flags &flag) const |
Flags & | set (T_FlagEnum flag) |
Flags & | unset (T_FlagEnum flag) |
Flags & | operator= (T_FlagEnum flag) |
Flags | operator| (T_FlagEnum flag) const |
Flags | operator& (T_FlagEnum flag) const |
Flags | operator^ (T_FlagEnum flag) const |
Flags | operator- (T_FlagEnum flag) const |
operator bool () const | |
Friends | |
template<typename T > | |
Flags< T > | operator| (T flag1, T flag2) |
template<typename T > | |
Flags< T > | operator& (T flag1, T flag2) |
Simple class to manage flags in a type safe manner.
Definition at line 39 of file Flags.hpp.
typedef unsigned int vl::Flags< T_FlagEnum >::flag_storage |
flag_storage vl::Flags< T_FlagEnum >::flags | ( | ) | const [inline] |
void vl::Flags< T_FlagEnum >::reset | ( | ) | [inline] |
Definition at line 94 of file Flags.hpp.
Referenced by vl::Flags< T_FlagEnum >::operator-().
Flags vl::Flags< T_FlagEnum >::operator- | ( | T_FlagEnum | flag ) | const [inline] |
Definition at line 127 of file Flags.hpp.
References vl::Flags< T_FlagEnum >::unset().
vl::Flags< T_FlagEnum >::operator bool | ( | ) | const [inline] |
Flags<T> operator| | ( | T | flag1, |
T | flag2 | ||
) | [friend] |
Flags<T> operator& | ( | T | flag1, |
T | flag2 | ||
) | [friend] |