Lines Matching refs:vector_
180 bool IsUsingVector() const { return vector_ != NULL; } in IsUsingVector()
203 std::vector<ElementType>* vector_; variable
265 sorted_(true), size_(0), vector_(NULL) { in InvalSet()
275 delete vector_; in ~InvalSet() local
286 vector_->push_back(element); in insert()
292 vector_ = new std::vector<ElementType>(preallocated_, in insert()
294 vector_->push_back(element); in insert()
300 cached_min_index_ = IsUsingVector() ? vector_->size() - 1 : size_ - 1; in insert()
359 vector_->clear(); in clear()
399 VIXL_ASSERT((&(vector_->front()) <= element) && in EraseInternal()
400 (element <= &(vector_->back()))); in EraseInternal()
497 ElementType* start = &(vector_->front()); in Clean()
498 ElementType* end = start + vector_->size(); in Clean()
520 vector_->erase(vector_->begin() + (first_invalid - start), vector_->end()); in Clean()
521 VIXL_ASSERT(vector_->size() == size_); in Clean()
536 return IsUsingVector() ? vector_->front() : preallocated_[0]; in Front()
543 return IsUsingVector() ? vector_->back() : preallocated_[size_ - 1]; in Back()
552 typename std::vector<ElementType>::reverse_iterator it = vector_->rbegin(); in CleanBack()
556 vector_->erase(it.base(), vector_->end()); in CleanBack()
564 return IsUsingVector() ? &(vector_->front()) : preallocated_; in StorageBegin()
570 return IsUsingVector() ? &(vector_->back()) + 1 : preallocated_ + size_; in StorageEnd()
576 return IsUsingVector() ? &(vector_->front()) : preallocated_; in StorageBegin()
582 return IsUsingVector() ? &(vector_->back()) + 1 : preallocated_ + size_; in StorageEnd()
598 (IsUsingVector() && (index < vector_->size())) || (index < size_)); in ElementAt()
605 (IsUsingVector() && (index < vector_->size())) || (index < size_)); in ElementAt()
645 size_t n_invalid_elements = vector_->size() - size_; in ShouldReclaimMemory()
647 (n_invalid_elements > vector_->size() / RECLAIM_FACTOR); in ShouldReclaimMemory()
670 inval_set_->vector_->begin()); in InvalSetIterator()
716 bool done = (iterator_ == inval_set_->vector_->end()); in Done()
729 iterator_ = inval_set_->vector_->end(); in Finish()
761 while ((iterator_ != inval_set_->vector_->end()) && !IsValid(*iterator_)) { in MoveToValidElement()