Home
last modified time | relevance | path

Searched refs:MapKey (Results 1 – 13 of 13) sorted by relevance

/third_party/protobuf/src/google/protobuf/
Dmap_field.cc157 : 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 …]
Dmap_field.h73 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 …]
Dmap_field_inl.h50 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 …]
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()
80 bool DeleteMapValue(const MapKey& map_key) override { return false; } in DeleteMapValue()
Dwire_format.cc68 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()
Dmessage.h147 class MapKey; variable
973 const MapKey& key) const;
979 const MapKey& key, MapValueRef* val) const;
984 const MapKey& key) const;
Dgenerated_message_reflection.h63 class MapKey; variable
Dmap_test_util.h71 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()
Dgenerated_message_reflection.cc1819 const MapKey& key) const { in ContainsMapKey()
1827 const MapKey& key, in InsertOrLookupMapValue()
1837 const MapKey& key) const { in DeleteMapValue()
Dtext_format.cc2112 static void CopyKey(const MapKey& key, Message* message,
2157 void MapFieldPrinterHelper::CopyKey(const MapKey& key, Message* message, in CopyKey()
Dmap_test.cc228 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/
Dmap_container.cc128 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/
Dfourslash.ts48 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;