return *this;
}
- /**
- * Verifies whether any bit in the flags is set.
- *
- * @return True if any flag bit is set; false otherwise.
- */
- bool isSet() const { return _flags; }
-
/**
* Verifies whether any bit matching the given mask is set.
*
*/
bool isSet(Type mask) const { return (_flags & mask); }
- /**
- * Verifies whether all bits in the flags are set.
- *
- * @return True if all flag bits are set; false otherwise.
- */
- bool allSet() const { return !(~_flags); }
-
/**
* Verifies whether no bits matching the given mask are set.
*
*/
bool allSet(Type mask) const { return (_flags & mask) == mask; }
- /**
- * Verifies whether no bits in the flags are set.
- *
- * @return True if all flag bits are cleared; false otherwise.
- */
- bool noneSet() const { return _flags == 0; }
-
/**
* Verifies whether no bits matching the given mask are set.
*
* @param mask Mask used to determine which bits are replaced.
*/
void
- update(Type flags, Type mask)
+ replace(Type flags, Type mask)
{
_flags = (_flags & ~mask) | (flags & mask);
}