Home
last modified time | relevance | path

Searched refs:itr (Results 1 – 25 of 217) sorted by relevance

123456789

/third_party/boost/tools/inspect/
Dinspect.cpp218 for ( inspector_list::const_iterator itr = insp_list.begin(); in check() local
219 itr != insp_list.end(); ++itr ) in check()
221 itr->inspector->inspect( lib, pth ); // always call two-argument form in check()
222 if ( find_signature( pth, itr->inspector->signatures() ) ) in check()
224 itr->inspector->inspect( lib, pth, content ); in check()
238 for ( DirectoryIterator itr( dir_path ); itr != end_itr; ++itr ) in visit_all() local
240 if ( fs::is_directory( *itr ) ) in visit_all()
242 if ( visit_predicate( *itr ) ) in visit_all()
244 string cur_lib( boost::inspect::impute_library( *itr ) ); in visit_all()
245 check( cur_lib, *itr, "", insps ); in visit_all()
[all …]
/third_party/mesa3d/src/gallium/drivers/lima/ir/
Dlima_nir_duplicate_intrinsic.c29 lima_nir_duplicate_intrinsic(nir_builder *b, nir_intrinsic_instr *itr, in lima_nir_duplicate_intrinsic() argument
35 nir_foreach_use_safe(use_src, &itr->dest.ssa) { in lima_nir_duplicate_intrinsic()
42 dupl->num_components = itr->num_components; in lima_nir_duplicate_intrinsic()
43 memcpy(dupl->const_index, itr->const_index, sizeof(itr->const_index)); in lima_nir_duplicate_intrinsic()
44 dupl->src[0].is_ssa = itr->src[0].is_ssa; in lima_nir_duplicate_intrinsic()
45 if (itr->src[0].is_ssa) in lima_nir_duplicate_intrinsic()
46 dupl->src[0].ssa = itr->src[0].ssa; in lima_nir_duplicate_intrinsic()
48 dupl->src[0].reg = itr->src[0].reg; in lima_nir_duplicate_intrinsic()
51 dupl->num_components, itr->dest.ssa.bit_size, NULL); in lima_nir_duplicate_intrinsic()
68 nir_foreach_if_use_safe(use_src, &itr->dest.ssa) { in lima_nir_duplicate_intrinsic()
[all …]
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/locale/
DLanguageTag.java171 StringTokenIterator itr; in parse() local
185 itr = new StringTokenIterator(gfmap[1], SEP); in parse()
188 itr = new StringTokenIterator(gfmap[1] + languageTag.substring(dash), SEP); in parse()
192 itr = new StringTokenIterator(languageTag, SEP); in parse()
198 if (tag.parseLanguage(itr, sts)) { in parse()
201 tag.parseExtlangs(itr, sts); in parse()
202 tag.parseScript(itr, sts); in parse()
203 tag.parseRegion(itr, sts); in parse()
204 tag.parseVariants(itr, sts); in parse()
205 tag.parseExtensions(itr, sts); in parse()
[all …]
DInternalLocaleBuilder.java130 StringTokenIterator itr = new StringTokenIterator(tp, LanguageTag.SEP); in setUnicodeLocaleKeyword() local
131 while (!itr.isDone()) { in setUnicodeLocaleKeyword()
132 String s = itr.current(); in setUnicodeLocaleKeyword()
134 …w new LocaleSyntaxException("Ill-formed Unicode locale keyword type: " + type, itr.currentStart()); in setUnicodeLocaleKeyword()
136 itr.next(); in setUnicodeLocaleKeyword()
174 StringTokenIterator itr = new StringTokenIterator(val, LanguageTag.SEP); in setExtension() local
175 while (!itr.isDone()) { in setExtension()
176 String s = itr.current(); in setExtension()
184 … throw new LocaleSyntaxException("Ill-formed extension value: " + s, itr.currentStart()); in setExtension()
186 itr.next(); in setExtension()
[all …]
/third_party/boost/boost/polygon/detail/
Dproperty_merge_45.hpp34 …std::vector<std::pair<int, int> >::iterator itr = lower_bound(counts.begin(), counts.end(), std::m… in operator []() local
35 if(itr != counts.end() && itr->first == index) { in operator []()
36 return itr->second; in operator []()
38 itr = counts.insert(itr, std::make_pair(index, int(0))); in operator []()
39 return itr->second; in operator []()
81 …for(typename std::vector<std::pair<property_type, int> >::const_iterator itr = count1.counts.begin… in operator ()() local
82 itr != count1.counts.end(); ++itr) { in operator ()()
83 left.insert(left.end(), (*itr).first); in operator ()()
85 …for(typename std::vector<std::pair<property_type, int> >::const_iterator itr = count2.counts.begin… in operator ()() local
86 itr != count2.counts.end(); ++itr) { in operator ()()
[all …]
Dpolygon_45_touch.hpp67 std::vector<std::pair<int, int> >::iterator itr = in operator []() local
70 if(itr != counts.end() && itr->first == index) { in operator []()
71 return itr->second; in operator []()
73 itr = counts.insert(itr, std::make_pair(index, int(0))); in operator []()
74 return itr->second; in operator []()
113 for(typename std::map<Unit, std::set<int> >::iterator itr = y_prop_map.begin(); in process_previous_x() local
114 itr != y_prop_map.end(); ++itr) { in process_previous_x()
115 for(std::set<int>::iterator inner_itr = itr->second.begin(); in process_previous_x()
116 inner_itr != itr->second.end(); ++inner_itr) { in process_previous_x()
120 for( ; inner_inner_itr != itr->second.end(); ++inner_inner_itr) { in process_previous_x()
[all …]
Dpolygon_90_touch.hpp33 inline iterator(typename EventData::const_iterator itr, in iterator() argument
34 …Unit prevPos, Unit curPos, const std::set<int>& ivlIds) : itr_(itr), ivlIds_(), incremented_(false… in iterator()
55 for(std::set<int>::const_iterator itr = (*itr_).second.begin(); in operator ++() local
56 itr != (*itr_).second.end(); ++itr) { in operator ++()
58 std::set<int>::iterator lb = ivlIds_.second.find(*itr); in operator ++()
62 ivlIds_.second.insert(*itr); in operator ++()
127 typename EventData::const_iterator itr; in insert() local
128 for(itr = that.eventData_.begin(); itr != that.eventData_.end(); ++itr) { in insert()
129 eventData_[(*itr).first].insert(itr->second.begin(), itr->second.end()); in insert()
137 typename EventData::const_iterator itr = eventData_.begin(); in begin() local
[all …]
Dmax_cover.hpp65 for(typename Node::iterator itr = node->begin(); itr != node->end(); ++itr) { in getMaxCover() local
66 getMaxCover(outputContainer, *itr, orient, node->rect); //get rectangles down path in getMaxCover()
67 Interval nodeIvl = (*itr)->rect.get(orient); in getMaxCover()
78 node(), rect(), itr() {} in stack_element()
82 node(n), rect(r), itr(i) {} in stack_element()
85 typename Node::iterator itr; member
93 typename Node::iterator itr = node->begin(); in getMaxCover() local
127 if(itr != node->end() && iresult && tresult) { in getMaxCover()
129 stack.push_back(stack_element(node, rect, itr)); in getMaxCover()
131 node = *itr; in getMaxCover()
[all …]
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/locale/
DLanguageTag.java127 StringTokenIterator itr; in parse() local
140 itr = new StringTokenIterator(gfmap[1], SEP); in parse()
143 itr = new StringTokenIterator(gfmap[1] + languageTag.substring(dash), SEP); in parse()
147 itr = new StringTokenIterator(languageTag, SEP); in parse()
153 if (tag.parseLanguage(itr, sts)) { in parse()
156 tag.parseExtlangs(itr, sts); in parse()
157 tag.parseScript(itr, sts); in parse()
158 tag.parseRegion(itr, sts); in parse()
159 tag.parseVariants(itr, sts); in parse()
160 tag.parseExtensions(itr, sts); in parse()
[all …]
DInternalLocaleBuilder.java126 StringTokenIterator itr = new StringTokenIterator(tp, LanguageTag.SEP); in setUnicodeLocaleKeyword() local
127 while (!itr.isDone()) { in setUnicodeLocaleKeyword()
128 String s = itr.current(); in setUnicodeLocaleKeyword()
130 …w new LocaleSyntaxException("Ill-formed Unicode locale keyword type: " + type, itr.currentStart()); in setUnicodeLocaleKeyword()
132 itr.next(); in setUnicodeLocaleKeyword()
170 StringTokenIterator itr = new StringTokenIterator(val, LanguageTag.SEP); in setExtension() local
171 while (!itr.isDone()) { in setExtension()
172 String s = itr.current(); in setExtension()
180 … throw new LocaleSyntaxException("Ill-formed extension value: " + s, itr.currentStart()); in setExtension()
182 itr.next(); in setExtension()
[all …]
/third_party/python/Modules/_decimal/tests/
Dranddec.py151 def un_close_to_pow10(prec, maxexp, itr=None): argument
152 if itr is None:
155 lst = sample(range(prec+30), itr)
168 def bin_close_to_pow10(prec, maxexp, itr=None): argument
169 if itr is None:
172 lst = sample(range(prec+30), itr)
269 def un_close_numbers(prec, emax, emin, itr=None): argument
270 if itr is None:
271 itr = 1000
272 for _ in range(itr):
[all …]
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/audio/kernels/
Daudio_utils.h57 for (auto itr = input->begin<T>(); itr != input->end<T>(); itr++) { in AmplitudeToDB() local
59 *itr = *itr < amin ? log10(amin) * multiplier : log10(*itr) * multiplier; in AmplitudeToDB()
60 *itr -= multiplier * db_multiplier; in AmplitudeToDB()
63 if ((*itr) > temp_max) temp_max = *itr; in AmplitudeToDB()
72 for (auto itr = input->begin<T>(); itr != input->end<T>(); itr++, ind++) { in AmplitudeToDB() local
74 *itr = std::max((*itr), static_cast<T>(lower_bound)); in AmplitudeToDB()
94 for (auto itr = input->begin<T>(); itr != input->end<T>(); itr++) { in Angle() local
95 x = static_cast<T>(*itr); in Angle()
96 itr++; in Angle()
97 y = static_cast<T>(*itr); in Angle()
[all …]
/third_party/boost/boost/date_time/
Dformat_date_parser.hpp44 fixed_string_to_int(std::istreambuf_iterator<charT>& itr, in fixed_string_to_int() argument
53 while (j < length && itr != stream_end && in fixed_string_to_int()
54 (std::isdigit(*itr) || *itr == fill_char)) { in fixed_string_to_int()
55 if(*itr == fill_char) { in fixed_string_to_int()
61 mr.cache += (*itr); in fixed_string_to_int()
63 itr++; in fixed_string_to_int()
87 fixed_string_to_int(std::istreambuf_iterator<charT>& itr, in fixed_string_to_int() argument
92 return fixed_string_to_int<int_type, charT>(itr, stream_end, mr, length, '0'); in fixed_string_to_int()
102 var_string_to_int(std::istreambuf_iterator<charT>& itr, in var_string_to_int() argument
109 while (itr != stream_end && (j < max_length) && std::isdigit(*itr)) { in var_string_to_int()
[all …]
/third_party/boost/boost/polygon/
Dpolygon_90_set_data.hpp192 for(typename output_container::iterator itr = result.begin(); itr != result.end(); ++itr) { in get_rectangles() local
193 ::boost::polygon::transform(*itr, axis_transformation(axis_transformation::SWAP_XY)); in get_rectangles()
361 for(typename std::vector<rectangle_data<coordinate_type> >::iterator itr = rects.begin(); in bloat2() local
362 itr != rects.end(); ++itr) { in bloat2()
363 convolve(*itr, convolutionRectangle); in bloat2()
461 typename std::vector<point_data<coordinate_type> >::iterator itr = poly.begin(); in remove_colinear_pts() local
462 itr += poly.size() - 1; //get last element position in remove_colinear_pts()
468 if(((*itr).x() == (*itr2).x() && (*itr).x() == (*itr3).x()) || in remove_colinear_pts()
469 ((*itr).y() == (*itr2).y() && (*itr).y() == (*itr3).y()) ) { in remove_colinear_pts()
473 itr = itr2; in remove_colinear_pts()
[all …]
Dpolygon_set_data.hpp155 for(typename polygon_with_holes_traits<polygon_with_holes_type>::iterator_holes_type itr = in insert() local
157 itr != end_holes(polygon_with_holes_object); ++itr) { in insert()
158 insert(*itr, !is_hole, polygon_concept()); in insert()
247 for(iterator_type itr = data_.begin(); itr != data_.end(); ++itr){ in get_trapezoids() local
248 data.push_back(vertex_half_edge((*itr).first.first, (*itr).first.second, (*itr).second)); in get_trapezoids()
249 … data.push_back(vertex_half_edge((*itr).first.second, (*itr).first.first, -1 * (*itr).second)); in get_trapezoids()
266 for(typename cT::iterator itr = result.begin(); itr != result.end(); ++itr) { in get_trapezoids() local
267 ::boost::polygon::transform(*itr, axis_transformation(axis_transformation::SWAP_XY)); in get_trapezoids()
345 for(iterator_type itr = begin(); in extents() local
346 itr != end(); ++itr) { in extents()
[all …]
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/engine/gnn/
Dlocal_node.cc36 auto itr = features_.find(feature_type); in GetFeatures() local
37 if (itr != features_.end()) { in GetFeatures()
38 *out_feature = itr->second; in GetFeatures()
48 auto itr = neighbor_nodes_.find(neighbor_type); in GetAllNeighbors() local
49 if (itr != neighbor_nodes_.end()) { in GetAllNeighbors()
51 neighbors.resize(itr->second.first.size()); in GetAllNeighbors()
52 std::transform(itr->second.first.begin(), itr->second.first.end(), neighbors.begin(), in GetAllNeighbors()
55 neighbors.resize(itr->second.first.size() + 1); in GetAllNeighbors()
57 std::transform(itr->second.first.begin(), itr->second.first.end(), neighbors.begin() + 1, in GetAllNeighbors()
99 auto itr = neighbor_nodes_.find(neighbor_type); in GetSampledNeighbors() local
[all …]
/third_party/boost/libs/filesystem/test/
Dpath_test.cpp168 path::const_iterator itr = itr_ck.begin(); in iterator_tests() local
169 BOOST_TEST(itr == itr_ck.end()); in iterator_tests()
172 itr = itr_ck.begin(); in iterator_tests()
173 BOOST_TEST(itr->string() == "/"); in iterator_tests()
174 BOOST_TEST(++itr == itr_ck.end()); in iterator_tests()
175 BOOST_TEST((--itr)->string() == "/"); in iterator_tests()
193 itr = itr_ck.begin(); in iterator_tests()
194 BOOST_TEST(itr->string() == "/"); in iterator_tests()
195 BOOST_TEST(*++itr == std::string("foo")); in iterator_tests()
196 BOOST_TEST(*++itr == std::string("bar")); in iterator_tests()
[all …]
/third_party/skia/third_party/externals/spirv-cross/
Dspirv_cfg.hpp55 auto itr = immediate_dominators.find(block); in get_immediate_dominator() local
56 if (itr != std::end(immediate_dominators)) in get_immediate_dominator()
57 return itr->second; in get_immediate_dominator()
64 auto itr = visit_order.find(block); in get_visit_order() local
65 assert(itr != std::end(visit_order)); in get_visit_order()
66 int v = itr->second.get(); in get_visit_order()
75 auto itr = preceding_edges.find(block); in get_preceding_edges() local
76 if (itr != std::end(preceding_edges)) in get_preceding_edges()
77 return itr->second; in get_preceding_edges()
84 auto itr = succeeding_edges.find(block); in get_succeeding_edges() local
[all …]
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/engine/opt/post/
Dauto_worker_pass.cc78 auto itr = weight_profile_.find(node->Name()); in Visit() local
79 …CHECK_FAIL_RETURN_UNEXPECTED(itr != weight_profile_.end(), node->Name() + "'s weight doesn't exist… in Visit()
80 int32_t weight = itr->second; in Visit()
87 auto itr = weight_profile_.find(node->Name()); in Visit() local
88 …CHECK_FAIL_RETURN_UNEXPECTED(itr != weight_profile_.end(), node->Name() + "'s weight doesn't exist… in Visit()
89 int32_t weight = itr->second; in Visit()
97 auto itr = weight_profile_.find("MappableSource"); in Visit() local
98 CHECK_FAIL_RETURN_UNEXPECTED(itr != weight_profile_.end(), in Visit()
100 int32_t weight = itr->second; in Visit()
107 auto itr = weight_profile_.find("NonMappableSource"); in Visit() local
[all …]
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/engine/opt/optional/
Dtensor_op_fusion_pass.cc36 auto itr = std::search(ops.begin(), ops.end(), pattern.begin(), pattern.end(), in Visit() local
38 if (itr != ops.end()) { in Visit()
40 auto fused_op = dynamic_cast<RandomCropAndResizeOp *>((*(itr + 1))->Build().get()); in Visit()
42 …(*itr) = std::make_shared<transforms::PreBuiltOperation>(std::make_shared<RandomCropDecodeResizeOp… in Visit()
43 ops.erase(itr + 1); in Visit()
51 itr = std::search(ops.begin(), ops.end(), pattern.begin(), pattern.end(), in Visit()
55 RETURN_OK_IF_TRUE(itr == ops.end()); in Visit()
56 auto *fused_ir = dynamic_cast<vision::RandomResizedCropOperation *>((itr + 1)->get()); in Visit()
59 (*itr) = std::make_shared<vision::RandomCropDecodeResizeOperation>(*fused_ir); in Visit()
60 ops.erase(itr + 1); in Visit()
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/util/
DTextTrieMapTest.java93 Iterator itr = null; in TestCaseSensitive() local
101 itr = map.get((String)TESTCASES[i][0]); in TestCaseSensitive()
102 checkResult("get(String) case " + i, itr, TESTCASES[i][1]); in TestCaseSensitive()
113 itr = map.get(textBuf.toString(), i); in TestCaseSensitive()
114 checkResult("get(String, int) case " + i, itr, TESTCASES[i][1]); in TestCaseSensitive()
147 itr = map.get("Sunday"); in TestCaseSensitive()
148 checkResult("Get Sunday", itr, new Object[]{FOO, SUN}); in TestCaseSensitive()
153 Iterator itr = null; in TestCaseInsensitive() local
161 itr = map.get((String)TESTCASES[i][0]); in TestCaseInsensitive()
162 checkResult("get(String) case " + i, itr, TESTCASES[i][2]); in TestCaseInsensitive()
[all …]
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/
DTextTrieMapTest.java90 Iterator itr = null; in TestCaseSensitive() local
98 itr = map.get((String)TESTCASES[i][0]); in TestCaseSensitive()
99 checkResult("get(String) case " + i, itr, TESTCASES[i][1]); in TestCaseSensitive()
110 itr = map.get(textBuf.toString(), i); in TestCaseSensitive()
111 checkResult("get(String, int) case " + i, itr, TESTCASES[i][1]); in TestCaseSensitive()
144 itr = map.get("Sunday"); in TestCaseSensitive()
145 checkResult("Get Sunday", itr, new Object[]{FOO, SUN}); in TestCaseSensitive()
150 Iterator itr = null; in TestCaseInsensitive() local
158 itr = map.get((String)TESTCASES[i][0]); in TestCaseInsensitive()
159 checkResult("get(String) case " + i, itr, TESTCASES[i][2]); in TestCaseInsensitive()
[all …]
/third_party/boost/libs/filesystem/src/
Dpath.cpp262 iterator itr(begin()); in root_name() local
264 return (itr.m_pos != m_pathname.size() in root_name()
266 (itr.m_element.m_pathname.size() > 1 in root_name()
267 && detail::is_directory_separator(itr.m_element.m_pathname[0]) in root_name()
268 && detail::is_directory_separator(itr.m_element.m_pathname[1])) in root_name()
270 || itr.m_element.m_pathname[itr.m_element.m_pathname.size()-1] == colon in root_name()
273 ? itr.m_element in root_name()
288 iterator itr(begin()); in relative_path() local
290 for (; itr.m_pos != m_pathname.size() in relative_path()
291 && (detail::is_directory_separator(itr.m_element.m_pathname[0]) in relative_path()
[all …]
/third_party/boost/boost/graph/planar_detail/
Dbucket_sort.hpp83 for (ForwardIterator itr = begin; itr != end; ++itr) in bucket_sort()
85 temp_values[get(rank, *itr)].push_back(*itr); in bucket_sort()
90 for (typename vector_of_vectors_t::iterator itr = temp_values.begin(); in bucket_sort()
91 itr != itr_end; ++itr) in bucket_sort()
93 typename vector_of_values_t::iterator jtr_end = itr->end(); in bucket_sort()
94 for (typename vector_of_values_t::iterator jtr = itr->begin(); in bucket_sort()
/third_party/mindspore/tests/ut/python/dataset/
Dtest_iterator.py99 assert sum(itr() is not None for itr in ITERATORS_LIST) == 3
103 assert sum(itr() is not None for itr in ITERATORS_LIST) == 2
107 assert sum(itr() is not None for itr in ITERATORS_LIST) == 1
111 assert sum(itr() is not None for itr in ITERATORS_LIST) == 0
173 itr = data1.create_tuple_iterator(num_epochs=1)
175 assert id(data1) != id(itr.dataset)
176 assert id(data) != id(itr.dataset.children[0])
177 assert id(data1.operations[0]) == id(itr.dataset.operations[0])
179 itr.release()

123456789