Index
Modules
Classes
Toggle main menu visibility
Main Page
Modules
Packages
Package List
Package Members
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
Enumerations
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
Enumerator
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
x
Classes
Class List
Class Hierarchy
Class Members
All
:
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
x
Enumerations
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
z
Properties
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
x
y
z
Related Functions
:
a
b
c
d
e
f
g
i
l
m
n
o
p
r
s
t
u
v
w
Related Pages
•
All
Classes
Namespaces
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Modules
Pages
enum_traits< T > Struct Template Reference
#include <Bitmask.h>
Detailed Description
template<class T = void>
struct enum_traits< T >
Using enum classes as type-safe bitmasks.
enum class
Color {
Red = 1 << 0,
Green = 1 << 1,
Blue = 1 << 2
};
ENABLE_BITMASK_OPERATORS(Color)
Color yellow = Color::Red | Color::Green;
Flags<Color> flags(yellow);
flags.testFlag(Color::Red);
flags.testFlag(Color::Green);
The documentation for this struct was generated from the following file:
FreeCAD/src/Base/Bitmask.h
Generated by
1.9.4