Lines Matching refs:observers_
86 list.observers_.size()) { in Iterator()
96 ListType& observers = list_.observers_; in GetNext()
116 DCHECK(find(observers_.begin(), observers_.end(), obs) == observers_.end()) in AddObserver()
118 observers_.push_back(obs); in AddObserver()
124 std::find(observers_.begin(), observers_.end(), obs); in RemoveObserver()
125 if (it != observers_.end()) { in RemoveObserver()
129 observers_.erase(it); in RemoveObserver()
135 for (size_t i = 0; i < observers_.size(); ++i) { in HasObserver()
136 if (observers_[i] == observer) in HasObserver()
144 for (typename ListType::iterator it = observers_.begin(); in Clear()
145 it != observers_.end(); ++it) { in Clear()
149 observers_.clear(); in Clear()
153 size_t size() const { return observers_.size(); } in size()
157 typename ListType::iterator it = observers_.begin(); in Compact()
158 while (it != observers_.end()) { in Compact()
162 it = observers_.erase(it); in Compact()
172 ListType observers_; variable