Lines Matching defs:const
48 int operator*() const {
53 bool operator!=(const Iterator& other) const {
67 explicit Iterator(const BitVector* target, StartTag)
75 explicit Iterator(const BitVector* target, EndTag)
83 bool Done() const { return current_index_ >= target_->data_length_; }
85 const BitVector* target_;
93 static const int kDataLengthForInline = 1;
94 static const int kDataBits = kBitsPerSystemPointer;
95 static const int kDataBitShift = kBitsPerSystemPointerLog2;
96 static const uintptr_t kOne = 1; // This saves some static_casts.
110 BitVector(const BitVector& other, Zone* zone)
132 void CopyFrom(const BitVector& other) {
172 bool Contains(int i) const {
207 void Union(const BitVector& other) {
219 bool UnionIsChanged(const BitVector& other) {
237 void Intersect(const BitVector& other) {
249 bool IntersectIsChanged(const BitVector& other) {
267 void Subtract(const BitVector& other) {
289 bool IsEmpty() const {
300 bool Equals(const BitVector& other) const {
313 int Count() const;
315 int length() const { return length_; }
317 Iterator begin() const { return Iterator(this, Iterator::kStartTag); }
319 Iterator end() const { return Iterator(this, Iterator::kEndTag); }
322 void Print() const;
332 bool is_inline() const { return data_length_ == kDataLengthForInline; }
340 bool Contains(int value) const {
352 int length() const { return bits_.length(); }
354 bool Equals(const GrowableBitVector& other) const {
358 BitVector::Iterator begin() const { return bits_.begin(); }
360 BitVector::Iterator end() const { return bits_.end(); }
365 bool InBitsRange(int value) const { return bits_.length() > value; }