Home | History | Annotate | Download | only in ceres

Lines Matching defs:it

66     typename map<T, int>::const_iterator it = element_to_group_.find(element);
67 if (it != element_to_group_.end()) {
68 if (it->second == group) {
73 group_to_elements_[it->second].erase(element);
74 if (group_to_elements_[it->second].size() == 0) {
75 group_to_elements_.erase(it->second);
89 // Remove the element, no matter what group it is in. Return value
100 // If the group is empty, then get rid of it.
124 typename map<int, set<T> >::reverse_iterator it =
127 new_group_to_elements[it->first] = it->second;
129 int new_group_id = it->first + 1;
130 for (++it; it != group_to_elements_.rend(); ++it) {
131 for (typename set<T>::const_iterator element_it = it->second.begin();
132 element_it != it->second.end();
136 new_group_to_elements[new_group_id] = it->second;
146 typename map<T, int>::const_iterator it = element_to_group_.find(element);
147 if (it == element_to_group_.end()) {
150 return it->second;
154 typename map<T, int>::const_iterator it = element_to_group_.find(element);
155 return (it != element_to_group_.end());
161 typename map<int, set<T> >::const_iterator it =
163 return (it == group_to_elements_.end()) ? 0 : it->second.size();