Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | Private Member Functions | Friends | List of all members
google::protobuf.internal::MapFieldBase Class Referenceabstract

#include <map_field.h>

Inheritance diagram for google::protobuf.internal::MapFieldBase:
Inheritance graph
[legend]

Public Member Functions

virtual void Clear ()=0
 
virtual void Clear ()=0
 
virtual bool ContainsMapKey (const MapKey &map_key) const =0
 
virtual bool ContainsMapKey (const MapKey &map_key) const =0
 
virtual bool DeleteMapValue (const MapKey &map_key)=0
 
virtual bool DeleteMapValue (const MapKey &map_key)=0
 
virtual bool EqualIterator (const MapIterator &a, const MapIterator &b) const =0
 
virtual bool EqualIterator (const MapIterator &a, const MapIterator &b) const =0
 
const RepeatedPtrFieldBaseGetRepeatedField () const
 
const RepeatedPtrFieldBaseGetRepeatedField () const
 
virtual bool InsertOrLookupMapValue (const MapKey &map_key, MapValueRef *val)=0
 
virtual bool InsertOrLookupMapValue (const MapKey &map_key, MapValueRef *val)=0
 
bool IsMapValid () const
 
bool IsMapValid () const
 
bool IsRepeatedFieldValid () const
 
bool IsRepeatedFieldValid () const
 
bool LookupMapValue (const MapKey &, MapValueRef *) const =delete
 
virtual bool LookupMapValue (const MapKey &map_key, MapValueConstRef *val) const =0
 
virtual void MapBegin (MapIterator *map_iter) const =0
 
virtual void MapBegin (MapIterator *map_iter) const =0
 
virtual void MapEnd (MapIterator *map_iter) const =0
 
virtual void MapEnd (MapIterator *map_iter) const =0
 
 MapFieldBase ()
 
 MapFieldBase ()
 
 MapFieldBase (Arena *arena)
 
 MapFieldBase (Arena *arena)
 
constexpr MapFieldBase (ConstantInitialized)
 
virtual void MergeFrom (const MapFieldBase &other)=0
 
virtual void MergeFrom (const MapFieldBase &other)=0
 
RepeatedPtrFieldBaseMutableRepeatedField ()
 
RepeatedPtrFieldBaseMutableRepeatedField ()
 
virtual int size () const =0
 
virtual int size () const =0
 
int SpaceUsedExcludingSelf () const
 
int SpaceUsedExcludingSelf () const
 
size_t SpaceUsedExcludingSelfLong () const
 
size_t SpaceUsedExcludingSelfLong () const
 
virtual void Swap (MapFieldBase *other)
 
virtual void Swap (MapFieldBase *other)=0
 
virtual void UnsafeShallowSwap (MapFieldBase *other)
 
virtual ~MapFieldBase ()
 
virtual ~MapFieldBase ()
 

Protected Types

enum  State {
  STATE_MODIFIED_MAP = 0, STATE_MODIFIED_REPEATED = 1, CLEAN = 2, STATE_MODIFIED_MAP = 0,
  STATE_MODIFIED_REPEATED = 1, CLEAN = 2
}
 
enum  State {
  STATE_MODIFIED_MAP = 0, STATE_MODIFIED_REPEATED = 1, CLEAN = 2, STATE_MODIFIED_MAP = 0,
  STATE_MODIFIED_REPEATED = 1, CLEAN = 2
}
 

Protected Member Functions

void ConstAccess () const
 
void InternalSwap (MapFieldBase *other)
 
void MutableAccess ()
 
void * MutableRepeatedPtrField () const
 
void * MutableRepeatedPtrField () const
 
void SetMapDirty ()
 
void SetMapDirty ()
 
void SetRepeatedDirty ()
 
void SetRepeatedDirty ()
 
virtual size_t SpaceUsedExcludingSelfNoLock () const
 
virtual size_t SpaceUsedExcludingSelfNoLock () const
 
void SyncMapWithRepeatedField () const
 
void SyncMapWithRepeatedField () const
 
virtual void SyncMapWithRepeatedFieldNoLock () const
 
virtual void SyncMapWithRepeatedFieldNoLock () const
 
void SyncRepeatedFieldWithMap () const
 
void SyncRepeatedFieldWithMap () const
 
virtual void SyncRepeatedFieldWithMapNoLock () const
 
virtual void SyncRepeatedFieldWithMapNoLock () const
 

Protected Attributes

Arenaarena_
 
internal::WrappedMutex mutex_
 
RepeatedPtrField< Message > * repeated_field_
 
std::atomic< Statestate_
 

Private Member Functions

virtual void CopyIterator (MapIterator *this_iterator, const MapIterator &other_iterator) const =0
 
virtual void CopyIterator (MapIterator *this_iterator, const MapIterator &other_iterator) const =0
 
virtual void DeleteIterator (MapIterator *map_iter) const =0
 
virtual void DeleteIterator (MapIterator *map_iter) const =0
 
 GOOGLE_DISALLOW_EVIL_CONSTRUCTORS (MapFieldBase)
 
 GOOGLE_DISALLOW_EVIL_CONSTRUCTORS (MapFieldBase)
 
virtual void IncreaseIterator (MapIterator *map_iter) const =0
 
virtual void IncreaseIterator (MapIterator *map_iter) const =0
 
virtual void InitializeIterator (MapIterator *map_iter) const =0
 
virtual void InitializeIterator (MapIterator *map_iter) const =0
 
void SwapState (MapFieldBase *other)
 

Friends

class ::PROTOBUF_NAMESPACE_ID::DynamicMessage
 
class ::PROTOBUF_NAMESPACE_ID::MapIterator
 
class ::PROTOBUF_NAMESPACE_ID::Reflection
 
class ContendedMapCleanTest
 
class GeneratedMessageReflection
 
class MapFieldAccessor
 

Detailed Description

Definition at line 69 of file bloaty/third_party/protobuf/src/google/protobuf/map_field.h.

Member Enumeration Documentation

◆ State [1/2]

Enumerator
STATE_MODIFIED_MAP 
STATE_MODIFIED_REPEATED 
CLEAN 
STATE_MODIFIED_MAP 
STATE_MODIFIED_REPEATED 
CLEAN 

Definition at line 139 of file bloaty/third_party/protobuf/src/google/protobuf/map_field.h.

◆ State [2/2]

Enumerator
STATE_MODIFIED_MAP 
STATE_MODIFIED_REPEATED 
CLEAN 
STATE_MODIFIED_MAP 
STATE_MODIFIED_REPEATED 
CLEAN 

Definition at line 426 of file protobuf/src/google/protobuf/map_field.h.

Constructor & Destructor Documentation

◆ MapFieldBase() [1/5]

google::protobuf.internal::MapFieldBase::MapFieldBase ( )
inline

◆ MapFieldBase() [2/5]

google::protobuf.internal::MapFieldBase::MapFieldBase ( Arena arena)
inlineexplicit

◆ ~MapFieldBase() [1/2]

google::protobuf.internal::MapFieldBase::~MapFieldBase ( )
virtual

◆ MapFieldBase() [3/5]

google::protobuf.internal::MapFieldBase::MapFieldBase ( )
inline

Definition at line 326 of file protobuf/src/google/protobuf/map_field.h.

◆ MapFieldBase() [4/5]

constexpr google::protobuf.internal::MapFieldBase::MapFieldBase ( ConstantInitialized  )
inlineexplicitconstexpr

Definition at line 333 of file protobuf/src/google/protobuf/map_field.h.

◆ MapFieldBase() [5/5]

google::protobuf.internal::MapFieldBase::MapFieldBase ( Arena arena)
inlineexplicit

Definition at line 338 of file protobuf/src/google/protobuf/map_field.h.

◆ ~MapFieldBase() [2/2]

virtual google::protobuf.internal::MapFieldBase::~MapFieldBase ( )
virtual

Member Function Documentation

◆ Clear() [1/2]

virtual void google::protobuf.internal::MapFieldBase::Clear ( )
pure virtual

◆ Clear() [2/2]

virtual void google::protobuf.internal::MapFieldBase::Clear ( )
pure virtual

◆ ConstAccess()

void google::protobuf.internal::MapFieldBase::ConstAccess ( ) const
inlineprotected

Definition at line 423 of file protobuf/src/google/protobuf/map_field.h.

◆ ContainsMapKey() [1/2]

virtual bool google::protobuf.internal::MapFieldBase::ContainsMapKey ( const MapKey map_key) const
pure virtual

◆ ContainsMapKey() [2/2]

virtual bool google::protobuf.internal::MapFieldBase::ContainsMapKey ( const MapKey map_key) const
pure virtual

◆ CopyIterator() [1/2]

virtual void google::protobuf.internal::MapFieldBase::CopyIterator ( MapIterator this_iterator,
const MapIterator other_iterator 
) const
privatepure virtual

◆ CopyIterator() [2/2]

virtual void google::protobuf.internal::MapFieldBase::CopyIterator ( MapIterator this_iterator,
const MapIterator other_iterator 
) const
privatepure virtual

◆ DeleteIterator() [1/2]

virtual void google::protobuf.internal::MapFieldBase::DeleteIterator ( MapIterator map_iter) const
privatepure virtual

◆ DeleteIterator() [2/2]

virtual void google::protobuf.internal::MapFieldBase::DeleteIterator ( MapIterator map_iter) const
privatepure virtual

◆ DeleteMapValue() [1/2]

virtual bool google::protobuf.internal::MapFieldBase::DeleteMapValue ( const MapKey map_key)
pure virtual

◆ DeleteMapValue() [2/2]

virtual bool google::protobuf.internal::MapFieldBase::DeleteMapValue ( const MapKey map_key)
pure virtual

◆ EqualIterator() [1/2]

virtual bool google::protobuf.internal::MapFieldBase::EqualIterator ( const MapIterator a,
const MapIterator b 
) const
pure virtual

◆ EqualIterator() [2/2]

virtual bool google::protobuf.internal::MapFieldBase::EqualIterator ( const MapIterator a,
const MapIterator b 
) const
pure virtual

◆ GetRepeatedField() [1/2]

const RepeatedPtrFieldBase & google::protobuf.internal::MapFieldBase::GetRepeatedField ( ) const

◆ GetRepeatedField() [2/2]

const RepeatedPtrFieldBase& google::protobuf.internal::MapFieldBase::GetRepeatedField ( ) const

◆ GOOGLE_DISALLOW_EVIL_CONSTRUCTORS() [1/2]

google::protobuf.internal::MapFieldBase::GOOGLE_DISALLOW_EVIL_CONSTRUCTORS ( MapFieldBase  )
private

◆ GOOGLE_DISALLOW_EVIL_CONSTRUCTORS() [2/2]

google::protobuf.internal::MapFieldBase::GOOGLE_DISALLOW_EVIL_CONSTRUCTORS ( MapFieldBase  )
private

◆ IncreaseIterator() [1/2]

virtual void google::protobuf.internal::MapFieldBase::IncreaseIterator ( MapIterator map_iter) const
privatepure virtual

◆ IncreaseIterator() [2/2]

virtual void google::protobuf.internal::MapFieldBase::IncreaseIterator ( MapIterator map_iter) const
privatepure virtual

◆ InitializeIterator() [1/2]

virtual void google::protobuf.internal::MapFieldBase::InitializeIterator ( MapIterator map_iter) const
privatepure virtual

◆ InitializeIterator() [2/2]

virtual void google::protobuf.internal::MapFieldBase::InitializeIterator ( MapIterator map_iter) const
privatepure virtual

◆ InsertOrLookupMapValue() [1/2]

virtual bool google::protobuf.internal::MapFieldBase::InsertOrLookupMapValue ( const MapKey map_key,
MapValueRef val 
)
pure virtual

◆ InsertOrLookupMapValue() [2/2]

virtual bool google::protobuf.internal::MapFieldBase::InsertOrLookupMapValue ( const MapKey map_key,
MapValueRef val 
)
pure virtual

◆ InternalSwap()

void google::protobuf.internal::MapFieldBase::InternalSwap ( MapFieldBase other)
protected

Definition at line 104 of file protobuf/src/google/protobuf/map_field.cc.

◆ IsMapValid() [1/2]

bool google::protobuf.internal::MapFieldBase::IsMapValid ( ) const

◆ IsMapValid() [2/2]

bool google::protobuf.internal::MapFieldBase::IsMapValid ( ) const

◆ IsRepeatedFieldValid() [1/2]

bool google::protobuf.internal::MapFieldBase::IsRepeatedFieldValid ( ) const

◆ IsRepeatedFieldValid() [2/2]

bool google::protobuf.internal::MapFieldBase::IsRepeatedFieldValid ( ) const

◆ LookupMapValue() [1/2]

bool google::protobuf.internal::MapFieldBase::LookupMapValue ( const MapKey ,
MapValueRef  
) const
delete

◆ LookupMapValue() [2/2]

virtual bool google::protobuf.internal::MapFieldBase::LookupMapValue ( const MapKey map_key,
MapValueConstRef val 
) const
pure virtual

◆ MapBegin() [1/2]

virtual void google::protobuf.internal::MapFieldBase::MapBegin ( MapIterator map_iter) const
pure virtual

◆ MapBegin() [2/2]

virtual void google::protobuf.internal::MapFieldBase::MapBegin ( MapIterator map_iter) const
pure virtual

◆ MapEnd() [1/2]

virtual void google::protobuf.internal::MapFieldBase::MapEnd ( MapIterator map_iter) const
pure virtual

◆ MapEnd() [2/2]

virtual void google::protobuf.internal::MapFieldBase::MapEnd ( MapIterator map_iter) const
pure virtual

◆ MergeFrom() [1/2]

virtual void google::protobuf.internal::MapFieldBase::MergeFrom ( const MapFieldBase other)
pure virtual

◆ MergeFrom() [2/2]

virtual void google::protobuf.internal::MapFieldBase::MergeFrom ( const MapFieldBase other)
pure virtual

◆ MutableAccess()

void google::protobuf.internal::MapFieldBase::MutableAccess ( )
inlineprotected

Definition at line 424 of file protobuf/src/google/protobuf/map_field.h.

◆ MutableRepeatedField() [1/2]

RepeatedPtrFieldBase * google::protobuf.internal::MapFieldBase::MutableRepeatedField ( )

◆ MutableRepeatedField() [2/2]

RepeatedPtrFieldBase* google::protobuf.internal::MapFieldBase::MutableRepeatedField ( )

◆ MutableRepeatedPtrField() [1/2]

void* google::protobuf.internal::MapFieldBase::MutableRepeatedPtrField ( ) const
protected

◆ MutableRepeatedPtrField() [2/2]

void* google::protobuf.internal::MapFieldBase::MutableRepeatedPtrField ( ) const
protected

◆ SetMapDirty() [1/2]

void google::protobuf.internal::MapFieldBase::SetMapDirty ( )
protected

◆ SetMapDirty() [2/2]

void google::protobuf.internal::MapFieldBase::SetMapDirty ( )
protected

◆ SetRepeatedDirty() [1/2]

void google::protobuf.internal::MapFieldBase::SetRepeatedDirty ( )
protected

◆ SetRepeatedDirty() [2/2]

void google::protobuf.internal::MapFieldBase::SetRepeatedDirty ( )
protected

◆ size() [1/2]

virtual int google::protobuf.internal::MapFieldBase::size ( ) const
pure virtual

◆ size() [2/2]

virtual int google::protobuf.internal::MapFieldBase::size ( ) const
pure virtual

◆ SpaceUsedExcludingSelf() [1/2]

int google::protobuf.internal::MapFieldBase::SpaceUsedExcludingSelf ( ) const
inline

◆ SpaceUsedExcludingSelf() [2/2]

int google::protobuf.internal::MapFieldBase::SpaceUsedExcludingSelf ( ) const
inline

Definition at line 378 of file protobuf/src/google/protobuf/map_field.h.

◆ SpaceUsedExcludingSelfLong() [1/2]

size_t google::protobuf.internal::MapFieldBase::SpaceUsedExcludingSelfLong ( ) const

◆ SpaceUsedExcludingSelfLong() [2/2]

size_t google::protobuf.internal::MapFieldBase::SpaceUsedExcludingSelfLong ( ) const

◆ SpaceUsedExcludingSelfNoLock() [1/2]

size_t google::protobuf.internal::MapFieldBase::SpaceUsedExcludingSelfNoLock ( ) const
protectedvirtual

◆ SpaceUsedExcludingSelfNoLock() [2/2]

virtual size_t google::protobuf.internal::MapFieldBase::SpaceUsedExcludingSelfNoLock ( ) const
protectedvirtual

◆ Swap() [1/2]

virtual void google::protobuf.internal::MapFieldBase::Swap ( MapFieldBase other)
virtual

◆ Swap() [2/2]

void google::protobuf.internal::MapFieldBase::Swap ( MapFieldBase other)
pure virtual

◆ SwapState()

void google::protobuf.internal::MapFieldBase::SwapState ( MapFieldBase other)
private

Definition at line 59 of file protobuf/src/google/protobuf/map_field.cc.

◆ SyncMapWithRepeatedField() [1/2]

void google::protobuf.internal::MapFieldBase::SyncMapWithRepeatedField ( ) const
protected

◆ SyncMapWithRepeatedField() [2/2]

void google::protobuf.internal::MapFieldBase::SyncMapWithRepeatedField ( ) const
protected

◆ SyncMapWithRepeatedFieldNoLock() [1/2]

virtual void google::protobuf.internal::MapFieldBase::SyncMapWithRepeatedFieldNoLock ( ) const
inlineprotectedvirtual

◆ SyncMapWithRepeatedFieldNoLock() [2/2]

virtual void google::protobuf.internal::MapFieldBase::SyncMapWithRepeatedFieldNoLock ( ) const
inlineprotectedvirtual

Definition at line 394 of file protobuf/src/google/protobuf/map_field.h.

◆ SyncRepeatedFieldWithMap() [1/2]

void google::protobuf.internal::MapFieldBase::SyncRepeatedFieldWithMap ( ) const
protected

◆ SyncRepeatedFieldWithMap() [2/2]

void google::protobuf.internal::MapFieldBase::SyncRepeatedFieldWithMap ( ) const
protected

◆ SyncRepeatedFieldWithMapNoLock() [1/2]

void google::protobuf.internal::MapFieldBase::SyncRepeatedFieldWithMapNoLock ( ) const
protectedvirtual

◆ SyncRepeatedFieldWithMapNoLock() [2/2]

virtual void google::protobuf.internal::MapFieldBase::SyncRepeatedFieldWithMapNoLock ( ) const
protectedvirtual

◆ UnsafeShallowSwap()

void google::protobuf.internal::MapFieldBase::UnsafeShallowSwap ( MapFieldBase other)
virtual

Definition at line 99 of file protobuf/src/google/protobuf/map_field.cc.

Friends And Related Function Documentation

◆ ::PROTOBUF_NAMESPACE_ID::DynamicMessage

friend class ::PROTOBUF_NAMESPACE_ID::DynamicMessage
friend

◆ ::PROTOBUF_NAMESPACE_ID::MapIterator

friend class ::PROTOBUF_NAMESPACE_ID::MapIterator
friend

◆ ::PROTOBUF_NAMESPACE_ID::Reflection

friend class ::PROTOBUF_NAMESPACE_ID::Reflection
friend

Definition at line 446 of file protobuf/src/google/protobuf/map_field.h.

◆ ContendedMapCleanTest

ContendedMapCleanTest
friend

◆ GeneratedMessageReflection

GeneratedMessageReflection
friend

◆ MapFieldAccessor

Member Data Documentation

◆ arena_

Arena * google::protobuf.internal::MapFieldBase::arena_
protected

◆ mutex_

internal::WrappedMutex google::protobuf.internal::MapFieldBase::mutex_
mutableprotected

◆ repeated_field_

RepeatedPtrField< Message > * google::protobuf.internal::MapFieldBase::repeated_field_
mutableprotected

◆ state_

std::atomic< State > google::protobuf.internal::MapFieldBase::state_
mutableprotected

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


grpc
Author(s):
autogenerated on Fri May 16 2025 03:03:25