Public Types | Public Member Functions | Private Types | Private Member Functions | Private Attributes | Static Private Attributes | Friends | List of all members
google::protobuf.internal::MapField< Derived, Key, T, kKeyFieldType, kValueFieldType, default_enum_value > Class Template Reference

#include <map.h>

Public Types

typedef Derived::SuperType EntryTypeTrait
 
typedef Map< Key, TMapType
 

Public Member Functions

const char * _InternalParse (const char *ptr, ParseContext *ctx)
 
void Clear () override
 
bool ContainsMapKey (const MapKey &map_key) const override
 
bool DeleteMapValue (const MapKey &map_key) override
 
const Map< Key, T > & GetMap () const override
 
bool InsertOrLookupMapValue (const MapKey &map_key, MapValueRef *val) override
 
 MapField ()
 
 MapField (Arena *arena)
 
void MergeFrom (const MapFieldBase &other) override
 
Map< Key, T > * MutableMap () override
 
EntryTypeNewEntry () const
 
EntryTypeNewEntryWrapper (const Key &key, const T &t) const
 
EntryTypeNewEnumEntryWrapper (const Key &key, const T t) const
 
template<typename Metadata >
const char * ParseWithEnumValidation (const char *ptr, ParseContext *ctx, bool(*is_valid)(int), uint32 field_num, Metadata *metadata)
 
int size () const override
 
void Swap (MapFieldBase *other) override
 

Private Types

typedef MapIf< kIsValueEnum, T, const T & >::type CastValueType
 
typedef void DestructorSkippable_
 
typedef Derived EntryType
 
typedef void InternalArenaConstructable_
 
typedef MapTypeHandler< kKeyFieldType, Key > KeyTypeHandler
 
typedef MapFieldLite< Derived, Key, T, kKeyFieldType, kValueFieldType, default_enum_value > MapFieldLiteType
 
typedef MapTypeHandler< kValueFieldType, TValueTypeHandler
 

Private Member Functions

 GOOGLE_DISALLOW_EVIL_CONSTRUCTORS (MapField)
 
void SetMapIteratorValue (MapIterator *map_iter) const override
 
size_t SpaceUsedExcludingSelfNoLock () const override
 
void SyncMapWithRepeatedFieldNoLock () const override
 
void SyncRepeatedFieldWithMapNoLock () const override
 

Private Attributes

MapFieldLiteType impl_
 

Static Private Attributes

static const bool kIsValueEnum = ValueTypeHandler::kIsEnum
 

Friends

class ::PROTOBUF_NAMESPACE_ID::Arena
 
class MapFieldStateTest
 

Detailed Description

template<typename Derived, typename Key, typename T, WireFormatLite::FieldType kKeyFieldType, WireFormatLite::FieldType kValueFieldType, int default_enum_value = 0>
class google::protobuf.internal::MapField< Derived, Key, T, kKeyFieldType, kValueFieldType, default_enum_value >

Definition at line 78 of file map.h.

Member Typedef Documentation

◆ CastValueType

template<typename Derived , typename Key , typename T , WireFormatLite::FieldType kKeyFieldType, WireFormatLite::FieldType kValueFieldType, int default_enum_value = 0>
typedef MapIf<kIsValueEnum, T, const T&>::type google::protobuf.internal::MapField< Derived, Key, T, kKeyFieldType, kValueFieldType, default_enum_value >::CastValueType
private

Definition at line 239 of file map_field.h.

◆ DestructorSkippable_

template<typename Derived , typename Key , typename T , WireFormatLite::FieldType kKeyFieldType, WireFormatLite::FieldType kValueFieldType, int default_enum_value = 0>
typedef void google::protobuf.internal::MapField< Derived, Key, T, kKeyFieldType, kValueFieldType, default_enum_value >::DestructorSkippable_
private

Definition at line 300 of file map_field.h.

◆ EntryType

template<typename Derived , typename Key , typename T , WireFormatLite::FieldType kKeyFieldType, WireFormatLite::FieldType kValueFieldType, int default_enum_value = 0>
typedef Derived google::protobuf.internal::MapField< Derived, Key, T, kKeyFieldType, kValueFieldType, default_enum_value >::EntryType
private

Definition at line 227 of file map_field.h.

◆ EntryTypeTrait

template<typename Derived , typename Key , typename T , WireFormatLite::FieldType kKeyFieldType, WireFormatLite::FieldType kValueFieldType, int default_enum_value = 0>
typedef Derived::SuperType google::protobuf.internal::MapField< Derived, Key, T, kKeyFieldType, kValueFieldType, default_enum_value >::EntryTypeTrait

Definition at line 242 of file map_field.h.

◆ InternalArenaConstructable_

template<typename Derived , typename Key , typename T , WireFormatLite::FieldType kKeyFieldType, WireFormatLite::FieldType kValueFieldType, int default_enum_value = 0>
typedef void google::protobuf.internal::MapField< Derived, Key, T, kKeyFieldType, kValueFieldType, default_enum_value >::InternalArenaConstructable_
private

Definition at line 299 of file map_field.h.

◆ KeyTypeHandler

template<typename Derived , typename Key , typename T , WireFormatLite::FieldType kKeyFieldType, WireFormatLite::FieldType kValueFieldType, int default_enum_value = 0>
typedef MapTypeHandler<kKeyFieldType, Key> google::protobuf.internal::MapField< Derived, Key, T, kKeyFieldType, kValueFieldType, default_enum_value >::KeyTypeHandler
private

Definition at line 223 of file map_field.h.

◆ MapFieldLiteType

template<typename Derived , typename Key , typename T , WireFormatLite::FieldType kKeyFieldType, WireFormatLite::FieldType kValueFieldType, int default_enum_value = 0>
typedef MapFieldLite<Derived, Key, T, kKeyFieldType, kValueFieldType, default_enum_value> google::protobuf.internal::MapField< Derived, Key, T, kKeyFieldType, kValueFieldType, default_enum_value >::MapFieldLiteType
private

Definition at line 232 of file map_field.h.

◆ MapType

template<typename Derived , typename Key , typename T , WireFormatLite::FieldType kKeyFieldType, WireFormatLite::FieldType kValueFieldType, int default_enum_value = 0>
typedef Map<Key, T> google::protobuf.internal::MapField< Derived, Key, T, kKeyFieldType, kValueFieldType, default_enum_value >::MapType

Definition at line 243 of file map_field.h.

◆ ValueTypeHandler

template<typename Derived , typename Key , typename T , WireFormatLite::FieldType kKeyFieldType, WireFormatLite::FieldType kValueFieldType, int default_enum_value = 0>
typedef MapTypeHandler<kValueFieldType, T> google::protobuf.internal::MapField< Derived, Key, T, kKeyFieldType, kValueFieldType, default_enum_value >::ValueTypeHandler
private

Definition at line 224 of file map_field.h.

Constructor & Destructor Documentation

◆ MapField() [1/2]

template<typename Derived , typename Key , typename T , WireFormatLite::FieldType kKeyFieldType, WireFormatLite::FieldType kValueFieldType, int default_enum_value = 0>
google::protobuf.internal::MapField< Derived, Key, T, kKeyFieldType, kValueFieldType, default_enum_value >::MapField ( )
inline

Definition at line 245 of file map_field.h.

◆ MapField() [2/2]

template<typename Derived , typename Key , typename T , WireFormatLite::FieldType kKeyFieldType, WireFormatLite::FieldType kValueFieldType, int default_enum_value = 0>
google::protobuf.internal::MapField< Derived, Key, T, kKeyFieldType, kValueFieldType, default_enum_value >::MapField ( Arena *  arena)
inlineexplicit

Definition at line 246 of file map_field.h.

Member Function Documentation

◆ _InternalParse()

template<typename Derived , typename Key , typename T , WireFormatLite::FieldType kKeyFieldType, WireFormatLite::FieldType kValueFieldType, int default_enum_value = 0>
const char* google::protobuf.internal::MapField< Derived, Key, T, kKeyFieldType, kValueFieldType, default_enum_value >::_InternalParse ( const char *  ptr,
ParseContext ctx 
)
inline

Definition at line 285 of file map_field.h.

◆ Clear()

template<typename Derived , typename Key , typename T , WireFormatLite::FieldType kKeyFieldType, WireFormatLite::FieldType kValueFieldType, int default_enum_value>
void google::protobuf.internal::MapField< Derived, Key, T, kKeyFieldType, kValueFieldType, default_enum_value >::Clear
override

Definition at line 178 of file map_field_inl.h.

◆ ContainsMapKey()

template<typename Derived , typename Key , typename T , WireFormatLite::FieldType kKeyFieldType, WireFormatLite::FieldType kValueFieldType, int default_enum_value>
bool google::protobuf.internal::MapField< Derived, Key, T, kKeyFieldType, kValueFieldType, default_enum_value >::ContainsMapKey ( const MapKey map_key) const
override

Definition at line 211 of file map_field_inl.h.

◆ DeleteMapValue()

template<typename Derived , typename Key , typename T , WireFormatLite::FieldType kKeyFieldType, WireFormatLite::FieldType kValueFieldType, int default_enum_value>
bool google::protobuf.internal::MapField< Derived, Key, T, kKeyFieldType, kValueFieldType, default_enum_value >::DeleteMapValue ( const MapKey map_key)
override

Definition at line 243 of file map_field_inl.h.

◆ GetMap()

template<typename Derived , typename Key , typename T , WireFormatLite::FieldType kKeyFieldType, WireFormatLite::FieldType kValueFieldType, int default_enum_value = 0>
const Map<Key, T>& google::protobuf.internal::MapField< Derived, Key, T, kKeyFieldType, kValueFieldType, default_enum_value >::GetMap ( ) const
inlineoverride

Definition at line 254 of file map_field.h.

◆ GOOGLE_DISALLOW_EVIL_CONSTRUCTORS()

template<typename Derived , typename Key , typename T , WireFormatLite::FieldType kKeyFieldType, WireFormatLite::FieldType kValueFieldType, int default_enum_value = 0>
google::protobuf.internal::MapField< Derived, Key, T, kKeyFieldType, kValueFieldType, default_enum_value >::GOOGLE_DISALLOW_EVIL_CONSTRUCTORS ( MapField< Derived, Key, T, kKeyFieldType, kValueFieldType, default_enum_value >  )
private

◆ InsertOrLookupMapValue()

template<typename Derived , typename Key , typename T , WireFormatLite::FieldType kKeyFieldType, WireFormatLite::FieldType kValueFieldType, int default_enum_value>
bool google::protobuf.internal::MapField< Derived, Key, T, kKeyFieldType, kValueFieldType, default_enum_value >::InsertOrLookupMapValue ( const MapKey map_key,
MapValueRef val 
)
override

Definition at line 222 of file map_field_inl.h.

◆ MergeFrom()

template<typename Derived , typename Key , typename T , WireFormatLite::FieldType kKeyFieldType, WireFormatLite::FieldType kValueFieldType, int default_enum_value>
void google::protobuf.internal::MapField< Derived, Key, T, kKeyFieldType, kValueFieldType, default_enum_value >::MergeFrom ( const MapFieldBase other)
override

Definition at line 252 of file map_field_inl.h.

◆ MutableMap()

template<typename Derived , typename Key , typename T , WireFormatLite::FieldType kKeyFieldType, WireFormatLite::FieldType kValueFieldType, int default_enum_value = 0>
Map<Key, T>* google::protobuf.internal::MapField< Derived, Key, T, kKeyFieldType, kValueFieldType, default_enum_value >::MutableMap ( )
inlineoverride

Definition at line 259 of file map_field.h.

◆ NewEntry()

template<typename Derived , typename Key , typename T , WireFormatLite::FieldType kKeyFieldType, WireFormatLite::FieldType kValueFieldType, int default_enum_value = 0>
EntryType* google::protobuf.internal::MapField< Derived, Key, T, kKeyFieldType, kValueFieldType, default_enum_value >::NewEntry ( ) const
inline

Definition at line 273 of file map_field.h.

◆ NewEntryWrapper()

template<typename Derived , typename Key , typename T , WireFormatLite::FieldType kKeyFieldType, WireFormatLite::FieldType kValueFieldType, int default_enum_value = 0>
EntryType* google::protobuf.internal::MapField< Derived, Key, T, kKeyFieldType, kValueFieldType, default_enum_value >::NewEntryWrapper ( const Key &  key,
const T t 
) const
inline

Definition at line 281 of file map_field.h.

◆ NewEnumEntryWrapper()

template<typename Derived , typename Key , typename T , WireFormatLite::FieldType kKeyFieldType, WireFormatLite::FieldType kValueFieldType, int default_enum_value = 0>
EntryType* google::protobuf.internal::MapField< Derived, Key, T, kKeyFieldType, kValueFieldType, default_enum_value >::NewEnumEntryWrapper ( const Key &  key,
const T  t 
) const
inline

Definition at line 276 of file map_field.h.

◆ ParseWithEnumValidation()

template<typename Derived , typename Key , typename T , WireFormatLite::FieldType kKeyFieldType, WireFormatLite::FieldType kValueFieldType, int default_enum_value = 0>
template<typename Metadata >
const char* google::protobuf.internal::MapField< Derived, Key, T, kKeyFieldType, kValueFieldType, default_enum_value >::ParseWithEnumValidation ( const char *  ptr,
ParseContext ctx,
bool(*)(int)  is_valid,
uint32  field_num,
Metadata metadata 
)
inline

Definition at line 289 of file map_field.h.

◆ SetMapIteratorValue()

template<typename Derived , typename Key , typename T , WireFormatLite::FieldType kKeyFieldType, WireFormatLite::FieldType kValueFieldType, int default_enum_value>
void google::protobuf.internal::MapField< Derived, Key, T, kKeyFieldType, kValueFieldType, default_enum_value >::SetMapIteratorValue ( MapIterator map_iter) const
overrideprivate

Definition at line 197 of file map_field_inl.h.

◆ size()

template<typename Derived , typename Key , typename T , WireFormatLite::FieldType kKeyFieldType, WireFormatLite::FieldType kValueFieldType, int default_enum_value>
int google::protobuf.internal::MapField< Derived, Key, T, kKeyFieldType, kValueFieldType, default_enum_value >::size
override

Definition at line 169 of file map_field_inl.h.

◆ SpaceUsedExcludingSelfNoLock()

template<typename Derived , typename Key , typename T , WireFormatLite::FieldType kKeyFieldType, WireFormatLite::FieldType kValueFieldType, int default_enum_value>
size_t google::protobuf.internal::MapField< Derived, Key, T, kKeyFieldType, kValueFieldType, default_enum_value >::SpaceUsedExcludingSelfNoLock
overrideprivate

Definition at line 339 of file map_field_inl.h.

◆ Swap()

template<typename Derived , typename Key , typename T , WireFormatLite::FieldType kKeyFieldType, WireFormatLite::FieldType kValueFieldType, int default_enum_value>
void google::protobuf.internal::MapField< Derived, Key, T, kKeyFieldType, kValueFieldType, default_enum_value >::Swap ( MapFieldBase other)
override

Definition at line 264 of file map_field_inl.h.

◆ SyncMapWithRepeatedFieldNoLock()

template<typename Derived , typename Key , typename T , WireFormatLite::FieldType kKeyFieldType, WireFormatLite::FieldType kValueFieldType, int default_enum_value>
void google::protobuf.internal::MapField< Derived, Key, T, kKeyFieldType, kValueFieldType, default_enum_value >::SyncMapWithRepeatedFieldNoLock
overrideprivate

Definition at line 316 of file map_field_inl.h.

◆ SyncRepeatedFieldWithMapNoLock()

template<typename Derived , typename Key , typename T , WireFormatLite::FieldType kKeyFieldType, WireFormatLite::FieldType kValueFieldType, int default_enum_value>
void google::protobuf.internal::MapField< Derived, Key, T, kKeyFieldType, kValueFieldType, default_enum_value >::SyncRepeatedFieldWithMapNoLock
overrideprivate

Definition at line 279 of file map_field_inl.h.

Friends And Related Function Documentation

◆ ::PROTOBUF_NAMESPACE_ID::Arena

template<typename Derived , typename Key , typename T , WireFormatLite::FieldType kKeyFieldType, WireFormatLite::FieldType kValueFieldType, int default_enum_value = 0>
friend class ::PROTOBUF_NAMESPACE_ID::Arena
friend

Definition at line 309 of file map_field.h.

◆ MapFieldStateTest

template<typename Derived , typename Key , typename T , WireFormatLite::FieldType kKeyFieldType, WireFormatLite::FieldType kValueFieldType, int default_enum_value = 0>
friend class MapFieldStateTest
friend

Definition at line 310 of file map_field.h.

Member Data Documentation

◆ impl_

template<typename Derived , typename Key , typename T , WireFormatLite::FieldType kKeyFieldType, WireFormatLite::FieldType kValueFieldType, int default_enum_value = 0>
MapFieldLiteType google::protobuf.internal::MapField< Derived, Key, T, kKeyFieldType, kValueFieldType, default_enum_value >::impl_
private

Definition at line 297 of file map_field.h.

◆ kIsValueEnum

template<typename Derived , typename Key , typename T , WireFormatLite::FieldType kKeyFieldType, WireFormatLite::FieldType kValueFieldType, int default_enum_value = 0>
const bool google::protobuf.internal::MapField< Derived, Key, T, kKeyFieldType, kValueFieldType, default_enum_value >::kIsValueEnum = ValueTypeHandler::kIsEnum
staticprivate

Definition at line 238 of file map_field.h.


The documentation for this class was generated from the following files:


libaditof
Author(s):
autogenerated on Wed May 21 2025 02:07:09