Home
last modified time | relevance | path

Searched refs:map_key (Results 1 – 20 of 20) sorted by relevance

/third_party/protobuf/src/google/protobuf/
Dmap_test_util.h71 const MapKey& map_key, MapValueRef* map_val);
280 EXPECT_EQ(fdesc->containing_type()->map_key(), fdesc); in MapReflectionTester()
500 MapKey map_key; in SetMapFieldsViaMapReflection() local
501 map_key.SetInt32Value(0); in SetMapFieldsViaMapReflection()
503 map_key, &map_val)); in SetMapFieldsViaMapReflection()
506 map_key.SetInt64Value(0); in SetMapFieldsViaMapReflection()
508 map_key, &map_val)); in SetMapFieldsViaMapReflection()
511 map_key.SetUInt32Value(0); in SetMapFieldsViaMapReflection()
513 message, F("map_uint32_uint32"), map_key, &map_val)); in SetMapFieldsViaMapReflection()
516 map_key.SetUInt64Value(0); in SetMapFieldsViaMapReflection()
[all …]
Dmap_field_inl.h50 T UnwrapMapKey(const MapKey& map_key);
52 inline int32 UnwrapMapKey<int32>(const MapKey& map_key) {
53 return map_key.GetInt32Value();
56 inline uint32 UnwrapMapKey<uint32>(const MapKey& map_key) {
57 return map_key.GetUInt32Value();
60 inline int64 UnwrapMapKey<int64>(const MapKey& map_key) {
61 return map_key.GetInt64Value();
64 inline uint64 UnwrapMapKey<uint64>(const MapKey& map_key) {
65 return map_key.GetUInt64Value();
68 inline bool UnwrapMapKey<bool>(const MapKey& map_key) {
[all …]
Dmap_field.cc192 bool DynamicMapField::ContainsMapKey(const MapKey& map_key) const { in ContainsMapKey()
194 Map<MapKey, MapValueRef>::const_iterator iter = map.find(map_key); in ContainsMapKey()
230 bool DynamicMapField::InsertOrLookupMapValue(const MapKey& map_key, in InsertOrLookupMapValue() argument
235 Map<MapKey, MapValueRef>::iterator iter = map->find(map_key); in InsertOrLookupMapValue()
237 MapValueRef& map_val = map_[map_key]; in InsertOrLookupMapValue()
248 bool DynamicMapField::DeleteMapValue(const MapKey& map_key) { in DeleteMapValue() argument
250 Map<MapKey, MapValueRef>::iterator iter = map_.find(map_key); in DeleteMapValue()
362 const FieldDescriptor* key_des = default_entry_->GetDescriptor()->map_key(); in SyncRepeatedFieldWithMapNoLock()
380 const MapKey& map_key = it->first; in SyncRepeatedFieldWithMapNoLock() local
383 reflection->SetString(new_entry, key_des, map_key.GetStringValue()); in SyncRepeatedFieldWithMapNoLock()
[all …]
Dmap_field.h299 virtual bool ContainsMapKey(const MapKey& map_key) const = 0;
300 virtual bool InsertOrLookupMapValue(const MapKey& map_key,
306 virtual bool DeleteMapValue(const MapKey& map_key) = 0;
459 bool ContainsMapKey(const MapKey& map_key) const override;
460 bool InsertOrLookupMapValue(const MapKey& map_key, MapValueRef* val) override;
461 bool DeleteMapValue(const MapKey& map_key) override;
555 bool ContainsMapKey(const MapKey& map_key) const override;
556 bool InsertOrLookupMapValue(const MapKey& map_key, MapValueRef* val) override;
557 bool DeleteMapValue(const MapKey& map_key) override;
803 size_t operator()(const ::PROTOBUF_NAMESPACE_ID::MapKey& map_key) const {
[all …]
Dmap_field_test.cc75 bool ContainsMapKey(const MapKey& map_key) const override { return false; } in ContainsMapKey()
76 bool InsertOrLookupMapValue(const MapKey& map_key, in InsertOrLookupMapValue() argument
80 bool DeleteMapValue(const MapKey& map_key) override { return false; } in DeleteMapValue() argument
110 key_descriptor_ = map_descriptor_->map_key(); in MapFieldBasePrimitiveTest()
Ddescriptor_unittest.cc1004 const FieldDescriptor* map_key = map_desc->map_key(); in TEST_F() local
1005 ASSERT_TRUE(map_key != nullptr); in TEST_F()
1006 EXPECT_EQ(map_key->name(), "key"); in TEST_F()
1007 EXPECT_EQ(map_key->number(), 1); in TEST_F()
1014 EXPECT_EQ(message_->map_key(), nullptr); in TEST_F()
Ddescriptor.h495 const FieldDescriptor* map_key() const;
Dmap_test.cc2901 MapKey map_key; in TEST_F() local
2903 map_key.SetInt32Value(0); in TEST_F()
2905 message.get(), "map_int32_foreign_message", map_key, &map_val); in TEST_F()
Ddescriptor.cc1709 const FieldDescriptor* Descriptor::map_key() const { in map_key() function in google::protobuf::Descriptor
6246 const FieldDescriptor* key = message->map_key(); in ValidateMapEntry()
/third_party/protobuf/python/google/protobuf/pyext/
Dmap_container.cc130 self->parent_field_descriptor->message_type()->map_key(); in PythonToMapKey()
176 self->parent_field_descriptor->message_type()->map_key(); in MapKeyToPython()
361 MapKey map_key; in Contains() local
363 if (!PythonToMapKey(self, key, &map_key)) { in Contains()
368 map_key)) { in Contains()
406 MapKey map_key; in ScalarMapGetItem() local
409 if (!PythonToMapKey(self, key, &map_key)) { in ScalarMapGetItem()
414 map_key, &value)) { in ScalarMapGetItem()
427 MapKey map_key; in ScalarMapSetItem() local
430 if (!PythonToMapKey(self, key, &map_key)) { in ScalarMapSetItem()
[all …]
/third_party/node/benchmark/napi/function_args/
Dbinding.cc59 MaybeLocal<String> map_key = String::NewFromUtf8(isolate, in CallWithObject() local
61 assert(!map_key.IsEmpty()); in CallWithObject()
63 map_key.ToLocalChecked()); in CallWithObject()
/third_party/libwebsockets/lib/cose/
Dcose_validate.c729 cps->map_key = ctx->item.u.i64; in cb_cose_sig()
736 if (cps->map_key == LWSCOSE_WKL_ALG) { in cb_cose_sig()
738 cps->map_key = 0; in cb_cose_sig()
870 if (cps->map_key == LWSCOSE_WKL_KID) { in cb_cose_sig()
880 cps->map_key = 0; in cb_cose_sig()
Dprivate-lib-cose.h95 cose_param_t map_key; /* parsing temp before val */ member
/third_party/protobuf/src/google/protobuf/compiler/objectivec/
Dobjectivec_map_field.cc88 descriptor->message_type()->map_key(); in MapFieldGenerator()
/third_party/protobuf/src/google/protobuf/util/internal/
Dprotostream_objectsource.cc287 std::string map_key; in RenderMap() local
297 map_key = ReadFieldValueAsString(*field); in RenderMap()
299 if (map_key.empty()) { in RenderMap()
308 ASSIGN_OR_RETURN(map_key, MapKeyDefaultValueAsString(*key_field)); in RenderMap()
310 RETURN_IF_ERROR(RenderField(field, map_key, ow)); in RenderMap()
Dprotostream_objectwriter.h292 bool InsertMapKeyIfNotPresent(StringPiece map_key);
Dprotostream_objectwriter.cc479 StringPiece map_key) { in InsertMapKeyIfNotPresent() argument
480 return InsertIfNotPresent(map_keys_.get(), std::string(map_key)); in InsertMapKeyIfNotPresent()
/third_party/mesa3d/src/intel/tools/
Daubinator_viewer.cpp327 map_key(int k) in map_key() function
335 return ImGui::GetIO().KeyCtrl && ImGui::IsKeyPressed(map_key(key)); in has_ctrl_key()
/third_party/mindspore/mindspore/ccsrc/ps/
Dworker.cc331 const Key &map_key = keys->at(i); in DoPSEmbeddingLookup() local
334 …id_addr_map[map_key] = std::make_shared<std::pair<float *, int64_t>>(std::make_pair(addr, single_i… in DoPSEmbeddingLookup()
/third_party/protobuf/
Dlibprotobuf.map99 "google::protobuf::Descriptor::map_key() const";