|
|
constexpr | FlagSet (Integer value) |
| | Ctor by integer.
|
| |
|
constexpr | FlagSet ()=default |
| | Empty constructor.
|
| |
|
constexpr | FlagSet (const FlagSet &another)=default |
| | Copy constructor.
|
| |
|
constexpr | FlagSet (const Enum value) |
| | Construct from Enum value.
|
| |
|
constexpr FlagSet & | operator= (const FlagSet &rhs)=default |
| | Assignment operator from flagset.
|
| |
|
constexpr FlagSet & | operator&= (const Enum value) |
| | Bitwise AND against Enum value.
|
| |
|
constexpr FlagSet & | operator&= (const FlagSet value) |
| | Bitwise AND against flagset value.
|
| |
|
constexpr FlagSet & | operator|= (const Enum value) |
| | Bitwise OR against Enum value.
|
| |
|
constexpr FlagSet & | operator|= (const FlagSet value) |
| | Bitwise OR against flagset value.
|
| |
|
constexpr FlagSet & | operator^= (const Enum value) |
| | Bitwise XOR against Enum value.
|
| |
|
constexpr FlagSet & | operator^= (const FlagSet value) |
| | Bitwise XOR against flagset value.
|
| |
|
constexpr FlagSet | operator& (const Enum value) const |
| | Bitwise AND against Enum value.
|
| |
|
constexpr FlagSet | operator& (const FlagSet value) const |
| | Bitwise AND against flagset value.
|
| |
|
constexpr FlagSet | operator| (const Enum value) const |
| | Bitwise OR against Enum value.
|
| |
|
constexpr FlagSet | operator| (const FlagSet value) const |
| | Bitwise OR against flagset value.
|
| |
|
constexpr FlagSet | operator^ (const Enum value) const |
| | Bitwise XOR against Enum value.
|
| |
|
constexpr FlagSet | operator^ (const FlagSet value) const |
| | Bitwise XOR against flagset value.
|
| |
|
constexpr FlagSet | operator~ () const |
| | Bitwise negation.
|
| |
|
constexpr bool | operator! () const |
| | Boolean negation.
|
| |
|
constexpr | operator bool () const |
| | Returns true if any flag is set.
|
| |
|
constexpr | operator Integer () const |
| | Cast to underlying type of enum.
|
| |
|
constexpr | operator Enum () const |
| | Cast to enum value.
|
| |
|
| operator double () const |
| | Cast to double. Used by Lua bindings.
|
| |
|
constexpr bool | operator== (Enum rhs) const |
| | Equality check against enum value.
|
| |
|
constexpr bool | operator== (FlagSet rhs) const |
| | Equality check against another flagset.
|
| |
|
constexpr bool | operator!= (Enum rhs) const |
| | Non-equality check against enum value.
|
| |
|
constexpr bool | operator!= (FlagSet rhs) const |
| | Non-equality check against another flagset value.
|
| |
|
constexpr bool | Test (const Enum value) const |
| | Return true if specified enum value is set.
|
| |
|
constexpr bool | Test (const Integer flags) const |
| | Return true if specified bits are set.
|
| |
|
constexpr bool | IsAllOf (Integer flags) const |
| | Return true if all of specified flags are set.
|
| |
|
constexpr bool | IsAllOf (Enum value) const |
| |
|
constexpr bool | IsAnyOf (Integer flags) const |
| | Return true if any of specified flags are set.
|
| |
|
constexpr bool | IsAnyOf (Enum value) const |
| |
|
constexpr bool | IsNoneOf (Integer flags) const |
| | Return true of none of specified flags are set.
|
| |
|
constexpr bool | IsNoneOf (Enum value) const |
| |
|
constexpr bool | IsBitSet (unsigned bit) const |
| | Return value of bit.
|
| |
|
constexpr Integer | AsInteger () const |
| | Return underlying integer (constant).
|
| |
|
constexpr Integer & | AsInteger () |
| | Return underlying integer (non-constant).
|
| |
|
constexpr unsigned | ToHash () const |
| | Return hash value.
|
| |
|
| constexpr void | Set (Integer flags, bool enabled=true) |
| |
|
constexpr void | Set (Enum value, bool enabled=true) |
| |
|
constexpr void | Unset (Integer flags) |
| |
|
constexpr void | Unset (Enum value) |
| |
|
constexpr void | SetBit (unsigned bit, bool enabled=true) |
| |
|
constexpr void | UnsetBit (unsigned bit) |
| |
template<class E>
class Urho3D::FlagSet< E >
A set of flags defined by an Enum.