Home
last modified time | relevance | path

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

/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/
Dmap_test_util.cc566 MapKey map_key; in SetMapFieldsViaMapReflection() local
567 map_key.SetInt32Value(0); in SetMapFieldsViaMapReflection()
569 message, F("map_int32_int32"), map_key, &map_val)); in SetMapFieldsViaMapReflection()
572 map_key.SetInt64Value(0); in SetMapFieldsViaMapReflection()
574 message, F("map_int64_int64"), map_key, &map_val)); in SetMapFieldsViaMapReflection()
577 map_key.SetUInt32Value(0); in SetMapFieldsViaMapReflection()
579 message, F("map_uint32_uint32"), map_key, &map_val)); in SetMapFieldsViaMapReflection()
582 map_key.SetUInt64Value(0); in SetMapFieldsViaMapReflection()
584 message, F("map_uint64_uint64"), map_key, &map_val)); in SetMapFieldsViaMapReflection()
587 map_key.SetInt32Value(0); in SetMapFieldsViaMapReflection()
[all …]
Dmap_field_inl.h48 T UnwrapMapKey(const MapKey& map_key);
50 inline int32 UnwrapMapKey<int32>(const MapKey& map_key) {
51 return map_key.GetInt32Value();
54 inline uint32 UnwrapMapKey<uint32>(const MapKey& map_key) {
55 return map_key.GetUInt32Value();
58 inline int64 UnwrapMapKey<int64>(const MapKey& map_key) {
59 return map_key.GetInt64Value();
62 inline uint64 UnwrapMapKey<uint64>(const MapKey& map_key) {
63 return map_key.GetUInt64Value();
66 inline bool UnwrapMapKey<bool>(const MapKey& map_key) {
[all …]
Dmap_field.cc175 const MapKey& map_key) const { in ContainsMapKey()
177 Map<MapKey, MapValueRef>::const_iterator iter = map.find(map_key); in ContainsMapKey()
182 const MapKey& map_key, MapValueRef* val) { in InsertOrLookupMapValue() argument
186 Map<MapKey, MapValueRef>::iterator iter = map->find(map_key); in InsertOrLookupMapValue()
189 MapValueRef& map_val = (*map)[map_key]; in InsertOrLookupMapValue()
229 bool DynamicMapField::DeleteMapValue(const MapKey& map_key) { in DeleteMapValue() argument
231 Map<MapKey, MapValueRef>::iterator iter = map_.find(map_key); in DeleteMapValue()
284 const MapKey& map_key = it->first; in SyncRepeatedFieldWithMapNoLock() local
287 reflection->SetString(new_entry, key_des, map_key.GetStringValue()); in SyncRepeatedFieldWithMapNoLock()
290 reflection->SetInt64(new_entry, key_des, map_key.GetInt64Value()); in SyncRepeatedFieldWithMapNoLock()
[all …]
Dmap_field.h89 virtual bool ContainsMapKey(const MapKey& map_key) const = 0;
91 const MapKey& map_key, MapValueRef* val) = 0;
92 virtual bool DeleteMapValue(const MapKey& map_key) = 0;
254 bool ContainsMapKey(const MapKey& map_key) const;
255 bool InsertOrLookupMapValue(const MapKey& map_key, MapValueRef* val);
256 bool DeleteMapValue(const MapKey& map_key);
305 bool ContainsMapKey(const MapKey& map_key) const;
306 bool InsertOrLookupMapValue(const MapKey& map_key, MapValueRef* val);
307 bool DeleteMapValue(const MapKey& map_key);
Dmap_field_test.cc78 bool ContainsMapKey(const MapKey& map_key) const { in ContainsMapKey()
81 bool InsertOrLookupMapValue(const MapKey& map_key, MapValueRef* val) { in InsertOrLookupMapValue() argument
84 bool DeleteMapValue(const MapKey& map_key) { in DeleteMapValue() argument
Dmap.h1710 operator()(const google::protobuf::MapKey& map_key) const {
1711 switch (map_key.type()) {
1719 return hash<string>()(map_key.GetStringValue());
1721 return hash< ::google::protobuf::int64>()(map_key.GetInt64Value());
1723 return hash< ::google::protobuf::int32>()(map_key.GetInt32Value());
1725 return hash< ::google::protobuf::uint64>()(map_key.GetUInt64Value());
1727 return hash< ::google::protobuf::uint32>()(map_key.GetUInt32Value());
1729 return hash<bool>()(map_key.GetBoolValue());
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/python/google/protobuf/pyext/
Dmap_container.cc336 MapKey map_key; in Contains() local
338 if (!PythonToMapKey(key, self->key_field_descriptor, &map_key)) { in Contains()
343 map_key)) { in Contains()
442 MapKey map_key; in ScalarMapGetItem() local
445 if (!PythonToMapKey(key, self->key_field_descriptor, &map_key)) { in ScalarMapGetItem()
450 map_key, &value)) { in ScalarMapGetItem()
463 MapKey map_key; in ScalarMapSetItem() local
466 if (!PythonToMapKey(key, self->key_field_descriptor, &map_key)) { in ScalarMapSetItem()
475 map_key, &value); in ScalarMapSetItem()
484 map_key)) { in ScalarMapSetItem()
[all …]
Dmessage.cc1079 PyObject* map_key; in CheckAndGetInteger() local
1081 while (PyDict_Next(value, &map_pos, &map_key, &map_value)) { in CheckAndGetInteger()
1083 function_return.reset(PyObject_GetItem(map.get(), map_key)); in CheckAndGetInteger()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/util/internal/
Dprotostream_objectsource.cc269 string map_key; in RenderMap() local
279 map_key = ReadFieldValueAsString(*field); in RenderMap()
281 if (map_key.empty()) { in RenderMap()
290 ASSIGN_OR_RETURN(map_key, MapKeyDefaultValueAsString(*key_field)); in RenderMap()
292 RETURN_IF_ERROR(RenderField(field, map_key, ow)); in RenderMap()
Dprotostream_objectwriter.h221 bool InsertMapKeyIfNotPresent(StringPiece map_key);
Dprotostream_objectwriter.cc412 StringPiece map_key) { in InsertMapKeyIfNotPresent() argument
413 return InsertIfNotPresent(map_keys_.get(), map_key.ToString()); in InsertMapKeyIfNotPresent()