Lines Matching refs:mask
29 /// Constructs this object with \a mask as the initial value for all of the
32 /// \param[in] mask
56 /// \param[in] mask
60 /// The new flags after clearing all bits from \a mask.
61 ValueType Clear(ValueType mask = ~static_cast<ValueType>(0)) {
62 m_flags &= ~mask;
66 /// Set one or more flags by logical OR'ing \a mask with the current flags.
68 /// \param[in] mask
72 /// The new flags after setting all bits from \a mask.
73 ValueType Set(ValueType mask) {
74 m_flags |= mask;
78 /// Test if all bits in \a mask are 1 in the current flags
81 /// \b true if all flags in \a mask are 1, \b false
83 bool AllSet(ValueType mask) const { return (m_flags & mask) == mask; }
88 /// \b true if any flags in \a mask are 1, \b false
90 bool AnySet(ValueType mask) const { return (m_flags & mask) != 0; }
98 /// Test if all bits in \a mask are clear.
101 /// \b true if \b all flags in \a mask are clear, \b false
103 bool AllClear(ValueType mask) const { return (m_flags & mask) == 0; }
105 bool AnyClear(ValueType mask) const { return (m_flags & mask) != mask; }