Lines Matching refs:mFlags
42 constexpr Flags(F f) : mFlags(static_cast<U>(f)) {} in Flags()
43 constexpr Flags() : mFlags(0) {} in Flags()
44 constexpr Flags(const Flags<F>& f) : mFlags(f.mFlags) {} in Flags()
51 constexpr Flags(T t, std::enable_if_t<!is_scoped_enum_v<F>, T>* = nullptr) : mFlags(t) {} in mFlags() function
55 : mFlags(t) {} in mFlags() function
63 Iterator(Flags<F> flags) : mRemainingFlags(flags.mFlags) { (*this)++; } in Iterator()
119 return (f & mFlags) == f; in test()
123 bool any(Flags<F> f = ~Flags<F>()) const { return (mFlags & f.mFlags) != 0; }
126 bool all(Flags<F> f) const { return (mFlags & f.mFlags) == f.mFlags; } in all()
128 constexpr Flags<F> operator|(Flags<F> rhs) const { return static_cast<F>(mFlags | rhs.mFlags); }
130 mFlags = mFlags | rhs.mFlags;
134 Flags<F> operator&(Flags<F> rhs) const { return static_cast<F>(mFlags & rhs.mFlags); }
136 mFlags = mFlags & rhs.mFlags;
140 Flags<F> operator^(Flags<F> rhs) const { return static_cast<F>(mFlags ^ rhs.mFlags); }
142 mFlags = mFlags ^ rhs.mFlags;
146 Flags<F> operator~() { return static_cast<F>(~mFlags); }
148 bool operator==(Flags<F> rhs) const { return mFlags == rhs.mFlags; }
152 mFlags = rhs.mFlags;
171 U get() const { return mFlags; } in get()
198 U mFlags;