Lines Matching refs:mask
38 /// Constructs this object with \a mask as the initial value for all
41 /// @param[in] mask
109 /// @param[in] mask
113 /// The new flags after clearing all bits from \a mask.
116 Clear (ValueType mask = ~(ValueType)0)
118 m_flags &= ~mask;
124 /// Set one or more flags by logical OR'ing \a mask with the current
127 /// @param[in] mask
131 /// The new flags after setting all bits from \a mask.
134 Set (ValueType mask)
136 m_flags |= mask;
142 /// Test if all bits in \a mask are 1 in the current flags
145 /// \b true if all flags in \a mask are 1, \b false
149 AllSet (ValueType mask) const
151 return (m_flags & mask) == mask;
158 /// \b true if any flags in \a mask are 1, \b false
162 AnySet (ValueType mask) const
164 return (m_flags & mask) != 0;
180 /// Test if all bits in \a mask are clear.
183 /// \b true if \b all flags in \a mask are clear, \b false
187 AllClear (ValueType mask) const
189 return (m_flags & mask) == 0;
193 AnyClear (ValueType mask) const
195 return (m_flags & mask) != mask;
238 for (ValueType mask = m_flags; mask; mask >>= 1)
240 if (mask & 1u)