Public Member Functions | Static Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
google::protobuf::FileDescriptorTables Class Reference

Public Member Functions

bool AddAliasUnderParent (const void *parent, const std::string &name, Symbol symbol)
 
bool AddEnumValueByNumber (const EnumValueDescriptor *value)
 
bool AddFieldByNumber (const FieldDescriptor *field)
 
void AddFieldByStylizedNames (const FieldDescriptor *field)
 
 FileDescriptorTables ()
 
void FinalizeTables ()
 
const EnumValueDescriptorFindEnumValueByNumber (const EnumDescriptor *parent, int number) const
 
const EnumValueDescriptorFindEnumValueByNumberCreatingIfUnknown (const EnumDescriptor *parent, int number) const
 
const FieldDescriptorFindFieldByCamelcaseName (const void *parent, const std::string &camelcase_name) const
 
const FieldDescriptorFindFieldByLowercaseName (const void *parent, const std::string &lowercase_name) const
 
const FieldDescriptorFindFieldByNumber (const Descriptor *parent, int number) const
 
Symbol FindNestedSymbol (const void *parent, const std::string &name) const
 
Symbol FindNestedSymbolOfType (const void *parent, const std::string &name, const Symbol::Type type) const
 
const SourceCodeInfo_LocationGetSourceLocation (const std::vector< int > &path, const SourceCodeInfo *info) const
 
 ~FileDescriptorTables ()
 

Static Public Member Functions

static void BuildLocationsByPath (std::pair< const FileDescriptorTables *, const SourceCodeInfo * > *p)
 
static const FileDescriptorTablesGetEmptyInstance ()
 

Private Member Functions

void FieldsByCamelcaseNamesLazyInitInternal () const
 
void FieldsByLowercaseNamesLazyInitInternal () const
 
const voidFindParentForFieldsByMap (const FieldDescriptor *field) const
 
EnumValuesByNumberMap unknown_enum_values_by_number_ PROTOBUF_GUARDED_BY (unknown_enum_values_mu_)
 

Static Private Member Functions

static void FieldsByCamelcaseNamesLazyInitStatic (const FileDescriptorTables *tables)
 
static void FieldsByLowercaseNamesLazyInitStatic (const FileDescriptorTables *tables)
 

Private Attributes

EnumValuesByNumberMap enum_values_by_number_
 
FieldsByNameMap fields_by_camelcase_name_
 
internal::once_flag fields_by_camelcase_name_once_
 
std::unique_ptr< FieldsByNameMap > fields_by_camelcase_name_tmp_
 
FieldsByNameMap fields_by_lowercase_name_
 
internal::once_flag fields_by_lowercase_name_once_
 
std::unique_ptr< FieldsByNameMap > fields_by_lowercase_name_tmp_
 
FieldsByNumberMap fields_by_number_
 
LocationsByPathMap locations_by_path_
 
internal::once_flag locations_by_path_once_
 
SymbolsByParentMap symbols_by_parent_
 
internal::WrappedMutex unknown_enum_values_mu_
 

Detailed Description

Definition at line 705 of file src/google/protobuf/descriptor.cc.

Constructor & Destructor Documentation

◆ FileDescriptorTables()

google::protobuf::FileDescriptorTables::FileDescriptorTables ( )

Definition at line 820 of file src/google/protobuf/descriptor.cc.

◆ ~FileDescriptorTables()

google::protobuf::FileDescriptorTables::~FileDescriptorTables ( )

Definition at line 832 of file src/google/protobuf/descriptor.cc.

Member Function Documentation

◆ AddAliasUnderParent()

bool google::protobuf::FileDescriptorTables::AddAliasUnderParent ( const void parent,
const std::string name,
Symbol  symbol 
)

Definition at line 1112 of file src/google/protobuf/descriptor.cc.

◆ AddEnumValueByNumber()

bool google::protobuf::FileDescriptorTables::AddEnumValueByNumber ( const EnumValueDescriptor value)

Definition at line 1167 of file src/google/protobuf/descriptor.cc.

◆ AddFieldByNumber()

bool google::protobuf::FileDescriptorTables::AddFieldByNumber ( const FieldDescriptor field)

Definition at line 1162 of file src/google/protobuf/descriptor.cc.

◆ AddFieldByStylizedNames()

void google::protobuf::FileDescriptorTables::AddFieldByStylizedNames ( const FieldDescriptor field)

Definition at line 1134 of file src/google/protobuf/descriptor.cc.

◆ BuildLocationsByPath()

void google::protobuf::FileDescriptorTables::BuildLocationsByPath ( std::pair< const FileDescriptorTables *, const SourceCodeInfo * > *  p)
static

Definition at line 1238 of file src/google/protobuf/descriptor.cc.

◆ FieldsByCamelcaseNamesLazyInitInternal()

void google::protobuf::FileDescriptorTables::FieldsByCamelcaseNamesLazyInitInternal ( ) const
private

Definition at line 1009 of file src/google/protobuf/descriptor.cc.

◆ FieldsByCamelcaseNamesLazyInitStatic()

void google::protobuf::FileDescriptorTables::FieldsByCamelcaseNamesLazyInitStatic ( const FileDescriptorTables tables)
staticprivate

Definition at line 1004 of file src/google/protobuf/descriptor.cc.

◆ FieldsByLowercaseNamesLazyInitInternal()

void google::protobuf::FileDescriptorTables::FieldsByLowercaseNamesLazyInitInternal ( ) const
private

Definition at line 985 of file src/google/protobuf/descriptor.cc.

◆ FieldsByLowercaseNamesLazyInitStatic()

void google::protobuf::FileDescriptorTables::FieldsByLowercaseNamesLazyInitStatic ( const FileDescriptorTables tables)
staticprivate

Definition at line 980 of file src/google/protobuf/descriptor.cc.

◆ FinalizeTables()

void google::protobuf::FileDescriptorTables::FinalizeTables ( )

Definition at line 1128 of file src/google/protobuf/descriptor.cc.

◆ FindEnumValueByNumber()

const EnumValueDescriptor * google::protobuf::FileDescriptorTables::FindEnumValueByNumber ( const EnumDescriptor parent,
int  number 
) const
inline

Definition at line 1028 of file src/google/protobuf/descriptor.cc.

◆ FindEnumValueByNumberCreatingIfUnknown()

const EnumValueDescriptor * google::protobuf::FileDescriptorTables::FindEnumValueByNumberCreatingIfUnknown ( const EnumDescriptor parent,
int  number 
) const
inline

Definition at line 1035 of file src/google/protobuf/descriptor.cc.

◆ FindFieldByCamelcaseName()

const FieldDescriptor * google::protobuf::FileDescriptorTables::FindFieldByCamelcaseName ( const void parent,
const std::string camelcase_name 
) const
inline

Definition at line 1019 of file src/google/protobuf/descriptor.cc.

◆ FindFieldByLowercaseName()

const FieldDescriptor * google::protobuf::FileDescriptorTables::FindFieldByLowercaseName ( const void parent,
const std::string lowercase_name 
) const
inline

Definition at line 995 of file src/google/protobuf/descriptor.cc.

◆ FindFieldByNumber()

const FieldDescriptor * google::protobuf::FileDescriptorTables::FindFieldByNumber ( const Descriptor parent,
int  number 
) const
inline

Definition at line 962 of file src/google/protobuf/descriptor.cc.

◆ FindNestedSymbol()

Symbol google::protobuf::FileDescriptorTables::FindNestedSymbol ( const void parent,
const std::string name 
) const
inline

Definition at line 914 of file src/google/protobuf/descriptor.cc.

◆ FindNestedSymbolOfType()

Symbol google::protobuf::FileDescriptorTables::FindNestedSymbolOfType ( const void parent,
const std::string name,
const Symbol::Type  type 
) const
inline

Definition at line 925 of file src/google/protobuf/descriptor.cc.

◆ FindParentForFieldsByMap()

const void * google::protobuf::FileDescriptorTables::FindParentForFieldsByMap ( const FieldDescriptor field) const
private

Definition at line 967 of file src/google/protobuf/descriptor.cc.

◆ GetEmptyInstance()

const FileDescriptorTables & google::protobuf::FileDescriptorTables::GetEmptyInstance ( )
inlinestatic

Definition at line 834 of file src/google/protobuf/descriptor.cc.

◆ GetSourceLocation()

const SourceCodeInfo_Location * google::protobuf::FileDescriptorTables::GetSourceLocation ( const std::vector< int > &  path,
const SourceCodeInfo info 
) const

Definition at line 1246 of file src/google/protobuf/descriptor.cc.

◆ PROTOBUF_GUARDED_BY()

EnumValuesByNumberMap unknown_enum_values_by_number_ google::protobuf::FileDescriptorTables::PROTOBUF_GUARDED_BY ( unknown_enum_values_mu_  )
mutableprivate

Member Data Documentation

◆ enum_values_by_number_

EnumValuesByNumberMap google::protobuf::FileDescriptorTables::enum_values_by_number_
private

Definition at line 786 of file src/google/protobuf/descriptor.cc.

◆ fields_by_camelcase_name_

FieldsByNameMap google::protobuf::FileDescriptorTables::fields_by_camelcase_name_
mutableprivate

Definition at line 782 of file src/google/protobuf/descriptor.cc.

◆ fields_by_camelcase_name_once_

internal::once_flag google::protobuf::FileDescriptorTables::fields_by_camelcase_name_once_
mutableprivate

Definition at line 784 of file src/google/protobuf/descriptor.cc.

◆ fields_by_camelcase_name_tmp_

std::unique_ptr<FieldsByNameMap> google::protobuf::FileDescriptorTables::fields_by_camelcase_name_tmp_
private

Definition at line 783 of file src/google/protobuf/descriptor.cc.

◆ fields_by_lowercase_name_

FieldsByNameMap google::protobuf::FileDescriptorTables::fields_by_lowercase_name_
mutableprivate

Definition at line 779 of file src/google/protobuf/descriptor.cc.

◆ fields_by_lowercase_name_once_

internal::once_flag google::protobuf::FileDescriptorTables::fields_by_lowercase_name_once_
mutableprivate

Definition at line 781 of file src/google/protobuf/descriptor.cc.

◆ fields_by_lowercase_name_tmp_

std::unique_ptr<FieldsByNameMap> google::protobuf::FileDescriptorTables::fields_by_lowercase_name_tmp_
private

Definition at line 780 of file src/google/protobuf/descriptor.cc.

◆ fields_by_number_

FieldsByNumberMap google::protobuf::FileDescriptorTables::fields_by_number_
private

Definition at line 785 of file src/google/protobuf/descriptor.cc.

◆ locations_by_path_

LocationsByPathMap google::protobuf::FileDescriptorTables::locations_by_path_
mutableprivate

Definition at line 792 of file src/google/protobuf/descriptor.cc.

◆ locations_by_path_once_

internal::once_flag google::protobuf::FileDescriptorTables::locations_by_path_once_
mutableprivate

Definition at line 791 of file src/google/protobuf/descriptor.cc.

◆ symbols_by_parent_

SymbolsByParentMap google::protobuf::FileDescriptorTables::symbols_by_parent_
private

Definition at line 778 of file src/google/protobuf/descriptor.cc.

◆ unknown_enum_values_mu_

internal::WrappedMutex google::protobuf::FileDescriptorTables::unknown_enum_values_mu_
mutableprivate

Definition at line 796 of file src/google/protobuf/descriptor.cc.


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


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