Searched refs:MapKey (Results 1 – 13 of 13) sorted by relevance
| /third_party/protobuf/src/google/protobuf/ |
| D | map_field.cc | 157 : TypeDefinedMapFieldBase<MapKey, MapValueRef>(arena), in DynamicMapField() 164 for (Map<MapKey, MapValueRef>::iterator iter = map_.begin(); in ~DynamicMapField() 174 Map<MapKey, MapValueRef>* map = &const_cast<DynamicMapField*>(this)->map_; in Clear() 176 for (Map<MapKey, MapValueRef>::iterator iter = map->begin(); in Clear() 192 bool DynamicMapField::ContainsMapKey(const MapKey& map_key) const { in ContainsMapKey() 193 const Map<MapKey, MapValueRef>& map = GetMap(); 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() 234 Map<MapKey, MapValueRef>* map = MutableMap(); in InsertOrLookupMapValue() 235 Map<MapKey, MapValueRef>::iterator iter = map->find(map_key); in InsertOrLookupMapValue() [all …]
|
| D | map_field.h | 73 class PROTOBUF_EXPORT MapKey { 75 MapKey() : type_(0) {} in MapKey() function 76 MapKey(const MapKey& other) : type_(0) { CopyFrom(other); } in MapKey() function 78 MapKey& operator=(const MapKey& other) { 83 ~MapKey() { in ~MapKey() 148 bool operator<(const MapKey& other) const { 177 bool operator==(const MapKey& other) const { 206 void CopyFrom(const MapKey& other) { in CopyFrom() 299 virtual bool ContainsMapKey(const MapKey& map_key) const = 0; 300 virtual bool InsertOrLookupMapValue(const MapKey& map_key, [all …]
|
| D | map_field_inl.h | 50 T UnwrapMapKey(const MapKey& map_key); 52 inline int32 UnwrapMapKey<int32>(const MapKey& map_key) { 56 inline uint32 UnwrapMapKey<uint32>(const MapKey& map_key) { 60 inline int64 UnwrapMapKey<int64>(const MapKey& map_key) { 64 inline uint64 UnwrapMapKey<uint64>(const MapKey& map_key) { 68 inline bool UnwrapMapKey<bool>(const MapKey& map_key) { 72 inline std::string UnwrapMapKey<std::string>(const MapKey& map_key) { 78 inline void SetMapKey(MapKey* map_key, const T& value); 80 inline void SetMapKey<int32>(MapKey* map_key, const int32& value) { 84 inline void SetMapKey<uint32>(MapKey* map_key, const uint32& value) { [all …]
|
| D | map_field_test.cc | 75 bool ContainsMapKey(const MapKey& map_key) const override { return false; } in ContainsMapKey() 76 bool InsertOrLookupMapValue(const MapKey& map_key, in InsertOrLookupMapValue() 80 bool DeleteMapValue(const MapKey& map_key) override { return false; } in DeleteMapValue()
|
| D | wire_format.cc | 68 const MapKey& value); 1065 const MapKey& value, uint8* target, in SerializeMapKeyWithCachedSizes() 1144 static std::vector<MapKey> SortKey(const Message& message, in SortKey() 1147 std::vector<MapKey> sorted_key_list; in SortKey() 1162 bool operator()(const MapKey& a, const MapKey& b) const { in operator ()() 1186 const MapKey& key, in InternalSerializeMapEntry() 1236 std::vector<MapKey> sorted_key_list = in InternalSerializeField() 1238 for (std::vector<MapKey>::iterator it = sorted_key_list.begin(); in InternalSerializeField() 1528 const MapKey& value) { in MapKeyDataOnlyByteSize()
|
| D | message.h | 147 class MapKey; variable 973 const MapKey& key) const; 979 const MapKey& key, MapValueRef* val) const; 984 const MapKey& key) const;
|
| D | generated_message_reflection.h | 63 class MapKey; variable
|
| D | map_test_util.h | 71 const MapKey& map_key, MapValueRef* map_val); 500 MapKey map_key; in SetMapFieldsViaMapReflection() 682 Message* message, const std::string& field_name, const MapKey& map_key, in GetMapValueViaMapReflection() 742 MapKey map_key; in ModifyMapFieldsViaReflection() 935 MapKey map_key; in ExpectMapFieldsSetViaReflection()
|
| D | generated_message_reflection.cc | 1819 const MapKey& key) const { in ContainsMapKey() 1827 const MapKey& key, in InsertOrLookupMapValue() 1837 const MapKey& key) const { in DeleteMapValue()
|
| D | text_format.cc | 2112 static void CopyKey(const MapKey& key, Message* message, 2157 void MapFieldPrinterHelper::CopyKey(const MapKey& key, Message* message, in CopyKey()
|
| D | map_test.cc | 228 MapKey key; in TEST_F() 245 MapKey from, to; in TEST_F() 2901 MapKey map_key; in TEST_F()
|
| /third_party/protobuf/python/google/protobuf/pyext/ |
| D | map_container.cc | 128 static bool PythonToMapKey(MapContainer* self, PyObject* obj, MapKey* key) { in PythonToMapKey() 174 static PyObject* MapKeyToPython(MapContainer* self, const MapKey& key) { in MapKeyToPython() 361 MapKey map_key; in Contains() 406 MapKey map_key; in ScalarMapGetItem() 427 MapKey map_key; in ScalarMapSetItem() 667 MapKey map_key; in MessageMapSetItem() 709 MapKey map_key; in MessageMapGetItem()
|
| /third_party/typescript/tests/cases/fourslash/ |
| D | fourslash.ts | 48 export type MapKey = string | number; alias 51 get(key: MapKey): T; 52 has(key: MapKey): boolean; 53 set(key: MapKey, value: T): this; 54 delete(key: MapKey): boolean;
|