Visualization Library 2.1.0
A 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.
typedef unsigned int vl::Flags< T_FlagEnum >::flag_storage |
|
inline |
Definition at line 52 of file Flags.hpp.
Referenced by vl::operator &(), and vl::operator|().
|
inline |
|
inline |
Definition at line 127 of file Flags.hpp.
References vl::Flags< T_FlagEnum >::unset().
|
inline |
Definition at line 94 of file Flags.hpp.
Referenced by vl::Flags< T_FlagEnum >::operator-().
Visualization Library 2.1.0 Reference Documentation
Updated on Wed Mar 10 2021 16:02:50.
© Copyright Michele Bosi. All rights reserved.