Photon Engine 2.0.0-beta
A physically based renderer.
|
Manipulate a value type where each bit is a binary flag. More...
#include <TBitFlags.h>
Public Member Functions | |
constexpr | TBitFlags () |
Creates an instance with no flags. | |
constexpr | TBitFlags (const FlagsSet &flagsSet) |
Create with initial flags set. | |
constexpr | TBitFlags (Input flagsSet) |
Create with initial flags set. | |
template<typename OtherInput > | |
constexpr | TBitFlags (const TBitFlags< Value, OtherInput > &otherFlags) |
Copy construct flags from another TBitFlags with a different Input type. | |
constexpr TBitFlags & | intersectWith (const FlagsSet &flagsSet) |
Intersects this instance with the specified flags. | |
constexpr bool | hasNone (const FlagsSet &flagsSet) const |
Checks whether this instance contains no specified flags. | |
constexpr bool | hasAny (const FlagsSet &flagsSet) const |
Checks whether this instance contains at least one of the specified flags. | |
constexpr bool | hasAll (const FlagsSet &flagsSet) const |
Checks whether this instance contains all of the specified flags. | |
constexpr bool | hasExactly (const FlagsSet &flagsSet) const |
Checks whether this instance contains exactly the specified flags. No more, no less. | |
constexpr bool | hasNone (Input flagsSet) const |
Checks whether this instance contains no specified flags. | |
constexpr bool | hasAny (Input flagsSet) const |
Checks whether this instance contains at least one of the specified flags. | |
constexpr bool | hasAll (Input flagsSet) const |
Checks whether this instance contains all of the specified flags. | |
constexpr bool | hasExactly (Input flagsSet) const |
Checks whether this instance contains exactly the specified flags. No more, no less. | |
constexpr bool | has (Input singleFlag) const |
Checks whether this single flag is fully contained. | |
constexpr bool | hasNo (Input singleFlag) const |
Checks whether this single flag is fully absent. | |
constexpr bool | isEmpty () const |
Checks whether this instance contains no flags. | |
constexpr bool | isEqual (const TBitFlags &other) const |
constexpr Value | get () const |
Get the value representing current flags. | |
constexpr TBitFlags & | set (const FlagsSet &flagsSet) |
constexpr TBitFlags & | set (Input flagsSet) |
constexpr Input | getEnum () const |
Get the enum representing current flags. This method is only defined for enum flags. | |
constexpr TBitFlags & | unionWith (const FlagsSet &flagsSet) |
Unions specified flags into this instance. | |
constexpr TBitFlags & | unionWith (const TBitFlags &flags) |
constexpr TBitFlags & | turnOn (const FlagsSet &flagsSet) |
Enable/disable specified flags. | |
constexpr TBitFlags & | turnOff (const FlagsSet &flagsSet) |
Manipulate a value type where each bit is a binary flag.
Value | The underlying value type of this class. Must be an integral. |
Input | The input type for the manipulation of flags. Can be integral, scoped/unscoped enum. |
|
inlineconstexpr |
Creates an instance with no flags.
|
inlineexplicitconstexpr |
Create with initial flags set.
|
inlineexplicitconstexpr |
Create with initial flags set.
|
inlineexplicitconstexpr |
Copy construct flags from another TBitFlags
with a different Input
type.
|
inlineconstexpr |
Get the value representing current flags.
|
inlineconstexpr |
Get the enum representing current flags. This method is only defined for enum flags.
|
inlineconstexpr |
Checks whether this single flag is fully contained.
singleFlag | The flag to test. If the flag combines multiple flags, this method is effectively the same as hasAll() . |
|
inlineconstexpr |
Checks whether this instance contains all of the specified flags.
|
inlineconstexpr |
Checks whether this instance contains all of the specified flags.
|
inlineconstexpr |
Checks whether this instance contains at least one of the specified flags.
|
inlineconstexpr |
Checks whether this instance contains at least one of the specified flags.
|
inlineconstexpr |
Checks whether this instance contains exactly the specified flags. No more, no less.
|
inlineconstexpr |
Checks whether this instance contains exactly the specified flags. No more, no less.
|
inlineconstexpr |
Checks whether this single flag is fully absent.
singleFlag | The flag to test. If the flag combines multiple flags, this method is effectively the same as hasNone() . |
|
inlineconstexpr |
Checks whether this instance contains no specified flags.
|
inlineconstexpr |
Checks whether this instance contains no specified flags.
|
inlineconstexpr |
Intersects this instance with the specified flags.
|
inlineconstexpr |
Checks whether this instance contains no flags.
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
Enable/disable specified flags.
|
inlineconstexpr |
Unions specified flags into this instance.
|
inlineconstexpr |