map_field_inl.h
Go to the documentation of this file.
1 // Protocol Buffers - Google's data interchange format
2 // Copyright 2008 Google Inc. All rights reserved.
3 // https://developers.google.com/protocol-buffers/
4 //
5 // Redistribution and use in source and binary forms, with or without
6 // modification, are permitted provided that the following conditions are
7 // met:
8 //
9 // * Redistributions of source code must retain the above copyright
10 // notice, this list of conditions and the following disclaimer.
11 // * Redistributions in binary form must reproduce the above
12 // copyright notice, this list of conditions and the following disclaimer
13 // in the documentation and/or other materials provided with the
14 // distribution.
15 // * Neither the name of Google Inc. nor the names of its
16 // contributors may be used to endorse or promote products derived from
17 // this software without specific prior written permission.
18 //
19 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
20 // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
21 // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
22 // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
23 // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
24 // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
25 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
26 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
27 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
28 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30 
31 #ifndef GOOGLE_PROTOBUF_MAP_FIELD_INL_H__
32 #define GOOGLE_PROTOBUF_MAP_FIELD_INL_H__
33 
34 #include <memory>
35 
37 #include <google/protobuf/map.h>
40 
41 #ifdef SWIG
42 #error "You cannot SWIG proto headers"
43 #endif
44 
45 namespace google {
46 namespace protobuf {
47 namespace internal {
48 // UnwrapMapKey template
49 template <typename T>
50 T UnwrapMapKey(const MapKey& map_key);
51 template <>
52 inline int32 UnwrapMapKey<int32>(const MapKey& map_key) {
53  return map_key.GetInt32Value();
54 }
55 template <>
56 inline uint32 UnwrapMapKey<uint32>(const MapKey& map_key) {
57  return map_key.GetUInt32Value();
58 }
59 template <>
60 inline int64 UnwrapMapKey<int64>(const MapKey& map_key) {
61  return map_key.GetInt64Value();
62 }
63 template <>
64 inline uint64 UnwrapMapKey<uint64>(const MapKey& map_key) {
65  return map_key.GetUInt64Value();
66 }
67 template <>
68 inline bool UnwrapMapKey<bool>(const MapKey& map_key) {
69  return map_key.GetBoolValue();
70 }
71 template <>
72 inline std::string UnwrapMapKey<std::string>(const MapKey& map_key) {
73  return map_key.GetStringValue();
74 }
75 
76 // SetMapKey template
77 template <typename T>
78 inline void SetMapKey(MapKey* map_key, const T& value);
79 template <>
80 inline void SetMapKey<int32>(MapKey* map_key, const int32& value) {
81  map_key->SetInt32Value(value);
82 }
83 template <>
84 inline void SetMapKey<uint32>(MapKey* map_key, const uint32& value) {
85  map_key->SetUInt32Value(value);
86 }
87 template <>
88 inline void SetMapKey<int64>(MapKey* map_key, const int64& value) {
89  map_key->SetInt64Value(value);
90 }
91 template <>
92 inline void SetMapKey<uint64>(MapKey* map_key, const uint64& value) {
93  map_key->SetUInt64Value(value);
94 }
95 template <>
96 inline void SetMapKey<bool>(MapKey* map_key, const bool& value) {
97  map_key->SetBoolValue(value);
98 }
99 template <>
100 inline void SetMapKey<std::string>(MapKey* map_key, const std::string& value) {
101  map_key->SetStringValue(value);
102 }
103 
104 // ------------------------TypeDefinedMapFieldBase---------------
105 template <typename Key, typename T>
108  const MapIterator* map_iter) const {
109  return *reinterpret_cast<typename Map<Key, T>::const_iterator*>(
110  map_iter->iter_);
111 }
112 
113 template <typename Key, typename T>
115  InternalGetIterator(map_iter) = GetMap().begin();
116  SetMapIteratorValue(map_iter);
117 }
118 
119 template <typename Key, typename T>
121  InternalGetIterator(map_iter) = GetMap().end();
122 }
123 
124 template <typename Key, typename T>
126  const MapIterator& a, const MapIterator& b) const {
127  return InternalGetIterator(&a) == InternalGetIterator(&b);
128 }
129 
130 template <typename Key, typename T>
132  MapIterator* map_iter) const {
133  ++InternalGetIterator(map_iter);
134  SetMapIteratorValue(map_iter);
135 }
136 
137 template <typename Key, typename T>
139  MapIterator* map_iter) const {
140  map_iter->iter_ = new typename Map<Key, T>::const_iterator;
141  GOOGLE_CHECK(map_iter->iter_ != NULL);
142 }
143 
144 template <typename Key, typename T>
146  MapIterator* map_iter) const {
147  delete reinterpret_cast<typename Map<Key, T>::const_iterator*>(
148  map_iter->iter_);
149 }
150 
151 template <typename Key, typename T>
153  MapIterator* this_iter, const MapIterator& that_iter) const {
154  InternalGetIterator(this_iter) = InternalGetIterator(&that_iter);
155  this_iter->key_.SetType(that_iter.key_.type());
156  // MapValueRef::type() fails when containing data is null. However, if
157  // this_iter points to MapEnd, data can be null.
158  this_iter->value_.SetType(
159  static_cast<FieldDescriptor::CppType>(that_iter.value_.type_));
160  SetMapIteratorValue(this_iter);
161 }
162 
163 // ----------------------------------------------------------------------
164 
165 template <typename Derived, typename Key, typename T,
166  WireFormatLite::FieldType kKeyFieldType,
167  WireFormatLite::FieldType kValueFieldType, int default_enum_value>
168 int MapField<Derived, Key, T, kKeyFieldType, kValueFieldType,
169  default_enum_value>::size() const {
171  return static_cast<int>(impl_.GetMap().size());
172 }
173 
174 template <typename Derived, typename Key, typename T,
175  WireFormatLite::FieldType kKeyFieldType,
176  WireFormatLite::FieldType kValueFieldType, int default_enum_value>
177 void MapField<Derived, Key, T, kKeyFieldType, kValueFieldType,
178  default_enum_value>::Clear() {
179  if (this->MapFieldBase::repeated_field_ != nullptr) {
181  reinterpret_cast<RepeatedPtrField<EntryType>*>(
183  repeated_field->Clear();
184  }
185 
186  impl_.MutableMap()->clear();
187  // Data in map and repeated field are both empty, but we can't set status
188  // CLEAN. Because clear is a generated API, we cannot invalidate previous
189  // reference to map.
191 }
192 
193 template <typename Derived, typename Key, typename T,
194  WireFormatLite::FieldType kKeyFieldType,
195  WireFormatLite::FieldType kValueFieldType, int default_enum_value>
196 void MapField<Derived, Key, T, kKeyFieldType, kValueFieldType,
197  default_enum_value>::SetMapIteratorValue(MapIterator* map_iter)
198  const {
199  const Map<Key, T>& map = impl_.GetMap();
200  typename Map<Key, T>::const_iterator iter =
202  if (iter == map.end()) return;
203  SetMapKey(&map_iter->key_, iter->first);
204  map_iter->value_.SetValue(&iter->second);
205 }
206 
207 template <typename Derived, typename Key, typename T,
208  WireFormatLite::FieldType kKeyFieldType,
209  WireFormatLite::FieldType kValueFieldType, int default_enum_value>
210 bool MapField<Derived, Key, T, kKeyFieldType, kValueFieldType,
211  default_enum_value>::ContainsMapKey(const MapKey& map_key) const {
212  const Map<Key, T>& map = impl_.GetMap();
213  const Key& key = UnwrapMapKey<Key>(map_key);
214  typename Map<Key, T>::const_iterator iter = map.find(key);
215  return iter != map.end();
216 }
217 
218 template <typename Derived, typename Key, typename T,
219  WireFormatLite::FieldType kKeyFieldType,
220  WireFormatLite::FieldType kValueFieldType, int default_enum_value>
221 bool MapField<Derived, Key, T, kKeyFieldType, kValueFieldType,
222  default_enum_value>::InsertOrLookupMapValue(const MapKey& map_key,
223  MapValueRef* val) {
224  // Always use mutable map because users may change the map value by
225  // MapValueRef.
226  Map<Key, T>* map = MutableMap();
227  const Key& key = UnwrapMapKey<Key>(map_key);
228  typename Map<Key, T>::iterator iter = map->find(key);
229  if (map->end() == iter) {
230  val->SetValue(&((*map)[key]));
231  return true;
232  }
233  // Key is already in the map. Make sure (*map)[key] is not called.
234  // [] may reorder the map and iterators.
235  val->SetValue(&(iter->second));
236  return false;
237 }
238 
239 template <typename Derived, typename Key, typename T,
240  WireFormatLite::FieldType kKeyFieldType,
241  WireFormatLite::FieldType kValueFieldType, int default_enum_value>
242 bool MapField<Derived, Key, T, kKeyFieldType, kValueFieldType,
243  default_enum_value>::DeleteMapValue(const MapKey& map_key) {
244  const Key& key = UnwrapMapKey<Key>(map_key);
245  return MutableMap()->erase(key);
246 }
247 
248 template <typename Derived, typename Key, typename T,
249  WireFormatLite::FieldType kKeyFieldType,
250  WireFormatLite::FieldType kValueFieldType, int default_enum_value>
251 void MapField<Derived, Key, T, kKeyFieldType, kValueFieldType,
252  default_enum_value>::MergeFrom(const MapFieldBase& other) {
254  const MapField& other_field = static_cast<const MapField&>(other);
255  other_field.SyncMapWithRepeatedField();
256  impl_.MergeFrom(other_field.impl_);
258 }
259 
260 template <typename Derived, typename Key, typename T,
261  WireFormatLite::FieldType kKeyFieldType,
262  WireFormatLite::FieldType kValueFieldType, int default_enum_value>
263 void MapField<Derived, Key, T, kKeyFieldType, kValueFieldType,
264  default_enum_value>::Swap(MapFieldBase* other) {
265  MapField* other_field = down_cast<MapField*>(other);
266  std::swap(this->MapFieldBase::repeated_field_, other_field->repeated_field_);
267  impl_.Swap(&other_field->impl_);
268  // a relaxed swap of the atomic
269  auto other_state = other_field->state_.load(std::memory_order_relaxed);
270  auto this_state = this->MapFieldBase::state_.load(std::memory_order_relaxed);
271  other_field->state_.store(this_state, std::memory_order_relaxed);
272  this->MapFieldBase::state_.store(other_state, std::memory_order_relaxed);
273 }
274 
275 template <typename Derived, typename Key, typename T,
276  WireFormatLite::FieldType kKeyFieldType,
277  WireFormatLite::FieldType kValueFieldType, int default_enum_value>
278 void MapField<Derived, Key, T, kKeyFieldType, kValueFieldType,
279  default_enum_value>::SyncRepeatedFieldWithMapNoLock() const {
280  if (this->MapFieldBase::repeated_field_ == NULL) {
281  if (this->MapFieldBase::arena_ == NULL) {
283  } else {
285  Arena::CreateMessage<RepeatedPtrField<Message> >(
286  this->MapFieldBase::arena_);
287  }
288  }
289  const Map<Key, T>& map = impl_.GetMap();
291  reinterpret_cast<RepeatedPtrField<EntryType>*>(
293 
294  repeated_field->Clear();
295 
296  // The only way we can get at this point is through reflection and the
297  // only way we can get the reflection object is by having called GetReflection
298  // on the encompassing field. So that type must have existed and hence we
299  // know that this MapEntry default_type has also already been constructed.
300  // So it's safe to just call internal_default_instance().
301  const Message* default_entry = Derived::internal_default_instance();
302  for (typename Map<Key, T>::const_iterator it = map.begin(); it != map.end();
303  ++it) {
304  EntryType* new_entry =
305  down_cast<EntryType*>(default_entry->New(this->MapFieldBase::arena_));
306  repeated_field->AddAllocated(new_entry);
307  (*new_entry->mutable_key()) = it->first;
308  (*new_entry->mutable_value()) = it->second;
309  }
310 }
311 
312 template <typename Derived, typename Key, typename T,
313  WireFormatLite::FieldType kKeyFieldType,
314  WireFormatLite::FieldType kValueFieldType, int default_enum_value>
315 void MapField<Derived, Key, T, kKeyFieldType, kValueFieldType,
316  default_enum_value>::SyncMapWithRepeatedFieldNoLock() const {
317  Map<Key, T>* map = const_cast<MapField*>(this)->impl_.MutableMap();
319  reinterpret_cast<RepeatedPtrField<EntryType>*>(
322  map->clear();
324  repeated_field->begin();
325  it != repeated_field->end(); ++it) {
326  // Cast is needed because Map's api and internal storage is different when
327  // value is enum. For enum, we cannot cast an int to enum. Thus, we have to
328  // copy value. For other types, they have same exposed api type and internal
329  // stored type. We should not introduce value copy for them. We achieve this
330  // by casting to value for enum while casting to reference for other types.
331  (*map)[it->key()] = static_cast<CastValueType>(it->value());
332  }
333 }
334 
335 template <typename Derived, typename Key, typename T,
336  WireFormatLite::FieldType kKeyFieldType,
337  WireFormatLite::FieldType kValueFieldType, int default_enum_value>
338 size_t MapField<Derived, Key, T, kKeyFieldType, kValueFieldType,
339  default_enum_value>::SpaceUsedExcludingSelfNoLock() const {
340  size_t size = 0;
341  if (this->MapFieldBase::repeated_field_ != NULL) {
342  size += this->MapFieldBase::repeated_field_->SpaceUsedExcludingSelfLong();
343  }
344  Map<Key, T>* map = const_cast<MapField*>(this)->impl_.MutableMap();
345  size += sizeof(*map);
346  for (typename Map<Key, T>::iterator it = map->begin(); it != map->end();
347  ++it) {
348  size += KeyTypeHandler::SpaceUsedInMapLong(it->first);
349  size += ValueTypeHandler::SpaceUsedInMapLong(it->second);
350  }
351  return size;
352 }
353 } // namespace internal
354 } // namespace protobuf
355 } // namespace google
356 
357 #endif // GOOGLE_PROTOBUF_MAP_FIELD_INL_H__
google::protobuf::RepeatedPtrField
Definition: command_line_interface.h:62
google::protobuf.internal::UnwrapMapKey< uint32 >
uint32 UnwrapMapKey< uint32 >(const MapKey &map_key)
Definition: map_field_inl.h:56
google::protobuf.internal::UnwrapMapKey< uint64 >
uint64 UnwrapMapKey< uint64 >(const MapKey &map_key)
Definition: map_field_inl.h:64
google::protobuf.internal::TypeDefinedMapFieldBase::EqualIterator
bool EqualIterator(const MapIterator &a, const MapIterator &b) const override
Definition: map_field_inl.h:125
google::protobuf.internal::TypeDefinedMapFieldBase::MapBegin
void MapBegin(MapIterator *map_iter) const override
Definition: map_field_inl.h:114
NULL
NULL
Definition: test_security_zap.cpp:405
google::protobuf::int64
int64_t int64
Definition: protobuf/src/google/protobuf/stubs/port.h:151
google::protobuf.internal.python_message.MergeFrom
MergeFrom
Definition: python_message.py:1340
google::protobuf.internal::MapField
Definition: map.h:78
google::protobuf::MapKey::GetUInt64Value
uint64 GetUInt64Value() const
Definition: map_field.h:424
google::protobuf::MapKey::SetUInt64Value
void SetUInt64Value(uint64 value)
Definition: map_field.h:399
google::protobuf::MapKey::SetStringValue
void SetStringValue(const std::string &val)
Definition: map_field.h:415
google::protobuf.internal::UnwrapMapKey< int32 >
int32 UnwrapMapKey< int32 >(const MapKey &map_key)
Definition: map_field_inl.h:52
google::protobuf.internal::UnwrapMapKey
T UnwrapMapKey(const MapKey &map_key)
google::protobuf::MapKey::GetInt32Value
int32 GetInt32Value() const
Definition: map_field.h:428
google::protobuf::MapValueRef::type_
int type_
Definition: map_field.h:707
google::protobuf::uint32
uint32_t uint32
Definition: protobuf/src/google/protobuf/stubs/port.h:155
google::protobuf::MapKey::GetUInt32Value
uint32 GetUInt32Value() const
Definition: map_field.h:432
map_type_handler.h
google::protobuf::MapIterator::iter_
void * iter_
Definition: map_field.h:770
string
GLsizei const GLchar *const * string
Definition: glcorearb.h:3083
map
zval * map
Definition: php/ext/google/protobuf/encode_decode.c:473
google::protobuf::MapKey::SetType
void SetType(FieldDescriptor::CppType type)
Definition: map_field.h:549
T
#define T(upbtypeconst, upbtype, ctype, default_value)
google::protobuf.internal::TypeDefinedMapFieldBase::DeleteIterator
void DeleteIterator(MapIterator *map_iter) const override
Definition: map_field_inl.h:145
google::protobuf.internal::SetMapKey< uint32 >
void SetMapKey< uint32 >(MapKey *map_key, const uint32 &value)
Definition: map_field_inl.h:84
google::protobuf.internal::TypeDefinedMapFieldBase::IncreaseIterator
void IncreaseIterator(MapIterator *map_iter) const override
Definition: map_field_inl.h:131
map_field.h
google::protobuf::MapIterator::key_
MapKey key_
Definition: map_field.h:774
google::protobuf::MapKey::type
FieldDescriptor::CppType type() const
Definition: map_field.h:386
b
GLboolean GLboolean GLboolean b
Definition: glcorearb.h:3228
google::protobuf::int32
int32_t int32
Definition: protobuf/src/google/protobuf/stubs/port.h:150
google::protobuf.internal::MapField::EntryType
Derived EntryType
Definition: map_field.h:227
repeated_field
PHP_PROTO_OBJECT_FREE_END PHP_PROTO_OBJECT_DTOR_END intern repeated_field
Definition: array.c:486
google::protobuf::python::GetMap
static MapContainer * GetMap(PyObject *obj)
Definition: map_container.cc:307
google::protobuf.internal::SetMapKey< int32 >
void SetMapKey< int32 >(MapKey *map_key, const int32 &value)
Definition: map_field_inl.h:80
google::protobuf.internal::SetMapKey< uint64 >
void SetMapKey< uint64 >(MapKey *map_key, const uint64 &value)
Definition: map_field_inl.h:92
google::protobuf.internal::SetMapKey< bool >
void SetMapKey< bool >(MapKey *map_key, const bool &value)
Definition: map_field_inl.h:96
google::protobuf.internal::MapField::MergeFrom
void MergeFrom(const MapFieldBase &other) override
Definition: map_field_inl.h:252
google::protobuf::MapValueRef::SetType
void SetType(FieldDescriptor::CppType type)
Definition: map_field.h:668
google::protobuf.internal::MapFieldBase::repeated_field_
RepeatedPtrField< Message > * repeated_field_
Definition: map_field.h:148
google::protobuf::MapKey::GetInt64Value
int64 GetInt64Value() const
Definition: map_field.h:420
google::protobuf.internal::MapFieldBase::SetMapDirty
void SetMapDirty()
Definition: map_field.cc:84
google::protobuf.internal::TypeDefinedMapFieldBase::InitializeIterator
void InitializeIterator(MapIterator *map_iter) const override
Definition: map_field_inl.h:138
std::swap
void swap(Json::Value &a, Json::Value &b)
Specialize std::swap() for Json::Value.
Definition: json.h:1226
google::protobuf.internal::MapFieldBase::arena_
Arena * arena_
Definition: map_field.h:147
google::protobuf::Map::clear
void clear()
Definition: map.h:1143
google::protobuf::uint64
uint64_t uint64
Definition: protobuf/src/google/protobuf/stubs/port.h:156
size
#define size
Definition: glcorearb.h:2944
google::protobuf.internal::RepeatedPtrIterator
Definition: repeated_field.h:369
google::protobuf.internal::WireFormatLite::FieldType
FieldType
Definition: wire_format_lite.h:111
google::protobuf::MapKey::SetInt64Value
void SetInt64Value(int64 value)
Definition: map_field.h:395
casts.h
map.h
key
const SETUP_TEARDOWN_TESTCONTEXT char * key
Definition: test_wss_transport.cpp:10
GOOGLE_CHECK
#define GOOGLE_CHECK(EXPRESSION)
Definition: logging.h:153
google::protobuf::MapIterator::value_
MapValueRef value_
Definition: map_field.h:775
google::protobuf::MapKey::SetInt32Value
void SetInt32Value(int32 value)
Definition: map_field.h:403
google::protobuf::Message
Definition: src/google/protobuf/message.h:205
google::protobuf.internal::TypeDefinedMapFieldBase::CopyIterator
void CopyIterator(MapIterator *this_iteratorm, const MapIterator &that_iterator) const override
Definition: map_field_inl.h:152
google::protobuf.internal.python_message.Clear
Clear
Definition: python_message.py:1431
google::protobuf.internal::MapField::impl_
MapFieldLiteType impl_
Definition: map_field.h:297
google::protobuf.internal::UnwrapMapKey< int64 >
int64 UnwrapMapKey< int64 >(const MapKey &map_key)
Definition: map_field_inl.h:60
google::protobuf.internal::MapField::CastValueType
MapIf< kIsValueEnum, T, const T & >::type CastValueType
Definition: map_field.h:239
size
GLsizeiptr size
Definition: glcorearb.h:2943
google::protobuf::MapKey
Definition: map_field.h:371
google::protobuf::MapKey::GetStringValue
const std::string & GetStringValue() const
Definition: map_field.h:440
google::protobuf::MapValueRef::SetValue
void SetValue(const void *val)
Definition: map_field.h:677
google::protobuf::RepeatedPtrField::Clear
void Clear()
Definition: repeated_field.h:2135
google::protobuf.internal::MapFieldBase::SyncMapWithRepeatedField
void SyncMapWithRepeatedField() const
Definition: map_field.cc:137
google::protobuf.internal::MapField::MutableMap
Map< Key, T > * MutableMap() override
Definition: map_field.h:259
google::protobuf::Message::New
Message * New() const override=0
google::protobuf.internal::TypeDefinedMapFieldBase::InternalGetIterator
Map< Key, T >::const_iterator & InternalGetIterator(const MapIterator *map_iter) const
Definition: map_field_inl.h:107
google::protobuf::Map
Definition: map.h:62
internal
Definition: any.pb.h:40
google::protobuf.internal::MapFieldBase
Definition: map_field.h:69
google::protobuf.internal::TypeDefinedMapFieldBase::MapEnd
void MapEnd(MapIterator *map_iter) const override
Definition: map_field_inl.h:120
val
GLuint GLfloat * val
Definition: glcorearb.h:3604
value
GLsizei const GLfloat * value
Definition: glcorearb.h:3093
google::protobuf::MapKey::SetBoolValue
void SetBoolValue(bool value)
Definition: map_field.h:411
google::protobuf.internal::SetMapKey< int64 >
void SetMapKey< int64 >(MapKey *map_key, const int64 &value)
Definition: map_field_inl.h:88
google::protobuf::MapKey::GetBoolValue
bool GetBoolValue() const
Definition: map_field.h:436
google::protobuf::MapIterator
Definition: map_field.h:712
google::protobuf.internal::MapFieldBase::state_
std::atomic< State > state_
Definition: map_field.h:153
a
GLboolean GLboolean GLboolean GLboolean a
Definition: glcorearb.h:3228
google::protobuf.internal::SetMapKey
void SetMapKey(MapKey *map_key, const T &value)
google::protobuf.internal::UnwrapMapKey< bool >
bool UnwrapMapKey< bool >(const MapKey &map_key)
Definition: map_field_inl.h:68
google::protobuf::MapKey::SetUInt32Value
void SetUInt32Value(uint32 value)
Definition: map_field.h:407
it
MapIter it
Definition: php/ext/google/protobuf/map.c:205
google::protobuf::FieldDescriptor::CppType
CppType
Definition: src/google/protobuf/descriptor.h:553
google
Definition: data_proto2_to_proto3_util.h:11
google::protobuf::MapValueRef
Definition: map_field.h:565


libaditof
Author(s):
autogenerated on Wed May 21 2025 02:06:56