Lines Matching refs:observers_
118 : list->observers_.size()) { in Iter()
190 return list_->observers_[index_]; in GetCurrent()
196 while (index_ < max_index && !list_->observers_[index_]) in EnsureValidIndex()
201 return std::min(max_index_, list_->observers_.size()); in clamped_max_index()
220 return observers_.empty() ? const_iterator() : const_iterator(this); in begin()
231 DCHECK(observers_.empty()); in ~ObserverList()
246 observers_.push_back(obs); in AddObserver()
253 const auto it = std::find(observers_.begin(), observers_.end(), obs); in RemoveObserver()
254 if (it == observers_.end()) in RemoveObserver()
261 observers_.erase(it); in RemoveObserver()
267 return ContainsValue(observers_, obs); in HasObserver()
274 std::fill(observers_.begin(), observers_.end(), nullptr); in Clear()
276 observers_.clear(); in Clear()
280 bool might_have_observers() const { return !observers_.empty(); } in might_have_observers()
285 observers_.erase(std::remove(observers_.begin(), observers_.end(), nullptr), in Compact()
286 observers_.end()); in Compact()
289 std::vector<ObserverType*> observers_; variable