12template<
typename T =
int,
typename S =
int>
16 static_assert(std::is_integral_v<T> || std::is_enum_v<T> || std::is_integral_v<S> || std::is_enum_v<S>,
"Type S and T must be an integral or enum type.");
52 bool has(T bit)
const;
110#include <misc/gen/TSet.hpp>
Template class for managing bit maks preferably when bits are defined as enumerate values.
Definition TSet.h:14
bool contains(T bit) const
Operators and functions that are also available in the VCL 'Set' template.
bool operator!=(const TSet &set) const
Compare unequal operator.
TSet(const TSet &set)
Copy constructor.
Definition TSet.h:25
TSet & operator<<(T bit)
Operator for adding bits to the mask.
TSet & operator=(const TSet &set)
assign operator.
TSet & reset()
Resets all bits in the mask.
TSet & unset(T bit)
Unsets bits in the mask.
TSet & toggle(T bit)
Toggles a bit in the mask.
TSet & operator>>(T bit)
Operator for removing bits from the mask.
S & getBits()
Gets a reference to the storage integral typed value.
bool operator==(const TSet &set) const
Compare equal operator.
TSet(S bits)
Initializing constructor.
TSet & set(T bit)
Sets bits in the mask.
bool has(T bit) const
Returns true when the bit was Set.
S getBits() const
Gets a copy of the storage integral typed value.
Definition Application.h:10