Home
last modified time | relevance | path

Searched refs:FlatMap (Results 1 – 25 of 55) sorted by relevance

123

/external/pigweed/pw_containers/
Dflat_map_test.cc23 constexpr FlatMap<int, char, 5> kOddMap({{
32 TEST(FlatMap, Size) { EXPECT_EQ(kOddMap.size(), static_cast<uint32_t>(5)); } in TEST() argument
34 TEST(FlatMap, EmptyFlatMapSize) { in TEST() argument
35 constexpr FlatMap<int, char, 0> kEmpty({{}}); in TEST()
39 TEST(FlatMap, Empty) { in TEST() argument
40 constexpr FlatMap<int, char, 0> kEmpty({{}}); in TEST()
44 TEST(FlatMap, NotEmpty) { in TEST() argument
45 constexpr FlatMap<int, char, 1> kNotEmpty({{}}); in TEST()
49 TEST(FlatMap, EmptyFlatMapFind) { in TEST() argument
50 constexpr FlatMap<int, char, 0> kEmpty({{}}); in TEST()
[all …]
Ddocs.rst37 pw::containers::FlatMap
39 FlatMap provides a simple, fixed-size associative array with lookup by key or
40 value. ``pw::containers::FlatMap`` contains the same methods and features for
42 underlying data. The underlying array in ``pw::containers::FlatMap`` does not
43 need to be sorted. During construction, ``pw::containers::FlatMap`` will
/external/openscreen/util/
Dflat_map.h28 class FlatMap final : public std::vector<std::pair<Key, Value>> {
30 FlatMap(std::initializer_list<std::pair<Key, Value>> init_list) in FlatMap() function
32 FlatMap() = default;
33 FlatMap(const FlatMap&) = default;
34 FlatMap(FlatMap&&) noexcept = default;
35 FlatMap& operator=(const FlatMap&) = default;
36 FlatMap& operator=(FlatMap&&) = default;
37 ~FlatMap() = default;
48 return const_cast<FlatMap<Key, Value>*>(this)->find(key); in find()
Dflat_map_unittest.cc16 const FlatMap<int, absl::string_view> kSimpleFlatMap{{-1, "bar"},
71 FlatMap<int, int> mutable_vector{{1, 2}}; in TEST()
88 FlatMap<int, int> simple; in TEST()
90 EXPECT_EQ(simple, (FlatMap<int, int>{{1, 10}})); in TEST()
112 FlatMap<int, NonDefaultConstructible> flat_map; in TEST()
/external/tensorflow/tensorflow/core/lib/gtl/
Dflatmap.h39 class FlatMap {
72 FlatMap() : FlatMap(1) {} in FlatMap() function
74 explicit FlatMap(size_t N, const Hash& hf = Hash(), const Eq& eq = Eq())
77 FlatMap(const FlatMap& src) : rep_(src.rep_) {} in FlatMap() function
81 FlatMap(FlatMap&& src) : rep_(std::move(src.rep_)) {} in FlatMap() function
84 FlatMap(InputIter first, InputIter last, size_t N = 1,
86 : FlatMap(N, hf, eq) { in FlatMap() function
90 FlatMap(std::initializer_list<std::pair<const Key, Val>> init, size_t N = 1,
92 : FlatMap(init.begin(), init.end(), N, hf, eq) {}
94 FlatMap& operator=(const FlatMap& src) {
[all …]
Dflatmap_test.cc30 typedef FlatMap<int64, int32> NumMap;
146 FlatMap<int64, std::unique_ptr<string>> smap; in TEST()
284 TEST(FlatMap, AlternatingInsertRemove) { in TEST() argument
295 TEST(FlatMap, ClearNoResize) { in TEST() argument
305 TEST(FlatMap, Clear) { in TEST() argument
315 TEST(FlatMap, Copy) { in TEST() argument
329 TEST(FlatMap, InitFromIter) { in TEST() argument
339 TEST(FlatMap, InitializerList) { in TEST() argument
361 TEST(FlatMap, InsertIter) { in TEST() argument
372 TEST(FlatMap, Eq) { in TEST() argument
[all …]
/external/tensorflow/tensorflow/c/experimental/saved_model/core/revived_types/
Dpartially_revived_objects.h48 gtl::FlatMap<int, std::unique_ptr<Variable>> variables;
49 gtl::FlatMap<int, std::unique_ptr<Asset>> assets;
50 gtl::FlatMap<int, std::unique_ptr<Constant>> constants;
51 gtl::FlatMap<int, TFConcreteFunctionRevivalState> concrete_functions;
52 gtl::FlatMap<int, TFSignatureDefFunctionRevivalState> signature_def_functions;
53 gtl::FlatMap<int, RestoredResourceRevivalState> restored_resources;
54 gtl::FlatMap<std::string, int> signatures_map;
Drevived_objects.h80 gtl::FlatMap<int, std::unique_ptr<Variable>> variables;
81 gtl::FlatMap<int, std::unique_ptr<Asset>> assets;
82 gtl::FlatMap<int, std::unique_ptr<Constant>> constants;
83 gtl::FlatMap<int, std::unique_ptr<TFSignatureDefFunction>>
86 gtl::FlatMap<int, RestoredResource> restored_resources;
87 gtl::FlatMap<std::string, int> signatures_map;
/external/libchrome/base/containers/
Dflat_map_unittest.cc23 TEST(FlatMap, IncompleteType) { in TEST() argument
37 TEST(FlatMap, RangeConstructor) { in TEST() argument
51 TEST(FlatMap, MoveConstructor) { in TEST() argument
68 TEST(FlatMap, VectorConstructor) { in TEST() argument
83 TEST(FlatMap, InitializerListConstructor) { in TEST() argument
103 TEST(FlatMap, InitializerListAssignment) { in TEST() argument
109 TEST(FlatMap, InsertFindSize) { in TEST() argument
121 TEST(FlatMap, CopySwap) { in TEST() argument
142 TEST(FlatMap, SubscriptConstKey) { in TEST() argument
160 TEST(FlatMap, SubscriptMoveOnlyKey) { in TEST() argument
[all …]
/external/pigweed/pw_containers/public/pw_containers/
Dflat_map.h32 class FlatMap {
52 constexpr FlatMap(const std::array<value_type, kArraySize>& items) in FlatMap() function
57 FlatMap(FlatMap&) = delete;
58 FlatMap& operator=(FlatMap&) = delete;
/external/Reactive-Extensions/RxCpp/Rx/v2/src/rxcpp/operators/
Drx-flat_map.hpp269 …class FlatMap = rxo::detail::flat_map<rxu::decay_t<Observable>, rxu::decay_t<CollectionSelector>, …
272 class Result = observable<Value, FlatMap>
275 …return Result(FlatMap(std::forward<Observable>(o), std::forward<CollectionSelector>(s), ResultSele… in member()
286 …class FlatMap = rxo::detail::flat_map<rxu::decay_t<Observable>, rxu::decay_t<CollectionSelector>, …
289 class Result = observable<Value, FlatMap>
292 …return Result(FlatMap(std::forward<Observable>(o), std::forward<CollectionSelector>(s), ResultSele… in member()
303 …class FlatMap = rxo::detail::flat_map<rxu::decay_t<Observable>, rxu::decay_t<CollectionSelector>, …
307 class Result = observable<Value, FlatMap>
310 …return Result(FlatMap(std::forward<Observable>(o), std::forward<CollectionSelector>(s), std::forwa… in member()
320 …class FlatMap = rxo::detail::flat_map<rxu::decay_t<Observable>, rxu::decay_t<CollectionSelector>, …
[all …]
/external/rust/crates/rayon/src/iter/
Dflat_map.rs13 pub struct FlatMap<I: ParallelIterator, F> { struct
18 impl<I: ParallelIterator + Debug, F> Debug for FlatMap<I, F> { implementation
24 impl<I: ParallelIterator, F> FlatMap<I, F> { implementation
27 FlatMap { base, map_op } in new()
31 impl<I, F, PI> ParallelIterator for FlatMap<I, F> implementation
/external/tensorflow/tensorflow/c/experimental/saved_model/core/
Dsaved_model_utils.cc54 gtl::FlatMap<StringPiece, const AttrValueMap*, StringPieceHasher>;
57 using FunctionDefMap = gtl::FlatMap<StringPiece, const tensorflow::FunctionDef*,
87 gtl::FlatMap<std::string, int>* signatures_map) { in GetSignaturesMap()
364 gtl::FlatMap<StringPiece, const AttrValueMap*, StringPieceHasher> NodeToAttrMap( in NodeToAttrMap()
366 gtl::FlatMap<StringPiece, const AttrValueMap*, StringPieceHasher> result; in NodeToAttrMap()
373 gtl::FlatMap<StringPiece, const tensorflow::FunctionDef*, StringPieceHasher>
375 gtl::FlatMap<StringPiece, const tensorflow::FunctionDef*, StringPieceHasher> in FunctionNameToFunctionDefMap()
397 gtl::FlatMap<std::string, int> signatures_map; in PartiallyReviveSavedModelObjects()
401 gtl::FlatMap<int, std::string> reversed_signatures_map; in PartiallyReviveSavedModelObjects()
Dsaved_model_utils.h89 gtl::FlatMap<StringPiece, const AttrValueMap*, StringPieceHasher> NodeToAttrMap(
94 gtl::FlatMap<StringPiece, const tensorflow::FunctionDef*, StringPieceHasher>
Dtf_saved_model_api.cc67 using FunctionDefMap = gtl::FlatMap<StringPiece, const tensorflow::FunctionDef*,
72 gtl::FlatMap<std::string, std::unique_ptr<FlatTensorFunction>>;
/external/tensorflow/tensorflow/core/grappler/costs/
Danalytical_cost_estimator.cc41 gtl::FlatMap<string, CostGraphDef::Node*>* name_to_cost_node, in AddCostNode()
42 gtl::FlatMap<string, int>* name_to_id, in AddCostNode()
175 gtl::FlatMap<string, CostGraphDef::Node*> name_to_cost_node; in PredictCosts()
189 gtl::FlatMap<string, int> name_to_id; in PredictCosts()
/external/tensorflow/tensorflow/core/common_runtime/
Dcollective_param_resolver_local.h193 gtl::FlatMap<int32, std::unique_ptr<GroupRec>> group_table_
196 gtl::FlatMap<int32, gtl::FlatMap<int32, std::unique_ptr<InstanceRec>>>
/external/tensorflow/tensorflow/core/distributed_runtime/eager/
Dremote_mgr.h106 gtl::FlatMap<RemoteTensorHandleInternal, tensorflow::TensorHandle*,
109 using MirroredResourceShapeMap = gtl::FlatMap<
/external/openscreen/cast/streaming/
Dsession_messager.h90 FlatMap<int, ReplyCallback> awaiting_replies_;
122 FlatMap<SenderMessage::Type, RequestCallback> callbacks_;
Dreceiver_packet_router.h55 FlatMap<Ssrc, Receiver*> receivers_;
/external/tensorflow/tensorflow/core/grappler/optimizers/data/
Dfusion_utils.cc85 gtl::FlatMap<string, string> GetUniqueNames(const Iterable& first_iterable, in GetUniqueNames()
87 gtl::FlatMap<string, string> changed_node_names; in GetUniqueNames()
119 const gtl::FlatMap<string, string> changed_node_names = in RenameFunctionNodes()
156 const gtl::FlatMap<string, string> changed_input_names = in GetUniqueSignature()
169 const gtl::FlatMap<string, string> changed_output_names = GetUniqueNames( in GetUniqueSignature()
/external/swiftshader/third_party/subzero/src/
DIceTimerTree.cpp298 DumpMapType FlatMap; in dump() local
303 FlatMap.insert(std::make_pair(LeafTimes[i], PrefixStr + IDs[i])); in dump()
307 dumpHelper(Str, FlatMap, TotalTime, AddPercents); in dump()
/external/tensorflow/tensorflow/core/framework/
Dlocal_rendezvous.h67 typedef gtl::FlatMap<uint64, ItemQueue> Table;
Dvariant_op_registry.h196 gtl::FlatMap<StringPiece, VariantDecodeFn, StringPieceHasher> decode_fns;
209 gtl::FlatMap<std::pair<VariantDeviceCopyDirection, TypeIndex>,
251 gtl::FlatMap<FuncTuple<VariantUnaryOp>, VariantUnaryOpFn, TupleHash>
253 gtl::FlatMap<FuncTuple<VariantBinaryOp>, VariantBinaryOpFn, TupleHash>
/external/tensorflow/tensorflow/core/distributed_runtime/rpc/
Dgrpc_response_cache.h90 gtl::FlatMap<int64, ResponseCacheEntry> response_cache_ TF_GUARDED_BY(mu_);

123