Home
last modified time | relevance | path

Searched refs:iter_ (Results 1 – 25 of 54) sorted by relevance

123

/external/libchrome/base/containers/
Did_map.h142 Iterator(IDMap<V, K>* map) : map_(map), iter_(map_->data_.begin()) { in Iterator()
148 iter_(iter.iter_) { in Iterator()
154 iter_ = iter.iter;
172 return iter_ == map_->data_.end(); in IsAtEnd()
177 return iter_->first; in GetCurrentKey()
182 if (!iter_->second || map_->IsRemoved(iter_->first)) in GetCurrentValue()
184 return &*iter_->second; in GetCurrentValue()
189 ++iter_; in Advance()
201 while (iter_ != map_->data_.end() && map_->IsRemoved(iter_->first)) in SkipRemovedEntries()
202 ++iter_; in SkipRemovedEntries()
[all …]
/external/tensorflow/tensorflow/compiler/xla/
Diterator_util.h63 NestedIter iter_;
66 explicit UnwrappingIterator(NestedIter iter) : iter_(std::move(iter)) {} in UnwrappingIterator()
68 auto operator*() -> decltype(iter_->get()) { return iter_->get(); }
69 auto operator-> () -> decltype(iter_->get()) { return iter_->get(); }
71 ++iter_;
75 UnwrappingIterator temp(iter_);
82 return a.iter_ == b.iter_;
/external/tensorflow/tensorflow/core/util/sparse/
Dgroup_iterator.cc24 const auto& ix_t = iter_->ix_matrix_; in UpdateEndOfGroup()
26 while (next_loc_ < N && iter_->GroupMatches(ix_t, loc_, next_loc_)) { in UpdateEndOfGroup()
32 CHECK_EQ(rhs.iter_, iter_) << "Can't compare steps from different iterators"; in operator !=()
37 CHECK_EQ(rhs.iter_, iter_) << "Can't compare steps from different iterators"; in operator ==()
57 const auto& ix_t = iter_->ix_matrix_; in group()
58 for (const int d : iter_->group_dims_) { in group()
65 return TTypes<int64>::UnalignedConstMatrix(&(iter_->ix_matrix_(loc_, 0)), in indices()
66 next_loc_ - loc_, iter_->dims_); in indices()
Dgroup_iterator.h37 : iter_(iter), loc_(loc), next_loc_(next_loc) {} in Group()
46 GroupIterable* iter_;
111 : iter_(iter), loc_(loc), next_loc_(loc_) { in IteratorStep()
120 Group operator*() const { return Group(iter_, loc_, next_loc_); }
124 GroupIterable* iter_;
139 const auto& ix_t = iter_->ix_matrix_; in group_at()
146 return typename TTypes<T>::UnalignedVec(&(iter_->vals_.vec<T>()(loc_)), in values()
/external/icu/icu4c/source/i18n/
Dcoleitr.cpp57 : UObject(other), iter_(NULL), rbc_(NULL), otherHalf_(0), dir_(0), offsets_(NULL) { in UOBJECT_DEFINE_RTTI_IMPLEMENTATION()
63 delete iter_; in ~CollationElementIterator()
88 int32_t i = iter_->getCEsLength(); in getOffset()
96 return iter_->getOffset(); in getOffset()
126 iter_->clearCEsIfNoneRemaining(); in next()
127 int64_t ce = iter_->nextCE(status); in next()
158 *iter_ == *that.iter_; in operator ==()
178 iter_->resetToOffset(string_.length()); in previous()
198 int32_t limitOffset = iter_->getCEsLength() == 0 ? iter_->getOffset() : 0; in previous()
199 int64_t ce = iter_->previousCE(*offsets_, status); in previous()
[all …]
/external/libchrome/base/i18n/
Dbreak_iterator.cc20 : iter_(nullptr), in BreakIterator()
27 : iter_(nullptr), in BreakIterator()
35 if (iter_) in ~BreakIterator()
36 ubrk_close(static_cast<UBreakIterator*>(iter_)); in ~BreakIterator()
60 iter_ = ubrk_openRules(rules_.c_str(), in Init()
71 iter_ = ubrk_open(break_type, nullptr, string_.data(), in Init()
84 ubrk_first(static_cast<UBreakIterator*>(iter_)); in Init()
97 pos = ubrk_next(static_cast<UBreakIterator*>(iter_)); in Advance()
106 pos = ubrk_next(static_cast<UBreakIterator*>(iter_)); in Advance()
110 status = ubrk_getRuleStatus(static_cast<UBreakIterator*>(iter_)); in Advance()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/text/
DCollationElementIterator.java110 private CollationIterator iter_; // owned field in CollationElementIterator
193 iter_ = null; in CollationElementIterator()
283 int i = iter_.getCEsLength(); in getOffset()
291 return iter_.getOffset(); in getOffset()
331 iter_.clearCEsIfNoneRemaining();
332 long ce = iter_.nextCE();
374 iter_.resetToOffset(string_.length()); in previous()
390 int limitOffset = iter_.getCEsLength() == 0 ? iter_.getOffset() : 0; in previous()
391 long ce = iter_.previousCE(offsets_); in previous()
405 offsets_.addElement(iter_.getOffset()); in previous()
[all …]
/external/icu/icu4j/main/classes/collate/src/com/ibm/icu/text/
DCollationElementIterator.java110 private CollationIterator iter_; // owned field in CollationElementIterator
198 iter_ = null; in CollationElementIterator()
292 int i = iter_.getCEsLength(); in getOffset()
300 return iter_.getOffset(); in getOffset()
341 iter_.clearCEsIfNoneRemaining();
342 long ce = iter_.nextCE();
385 iter_.resetToOffset(string_.length()); in previous()
401 int limitOffset = iter_.getCEsLength() == 0 ? iter_.getOffset() : 0; in previous()
402 long ce = iter_.previousCE(offsets_); in previous()
416 offsets_.addElement(iter_.getOffset()); in previous()
[all …]
/external/perfetto/include/perfetto/protozero/
Dproto_decoder.h107 : field_id_(field_id), iter_(begin), end_(end), last_(last) { in RepeatedFieldIterator()
113 : field_id_(0u), iter_(nullptr), end_(nullptr), last_(nullptr) {} in RepeatedFieldIterator()
115 explicit operator bool() const { return iter_ != end_; }
116 const Field& field() const { return *iter_; } in field()
120 iter_->get(&val);
123 const Field* operator->() const { return iter_; }
126 PERFETTO_DCHECK(iter_ != end_);
127 if (iter_ == last_) {
128 iter_ = end_;
131 ++iter_;
[all …]
/external/libchrome/base/metrics/
Dsample_map.cc40 SampleToCountMap::const_iterator iter_; member in base::__anon9a535a9f0111::SampleMapIterator
45 : iter_(sample_counts.begin()), in SampleMapIterator()
53 return iter_ == end_; in Done()
58 ++iter_; in Next()
65 *min = iter_->first; in Get()
67 *max = strict_cast<int64_t>(iter_->first) + 1; in Get()
69 *count = iter_->second; in Get()
73 while (!Done() && iter_->second == 0) { in SkipEmptyBuckets()
74 ++iter_; in SkipEmptyBuckets()
Dpersistent_sample_map.cc42 SampleToCountMap::const_iterator iter_; member in base::__anon4879968f0111::PersistentSampleMapIterator
48 : iter_(sample_counts.begin()), in PersistentSampleMapIterator()
56 return iter_ == end_; in Done()
61 ++iter_; in Next()
70 *min = iter_->first; in Get()
72 *max = strict_cast<int64_t>(iter_->first) + 1; in Get()
74 *count = *iter_->second; in Get()
78 while (!Done() && *iter_->second == 0) { in SkipEmptyBuckets()
79 ++iter_; in SkipEmptyBuckets()
/external/tensorflow/tensorflow/python/autograph/operators/
Dcontrol_flow.py369 def for_stmt(iter_, extra_test, body, get_state, set_state, symbol_names, opts): argument
410 if tensor_util.is_tf_type(iter_):
411 if tensors.is_range_tensor(iter_):
412 _tf_range_for_stmt(iter_, extra_test, body, get_state, set_state,
414 elif isinstance(iter_, ragged_tensor.RaggedTensor):
415 _tf_ragged_for_stmt(iter_, extra_test, body, get_state, set_state,
419 iter_, extra_test, body, get_state, set_state, symbol_names, opts)
421 elif isinstance(iter_, dataset_ops.DatasetV2):
423 iter_, extra_test, body, get_state, set_state, symbol_names, opts)
425 elif isinstance(iter_, iterator_ops.OwnedIterator):
[all …]
Dcontrol_flow_deprecated_py2.py279 def for_stmt(iter_, argument
328 if tensor_util.is_tf_type(iter_):
329 if tensors.is_range_tensor(iter_):
330 return _tf_range_for_stmt(iter_, extra_test, body, get_state, set_state,
334 return _known_len_tf_for_stmt(iter_, extra_test, body, get_state,
338 if isinstance(iter_, dataset_ops.DatasetV2):
339 return _tf_dataset_for_stmt(iter_, extra_test, body, get_state, set_state,
343 if isinstance(iter_, iterator_ops.OwnedIterator):
344 return _tf_iterator_for_stmt(iter_, extra_test, body, get_state, set_state,
348 if isinstance(iter_, ragged_tensor.RaggedTensor):
[all …]
/external/rust/crates/grpcio-sys/grpc/third_party/upb/tests/
Dtest_table.cc86 upb_inttable_begin(&iter_, &table->table_); in iterator()
91 upb_inttable_iter_setdone(&iter.iter_); in end()
96 return upb_inttable_next(&iter_); in operator ++()
101 ret.first = upb_inttable_iter_key(&iter_); in operator *()
102 ret.second = upb_inttable_iter_value(&iter_); in operator *()
107 return upb_inttable_iter_isequal(&iter_, &other.iter_); in operator ==()
115 upb_inttable_iter iter_; member in upb::IntTable::iterator
154 upb_strtable_begin(&iter_, &table->table_); in iterator()
159 upb_strtable_iter_setdone(&iter.iter_); in end()
164 return upb_strtable_next(&iter_); in operator ++()
[all …]
/external/tensorflow/tensorflow/core/graph/
Dgraph.h452 std::vector<value_type>::const_iterator iter_;
459 while (iter_ != end_ && *iter_ == nullptr) { in apply_filter()
460 ++iter_; in apply_filter()
467 : iter_(iter), end_(end) { in const_iterator()
472 return iter_ == other.iter_;
476 return iter_ != other.iter_;
483 ++iter_;
488 value_type operator*() { return *iter_; }
878 EdgeSet::const_iterator iter_;
911 : iter_(iter), incoming_(incoming) {} in NeighborIter()
[all …]
/external/parameter-framework/asio-1.10.6/include/asio/impl/
Dconnect.hpp182 iter_(begin), in connect_op()
192 iter_(other.iter_), in connect_op()
202 iter_(other.iter_), in connect_op()
216 this->check_condition(ec, iter_, end_); in operator ()()
218 if (iter_ != end_) in operator ()()
221 socket_.async_connect(*iter_, in operator ()()
235 if (iter_ == end_) in operator ()()
247 ++iter_; in operator ()()
251 static_cast<const Iterator&>(iter_)); in operator ()()
257 Iterator iter_; member in asio::detail::connect_op
/external/tensorflow/tensorflow/core/util/tensor_bundle/
Dtensor_bundle.h249 void Seek(StringPiece key) { return iter_->Seek(key); } in Seek()
252 void Next() const { iter_->Next(); } in Next()
255 bool Valid() const { return iter_->Valid(); } in Valid()
259 StringPiece key() const { return iter_->key(); } in key()
262 StringPiece value() const { return iter_->value(); } in value()
293 table::Iterator* iter_; variable
/external/tensorflow/tensorflow/core/lib/gtl/
Dcompactptrset.h76 : bigrep_(true), single_(nullptr), iter_(iter) {} in iterator()
80 ++iter_;
91 return iter_ == other.iter_;
100 return *iter_;
111 typename BigRep::iterator iter_; variable
/external/perfetto/src/trace_processor/rpc/
Dquery_result_serializer.cc49 : iter_(iter.take_impl()), num_cols_(iter_->ColumnCount()) {} in QueryResultSerializer()
125 if (!iter_->Next()) in SerializeBatch()
139 auto value = iter_->Get(col_); in SerializeBatch()
251 if (iter_->Status().ok()) in MaybeSerializeError()
253 std::string err = iter_->Status().message(); in MaybeSerializeError()
265 res->add_column_names(iter_->GetColumnName(c)); in SerializeColumnNames()
/external/libchrome/mojo/public/cpp/bindings/lib/
Dmap_serialization.h29 : input_(input), iter_(Traits::GetBegin(input_)) {} in MapReaderBase()
40 MaybeConstIterator iter_; variable
57 GetNextResult key = Traits::GetKey(this->iter_); in GetNext()
58 Traits::AdvanceIterator(this->iter_); in GetNext()
77 GetNextResult value = Traits::GetValue(this->iter_); in GetNext()
78 Traits::AdvanceIterator(this->iter_); in GetNext()
/external/tensorflow/tensorflow/core/kernels/data/
Dsparse_tensor_slice_dataset_op.cc95 iter_(group_iterable_.begin()) {
115 if (i_ > next_non_empty_i_ && iter_ != group_iterable_.end()) { in GetNextInternal()
119 sparse::Group group = *iter_; in GetNextInternal()
138 ++iter_; in GetNextInternal()
149 DCHECK(i_ < next_non_empty_i_ || iter_ == group_iterable_.end()); in GetNextInternal()
173 writer->WriteScalar(Iterator::full_name("iter_loc"), iter_.loc())); in SaveInternal()
192 iter_ = group_iterable_.at(iter_loc); in RestoreInternal()
211 sparse::GroupIterable::IteratorStep iter_ TF_GUARDED_BY(mu_);
/external/libchrome/base/
Dcallback_list.h80 iter_(iter) { in Subscription()
85 iter_->Reset(); in ~Subscription()
87 list_->callbacks_.erase(iter_); in ~Subscription()
95 typename std::list<CallbackType>::iterator iter_; variable
/external/webrtc/p2p/base/
Dtest_turn_server.h35 iter_(alternate_server_addresses_.begin()) {} in TestTurnRedirector()
39 if (!out || iter_ == alternate_server_addresses_.end()) { in ShouldRedirect()
42 *out = *iter_++; in ShouldRedirect()
48 std::vector<rtc::SocketAddress>::const_iterator iter_; variable
/external/parameter-framework/asio-1.10.6/include/asio/detail/
Dresolve_endpoint_op.hpp70 o->iter_ = iterator_type::create(o->endpoint_, host_name, service_name); in do_complete()
90 handler(o->handler_, o->ec_, o->iter_); in do_complete()
110 iterator_type iter_; member in asio::detail::resolve_endpoint_op
/external/compiler-rt/lib/tsan/rtl/
Dtsan_mutex.cc188 : iter_() { in Backoff()
192 if (iter_++ < kActiveSpinIters) in Do()
200 u64 active = iter_ % kActiveSpinIters; in Contention()
201 u64 passive = iter_ - active; in Contention()
206 int iter_; member in __tsan::Backoff

123