Flutter Engine
The Flutter Engine
|
#include <SkEnumBitMask.h>
Public Member Functions | |
SK_ALWAYS_INLINE constexpr | SkEnumBitMask (E e) |
SK_ALWAYS_INLINE constexpr | operator bool () const |
SK_ALWAYS_INLINE constexpr int | value () const |
SK_ALWAYS_INLINE constexpr bool | operator== (SkEnumBitMask m) const |
SK_ALWAYS_INLINE constexpr bool | operator!= (SkEnumBitMask m) const |
SK_ALWAYS_INLINE constexpr SkEnumBitMask | operator| (SkEnumBitMask m) const |
SK_ALWAYS_INLINE constexpr SkEnumBitMask | operator& (SkEnumBitMask m) const |
SK_ALWAYS_INLINE constexpr SkEnumBitMask | operator^ (SkEnumBitMask m) const |
SK_ALWAYS_INLINE constexpr SkEnumBitMask | operator~ () const |
SK_ALWAYS_INLINE SkEnumBitMask & | operator|= (SkEnumBitMask m) |
SK_ALWAYS_INLINE SkEnumBitMask & | operator&= (SkEnumBitMask m) |
SK_ALWAYS_INLINE SkEnumBitMask & | operator^= (SkEnumBitMask m) |
Wraps an enum that is used for flags, and enables masking with type safety. Example:
enum class MyFlags { kNone = 0, kA = 1, kB = 2, kC = 4, };
...
SkEnumBitMask<MyFlags> flags = MyFlags::kA | MyFlags::kB; if (flags & MyFlags::kB) {}
...
Definition at line 34 of file SkEnumBitMask.h.
|
inlineconstexpr |
Definition at line 36 of file SkEnumBitMask.h.
|
inlineexplicitconstexpr |
Definition at line 38 of file SkEnumBitMask.h.
|
inlineconstexpr |
Definition at line 42 of file SkEnumBitMask.h.
|
inlineconstexpr |
Definition at line 47 of file SkEnumBitMask.h.
|
inline |
Definition at line 56 of file SkEnumBitMask.h.
|
inlineconstexpr |
Definition at line 41 of file SkEnumBitMask.h.
|
inlineconstexpr |
Definition at line 50 of file SkEnumBitMask.h.
|
inline |
Definition at line 57 of file SkEnumBitMask.h.
|
inlineconstexpr |
Definition at line 44 of file SkEnumBitMask.h.
|
inline |
Definition at line 55 of file SkEnumBitMask.h.
|
inlineconstexpr |
Definition at line 53 of file SkEnumBitMask.h.
|
inlineconstexpr |
Definition at line 39 of file SkEnumBitMask.h.