Home
last modified time | relevance | path

Searched refs:iterator (Results 1 – 25 of 53) sorted by relevance

123

/art/libartbase/base/
Diteration_range.h29 typedef Iter iterator; typedef
35 IterationRange(iterator first, iterator last) : first_(first), last_(last) { } in IterationRange()
37 iterator begin() const { return first_; } in begin()
38 iterator end() const { return last_; } in end()
39 iterator cbegin() const { return first_; } in cbegin()
40 iterator cend() const { return last_; } in cend()
43 iterator first_;
44 iterator last_;
Dsafe_map.h40 typedef typename ::std::map<K, V, Comparator, Allocator>::iterator iterator; typedef
62 iterator begin() { return map_.begin(); } in begin()
64 iterator end() { return map_.end(); } in end()
72 iterator erase(iterator it) { return map_.erase(it); } in erase()
75 iterator find(const K& k) { return map_.find(k); } in find()
78 iterator lower_bound(const K& k) { return map_.lower_bound(k); } in lower_bound()
81 iterator upper_bound(const K& k) { return map_.upper_bound(k); } in upper_bound()
94 iterator Put(const K& k, const V& v) { in Put()
95 std::pair<iterator, bool> result = map_.emplace(k, v); in Put()
99 iterator Put(const K& k, V&& v) { in Put()
[all …]
Ddchecked_vector.h50 using typename Base::iterator;
150 iterator insert(const_iterator position, const value_type& value) { in insert()
154 iterator insert(const_iterator position, size_type n, const value_type& value) { in insert()
159 iterator insert(const_iterator position, InputIterator first, InputIterator last) { in insert()
163 iterator insert(const_iterator position, value_type&& value) { in insert()
167 iterator insert(const_iterator position, std::initializer_list<value_type> il) { in insert()
173 iterator erase(const_iterator position) { in erase()
177 iterator erase(const_iterator first, const_iterator last) { in erase()
185 iterator emplace(const_iterator position, Args&&... args) { in emplace()
Dbit_vector_test.cc58 BitVector::IndexIterator iterator = bv.Indexes().begin(); in TEST() local
59 EXPECT_TRUE(iterator != bv.Indexes().end()); in TEST()
60 EXPECT_EQ(0u, *iterator); in TEST()
61 ++iterator; in TEST()
62 EXPECT_TRUE(iterator != bv.Indexes().end()); in TEST()
63 EXPECT_EQ(kBits - 1u, *iterator); in TEST()
64 ++iterator; in TEST()
65 EXPECT_TRUE(iterator == bv.Indexes().end()); in TEST()
Darray_slice.h37 using iterator = StrideIterator<T>; variable
39 using reverse_iterator = std::reverse_iterator<iterator>;
59 iterator begin() { return iterator(&AtUnchecked(0), element_size_); } in begin()
Dhash_set.h38 class HashSetIterator : std::iterator<std::forward_iterator_tag, Elem> {
173 using iterator = HashSetIterator<T, HashSet>; variable
320 iterator begin() { in begin()
321 iterator ret(this, 0); in begin()
338 iterator end() { in end()
339 return iterator(this, NumBuckets()); in end()
366 iterator erase(iterator it) { in erase()
417 iterator find(const K& key) { in find()
427 iterator FindWithHash(const K& key, size_t hash) { in FindWithHash()
428 return iterator(this, FindIndex(key, hash)); in FindWithHash()
[all …]
Dtransform_array_ref.h33 using Iter = TransformIterator<typename ArrayRef<BaseType>::iterator, Function>;
36 using FallbackConstIter = std::iterator<std::random_access_iterator_tag, void, void, void, void>;
52 using iterator = Iter; variable
92 iterator begin() { return MakeIterator(base().begin()); } in begin()
95 iterator end() { return MakeIterator(base().end()); } in end()
Darray_ref.h48 using iterator = T*; variable
50 using reverse_iterator = std::reverse_iterator<iterator>;
119 iterator begin() { return array_; } in begin()
122 iterator end() { return array_ + size_; } in end()
Dstride_iterator.h27 class StrideIterator : public std::iterator<std::random_access_iterator_tag, T> {
30 typename std::iterator<std::random_access_iterator_tag, T>::difference_type;
Dhiddenapi_flags.h206 static bool FromNames(std::vector<std::string>::iterator begin, in FromNames()
207 std::vector<std::string>::iterator end, in FromNames()
210 for (std::vector<std::string>::iterator it = begin; it != end; it++) { in FromNames()
/art/compiler/utils/
Dintrusive_forward_list.h63 class IntrusiveForwardListIterator : public std::iterator<std::forward_iterator_tag, T> {
143 typedef IntrusiveForwardListIterator< T, hook_traits> iterator; typedef
164 iterator before_begin() { return iterator(&first_); } in before_begin()
166 iterator begin() { return iterator(first_.next_hook); } in begin()
168 iterator end() { return iterator(nullptr); } in end()
195 iterator insert_after(const_iterator position, value_type& value) { in insert_after()
199 return iterator(new_hook); in insert_after()
202 iterator insert_after(const_iterator position, InputIterator first, InputIterator last) { in insert_after()
206 return iterator(position.hook_); in insert_after()
208 iterator erase_after(const_iterator position) { in erase_after()
[all …]
/art/compiler/optimizing/
Dblock_builder.cc92 CatchHandlerIterator iterator(handlers_ptr); in CreateBranchTargets() local
93 for (; iterator.HasNext(); iterator.Next()) { in CreateBranchTargets()
94 MaybeCreateBlockAt(iterator.GetHandlerAddress()); in CreateBranchTargets()
96 handlers_ptr = iterator.EndDataPointer(); in CreateBranchTargets()
228 auto iterator = try_block_info.find(block->GetBlockId()); in GetTryItem() local
229 return (iterator == try_block_info.end()) ? nullptr : iterator->second; in GetTryItem()
315 CatchHandlerIterator iterator(handlers_ptr); in InsertTryBoundaryBlocks() local
316 for (; iterator.HasNext(); iterator.Next()) { in InsertTryBoundaryBlocks()
317 uint32_t address = iterator.GetHandlerAddress(); in InsertTryBoundaryBlocks()
322 if (iterator.GetHandlerTypeIndex() != info->GetCatchTypeIndex()) { in InsertTryBoundaryBlocks()
[all …]
/art/test/478-checker-clinit-check-pruning/src/
DMain.java437 it.iterator(); in $noinline$someStaticMethod()
467 it.iterator(); in $noinline$someStaticMethod()
494 it.iterator(); in $noinline$someStaticMethod()
529 it.iterator(); in inlinedForNull()
570 it.iterator(); in inlinedForNull()
625 it.iterator(); in $noinline$getIterator()
651 Iterable it = new Iterable() { public java.util.Iterator iterator() { return null; } }; in main()
/art/tools/ahat/src/main/com/android/ahat/heapdump/
DSkipNullsIterator.java30 mIter = iterable.iterator(); in SkipNullsIterator()
53 public Iterator<T> iterator() { in iterator() method in SkipNullsIterator
DDominatorReferenceIterator.java34 mIter = iter.iterator(); in DominatorReferenceIterator()
60 public Iterator<AhatInstance> iterator() { in iterator() method in DominatorReferenceIterator
DInstances.java95 public Iterator<T> iterator() { in iterator() method in Instances
96 return mInstances.iterator(); in iterator()
DAhatClassInstance.java396 public Iterator<FieldValue> iterator() { in iterator() method in AhatClassInstance.InstanceFieldIterator
426 private final Iterator<FieldValue> mIter = getInstanceFields().iterator();
461 public Iterator<Reference> iterator() { in iterator() method in AhatClassInstance.ReferenceIterator
/art/cmdline/
Dtoken_range.h108 using iterator = TokenList::const_iterator; member
111 using const_iterator = iterator;
146 iterator begin() const { in begin()
151 iterator end() const { in end()
250 iterator it_end;
291 for (iterator it = begin(); it != end(); ++it) { in MatchSubstrings()
409 TokenList::iterator new_end = in RemoveIf()
422 const iterator begin_;
423 const iterator end_;
/art/libdexfile/dex/
Ddex_instruction_iterator.h61 std::iterator<std::forward_iterator_tag, DexInstructionPcPair> {
63 using value_type = std::iterator<std::forward_iterator_tag, DexInstructionPcPair>::value_type;
64 using difference_type = std::iterator<std::forward_iterator_tag, value_type>::difference_type;
Dclass_accessor.h179 class DataIterator : public std::iterator<std::forward_iterator_tag, DataType> {
181 using value_type = typename std::iterator<std::forward_iterator_tag, DataType>::value_type;
183 typename std::iterator<std::forward_iterator_tag, value_type>::difference_type;
/art/tools/class2greylist/test/src/com/android/javac/
DJavac.java103 if (!objs.iterator().hasNext()) { in getClassFile()
106 return objs.iterator().next().openInputStream(); in getClassFile()
/art/test/548-checker-inlining-and-dce/src/
DMain.java80 public java.util.Iterator iterator() { return null; } in main()
/art/test/545-tracing-and-jit/src/
DMain.java180 set.iterator(); in fillJit()
197 set.iterator(); in fillJit()
214 set.iterator(); in fillJit()
/art/runtime/
Dstack_map.h61 using iterator = DexRegisterLocation*;
80 iterator begin() { return data(); } in begin()
81 iterator end() { return data() + count_; } in end()
/art/runtime/gc/
Dallocation_record.h272 EntryList::iterator Begin() in Begin()
278 EntryList::iterator End() in End()

123