Lines Matching full:bits_
931 explicit EnumSet(T bits = 0) : bits_(bits) {}
932 bool IsEmpty() const { return bits_ == 0; }
933 bool Contains(E element) const { return (bits_ & Mask(element)) != 0; }
935 return (bits_ & set.bits_) != 0;
937 void Add(E element) { bits_ |= Mask(element); }
938 void Add(const EnumSet& set) { bits_ |= set.bits_; }
939 void Remove(E element) { bits_ &= ~Mask(element); }
940 void Remove(const EnumSet& set) { bits_ &= ~set.bits_; }
941 void RemoveAll() { bits_ = 0; }
942 void Intersect(const EnumSet& set) { bits_ &= set.bits_; }
943 T ToIntegral() const { return bits_; }
944 bool operator==(const EnumSet& set) { return bits_ == set.bits_; }
954 T bits_;