![]() |
Spicy
|
#include <type.h>
Public Member Functions | |
Flags (Flag f) | |
Flags (const Flags &)=default | |
Flags (Flags &&) noexcept=default | |
bool | has (Flag f) const |
void | set (type::Flag flag, bool set=true) |
Flags | operator+ (Flag f) |
Flags | operator+ (const Flags &other) const |
Flags & | operator+= (Flag f) |
Flags & | operator+= (const Flags &other) |
Flags | operator- (const Flags &other) const |
Flags & | operator-= (Flag f) |
Flags & | operator-= (const Flags &other) |
Flags & | operator= (Flag f) |
Flags & | operator= (const Flags &)=default |
Flags & | operator= (Flags &&) noexcept=default |
bool | operator== (Flags other) const |
bool | operator!= (Flags other) const |
Stores a set of flags associated with a type.
TODO: Replace with 3rd-party/ArticleEnumClass-v2/EnumClass.h
|
inline |
Returns true if a given flag has been set.
|
inline |
Sets (or clear) a given flag.