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 bool ContainsMapKey (const MapKey &map_key) const =0
 
virtual bool DeleteMapValue (const MapKey &map_key)=0
 
virtual bool EqualIterator (const MapIterator &a, const MapIterator &b) const =0
 
const RepeatedPtrFieldBaseGetRepeatedField () const
 
virtual bool InsertOrLookupMapValue (const MapKey &map_key, MapValueRef *val)=0
 
bool IsMapValid () const
 
bool IsRepeatedFieldValid () const
 
virtual void MapBegin (MapIterator *map_iter) const =0
 
virtual void MapEnd (MapIterator *map_iter) const =0
 
 MapFieldBase ()
 
 MapFieldBase (Arena *arena)
 
virtual void MergeFrom (const MapFieldBase &other)=0
 
RepeatedPtrFieldBaseMutableRepeatedField ()
 
virtual int size () const =0
 
int SpaceUsedExcludingSelf () const
 
size_t SpaceUsedExcludingSelfLong () const
 
virtual void Swap (MapFieldBase *other)=0
 
virtual ~MapFieldBase ()
 

Protected Types

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

Protected Member Functions

voidMutableRepeatedPtrField () const
 
void SetMapDirty ()
 
void SetRepeatedDirty ()
 
virtual size_t SpaceUsedExcludingSelfNoLock () const
 
void SyncMapWithRepeatedField () const
 
virtual void SyncMapWithRepeatedFieldNoLock () const
 
void SyncRepeatedFieldWithMap () const
 
virtual void SyncRepeatedFieldWithMapNoLock () const
 

Protected Attributes

Arena * arena_
 
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 DeleteIterator (MapIterator *map_iter) const =0
 
 GOOGLE_DISALLOW_EVIL_CONSTRUCTORS (MapFieldBase)
 
virtual void IncreaseIterator (MapIterator *map_iter) const =0
 
virtual void InitializeIterator (MapIterator *map_iter) const =0
 

Friends

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

Detailed Description

Definition at line 69 of file map_field.h.

Member Enumeration Documentation

◆ State

Enumerator
STATE_MODIFIED_MAP 
STATE_MODIFIED_REPEATED 
CLEAN 

Definition at line 139 of file map_field.h.

Constructor & Destructor Documentation

◆ MapFieldBase() [1/2]

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

Definition at line 71 of file map_field.h.

◆ MapFieldBase() [2/2]

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

Definition at line 73 of file map_field.h.

◆ ~MapFieldBase()

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

Definition at line 42 of file map_field.cc.

Member Function Documentation

◆ Clear()

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

◆ ContainsMapKey()

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

◆ CopyIterator()

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

◆ DeleteIterator()

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

◆ DeleteMapValue()

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

◆ EqualIterator()

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

◆ GetRepeatedField()

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

Definition at line 46 of file map_field.cc.

◆ GOOGLE_DISALLOW_EVIL_CONSTRUCTORS()

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

◆ IncreaseIterator()

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

◆ InitializeIterator()

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

◆ InsertOrLookupMapValue()

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

◆ IsMapValid()

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

Definition at line 72 of file map_field.cc.

◆ IsRepeatedFieldValid()

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

Definition at line 79 of file map_field.cc.

◆ MapBegin()

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

◆ MapEnd()

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

◆ MergeFrom()

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

◆ MutableRepeatedField()

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

Definition at line 51 of file map_field.cc.

◆ MutableRepeatedPtrField()

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

◆ SetMapDirty()

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

Definition at line 84 of file map_field.cc.

◆ SetRepeatedDirty()

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

Definition at line 90 of file map_field.cc.

◆ size()

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

◆ SpaceUsedExcludingSelf()

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

Definition at line 112 of file map_field.h.

◆ SpaceUsedExcludingSelfLong()

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

Definition at line 57 of file map_field.cc.

◆ SpaceUsedExcludingSelfNoLock()

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

Definition at line 64 of file map_field.cc.

◆ Swap()

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

◆ SyncMapWithRepeatedField()

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

Definition at line 137 of file map_field.cc.

◆ SyncMapWithRepeatedFieldNoLock()

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

Definition at line 128 of file map_field.h.

◆ SyncRepeatedFieldWithMap()

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

Definition at line 96 of file map_field.cc.

◆ SyncRepeatedFieldWithMapNoLock()

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

Definition at line 131 of file map_field.cc.

Friends And Related Function Documentation

◆ ::PROTOBUF_NAMESPACE_ID::MapIterator

friend class ::PROTOBUF_NAMESPACE_ID::MapIterator
friend

Definition at line 165 of file map_field.h.

◆ ContendedMapCleanTest

friend class ContendedMapCleanTest
friend

Definition at line 156 of file map_field.h.

◆ DynamicMessage

friend class DynamicMessage
friend

Definition at line 159 of file map_field.h.

◆ GeneratedMessageReflection

friend class GeneratedMessageReflection
friend

Definition at line 157 of file map_field.h.

◆ MapFieldAccessor

friend class MapFieldAccessor
friend

Definition at line 158 of file map_field.h.

Member Data Documentation

◆ arena_

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

Definition at line 147 of file map_field.h.

◆ mutex_

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

Definition at line 151 of file map_field.h.

◆ repeated_field_

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

Definition at line 148 of file map_field.h.

◆ state_

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

Definition at line 153 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