Classes | Public Member Functions | Static Public Member Functions | Private Types | Private Member Functions | Private Attributes | Friends | List of all members
google::protobuf::DescriptorPool Class Reference

#include <descriptor.h>

Classes

class  ErrorCollector
 
class  Tables
 

Public Member Functions

void AddUnusedImportTrackFile (const std::string &file_name)
 
void AllowUnknownDependencies ()
 
const FileDescriptorBuildFile (const FileDescriptorProto &proto)
 
const FileDescriptorBuildFileCollectingErrors (const FileDescriptorProto &proto, ErrorCollector *error_collector)
 
void ClearUnusedImportTrackFiles ()
 
 DescriptorPool ()
 
 DescriptorPool (const DescriptorPool *underlay)
 
 DescriptorPool (DescriptorDatabase *fallback_database, ErrorCollector *error_collector=nullptr)
 
void DisallowEnforceUtf8 ()
 
void EnforceWeakDependencies (bool enforce)
 
void FindAllExtensions (const Descriptor *extendee, std::vector< const FieldDescriptor * > *out) const
 
const EnumDescriptorFindEnumTypeByName (const std::string &name) const
 
const EnumValueDescriptorFindEnumValueByName (const std::string &name) const
 
const FieldDescriptorFindExtensionByName (const std::string &name) const
 
const FieldDescriptorFindExtensionByNumber (const Descriptor *extendee, int number) const
 
const FieldDescriptorFindExtensionByPrintableName (const Descriptor *extendee, const std::string &printable_name) const
 
const FieldDescriptorFindFieldByName (const std::string &name) const
 
const FileDescriptorFindFileByName (const std::string &name) const
 
const FileDescriptorFindFileContainingSymbol (const std::string &symbol_name) const
 
const DescriptorFindMessageTypeByName (const std::string &name) const
 
const MethodDescriptorFindMethodByName (const std::string &name) const
 
const OneofDescriptorFindOneofByName (const std::string &name) const
 
const ServiceDescriptorFindServiceByName (const std::string &name) const
 
void internal_set_underlay (const DescriptorPool *underlay)
 
void InternalDontEnforceDependencies ()
 
bool InternalIsFileLoaded (const std::string &filename) const
 
void InternalSetLazilyBuildDependencies ()
 
 ~DescriptorPool ()
 

Static Public Member Functions

static const DescriptorPoolgenerated_pool ()
 
static DescriptorPoolinternal_generated_pool ()
 
static void InternalAddGeneratedFile (const void *encoded_file_descriptor, int size)
 

Private Types

enum  PlaceholderType { PLACEHOLDER_MESSAGE, PLACEHOLDER_ENUM, PLACEHOLDER_EXTENDABLE_MESSAGE }
 

Private Member Functions

const FileDescriptorBuildFileFromDatabase (const FileDescriptorProto &proto) const
 
Symbol CrossLinkOnDemandHelper (const std::string &name, bool expecting_enum) const
 
 GOOGLE_DISALLOW_EVIL_CONSTRUCTORS (DescriptorPool)
 
bool IsSubSymbolOfBuiltType (const std::string &name) const
 
Symbol NewPlaceholder (const std::string &name, PlaceholderType placeholder_type) const
 
FileDescriptorNewPlaceholderFile (const std::string &name) const
 
FileDescriptorNewPlaceholderFileWithMutexHeld (const std::string &name) const
 
Symbol NewPlaceholderWithMutexHeld (const std::string &name, PlaceholderType placeholder_type) const
 
bool TryFindExtensionInFallbackDatabase (const Descriptor *containing_type, int field_number) const
 
bool TryFindFileInFallbackDatabase (const std::string &name) const
 
bool TryFindSymbolInFallbackDatabase (const std::string &name) const
 

Private Attributes

bool allow_unknown_
 
ErrorCollectordefault_error_collector_
 
bool disallow_enforce_utf8_
 
bool enforce_dependencies_
 
bool enforce_weak_
 
DescriptorDatabasefallback_database_
 
bool lazily_build_dependencies_
 
internal::WrappedMutex * mutex_
 
std::unique_ptr< Tablestables_
 
const DescriptorPoolunderlay_
 
std::set< std::stringunused_import_track_files_
 

Friends

class Descriptor
 
class DescriptorBuilder
 
class EnumDescriptor
 
class FieldDescriptor
 
class FileDescriptor
 
class FileDescriptorTables
 
class internal::LazyDescriptor
 
class MethodDescriptor
 
class ServiceDescriptor
 
class StreamDescriptor
 

Detailed Description

Definition at line 1539 of file src/google/protobuf/descriptor.h.

Member Enumeration Documentation

◆ PlaceholderType

enum google::protobuf::DescriptorPool::PlaceholderType
private
Enumerator
PLACEHOLDER_MESSAGE 
PLACEHOLDER_ENUM 
PLACEHOLDER_EXTENDABLE_MESSAGE 

Definition at line 1835 of file src/google/protobuf/descriptor.h.

Constructor & Destructor Documentation

◆ DescriptorPool() [1/3]

DescriptorPool::DescriptorPool ( )

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

◆ DescriptorPool() [2/3]

DescriptorPool::DescriptorPool ( DescriptorDatabase fallback_database,
ErrorCollector error_collector = nullptr 
)
explicit

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

◆ ~DescriptorPool()

DescriptorPool::~DescriptorPool ( )

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

◆ DescriptorPool() [3/3]

DescriptorPool::DescriptorPool ( const DescriptorPool underlay)
explicit

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

Member Function Documentation

◆ AddUnusedImportTrackFile()

void DescriptorPool::AddUnusedImportTrackFile ( const std::string file_name)

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

◆ AllowUnknownDependencies()

void google::protobuf::DescriptorPool::AllowUnknownDependencies ( )
inline

Definition at line 1704 of file src/google/protobuf/descriptor.h.

◆ BuildFile()

const FileDescriptor * DescriptorPool::BuildFile ( const FileDescriptorProto proto)

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

◆ BuildFileCollectingErrors()

const FileDescriptor * DescriptorPool::BuildFileCollectingErrors ( const FileDescriptorProto proto,
ErrorCollector error_collector 
)

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

◆ BuildFileFromDatabase()

const FileDescriptor * DescriptorPool::BuildFileFromDatabase ( const FileDescriptorProto proto) const
private

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

◆ ClearUnusedImportTrackFiles()

void DescriptorPool::ClearUnusedImportTrackFiles ( )

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

◆ CrossLinkOnDemandHelper()

Symbol DescriptorPool::CrossLinkOnDemandHelper ( const std::string name,
bool  expecting_enum 
) const
private

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

◆ DisallowEnforceUtf8()

void google::protobuf::DescriptorPool::DisallowEnforceUtf8 ( )
inline

Definition at line 1746 of file src/google/protobuf/descriptor.h.

◆ EnforceWeakDependencies()

void google::protobuf::DescriptorPool::EnforceWeakDependencies ( bool  enforce)
inline

Definition at line 1710 of file src/google/protobuf/descriptor.h.

◆ FindAllExtensions()

void DescriptorPool::FindAllExtensions ( const Descriptor extendee,
std::vector< const FieldDescriptor * > *  out 
) const

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

◆ FindEnumTypeByName()

const EnumDescriptor * DescriptorPool::FindEnumTypeByName ( const std::string name) const

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

◆ FindEnumValueByName()

const EnumValueDescriptor * DescriptorPool::FindEnumValueByName ( const std::string name) const

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

◆ FindExtensionByName()

const FieldDescriptor * DescriptorPool::FindExtensionByName ( const std::string name) const

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

◆ FindExtensionByNumber()

const FieldDescriptor * DescriptorPool::FindExtensionByNumber ( const Descriptor extendee,
int  number 
) const

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

◆ FindExtensionByPrintableName()

const FieldDescriptor * DescriptorPool::FindExtensionByPrintableName ( const Descriptor extendee,
const std::string printable_name 
) const

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

◆ FindFieldByName()

const FieldDescriptor * DescriptorPool::FindFieldByName ( const std::string name) const

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

◆ FindFileByName()

const FileDescriptor * DescriptorPool::FindFileByName ( const std::string name) const

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

◆ FindFileContainingSymbol()

const FileDescriptor * DescriptorPool::FindFileContainingSymbol ( const std::string symbol_name) const

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

◆ FindMessageTypeByName()

const Descriptor * DescriptorPool::FindMessageTypeByName ( const std::string name) const

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

◆ FindMethodByName()

const MethodDescriptor * DescriptorPool::FindMethodByName ( const std::string name) const

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

◆ FindOneofByName()

const OneofDescriptor * DescriptorPool::FindOneofByName ( const std::string name) const

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

◆ FindServiceByName()

const ServiceDescriptor * DescriptorPool::FindServiceByName ( const std::string name) const

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

◆ generated_pool()

const DescriptorPool * DescriptorPool::generated_pool ( )
static

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

◆ GOOGLE_DISALLOW_EVIL_CONSTRUCTORS()

google::protobuf::DescriptorPool::GOOGLE_DISALLOW_EVIL_CONSTRUCTORS ( DescriptorPool  )
private

◆ internal_generated_pool()

DescriptorPool * DescriptorPool::internal_generated_pool ( )
static

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

◆ internal_set_underlay()

void google::protobuf::DescriptorPool::internal_set_underlay ( const DescriptorPool underlay)
inline

Definition at line 1776 of file src/google/protobuf/descriptor.h.

◆ InternalAddGeneratedFile()

void DescriptorPool::InternalAddGeneratedFile ( const void encoded_file_descriptor,
int  size 
)
static

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

◆ InternalDontEnforceDependencies()

void DescriptorPool::InternalDontEnforceDependencies ( )

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

◆ InternalIsFileLoaded()

bool DescriptorPool::InternalIsFileLoaded ( const std::string filename) const

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

◆ InternalSetLazilyBuildDependencies()

void google::protobuf::DescriptorPool::InternalSetLazilyBuildDependencies ( )
inline

Definition at line 1768 of file src/google/protobuf/descriptor.h.

◆ IsSubSymbolOfBuiltType()

bool DescriptorPool::IsSubSymbolOfBuiltType ( const std::string name) const
private

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

◆ NewPlaceholder()

Symbol DescriptorPool::NewPlaceholder ( const std::string name,
PlaceholderType  placeholder_type 
) const
private

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

◆ NewPlaceholderFile()

FileDescriptor * DescriptorPool::NewPlaceholderFile ( const std::string name) const
private

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

◆ NewPlaceholderFileWithMutexHeld()

FileDescriptor * DescriptorPool::NewPlaceholderFileWithMutexHeld ( const std::string name) const
private

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

◆ NewPlaceholderWithMutexHeld()

Symbol DescriptorPool::NewPlaceholderWithMutexHeld ( const std::string name,
PlaceholderType  placeholder_type 
) const
private

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

◆ TryFindExtensionInFallbackDatabase()

bool DescriptorPool::TryFindExtensionInFallbackDatabase ( const Descriptor containing_type,
int  field_number 
) const
private

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

◆ TryFindFileInFallbackDatabase()

bool DescriptorPool::TryFindFileInFallbackDatabase ( const std::string name) const
private

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

◆ TryFindSymbolInFallbackDatabase()

bool DescriptorPool::TryFindSymbolInFallbackDatabase ( const std::string name) const
private

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

Friends And Related Function Documentation

◆ Descriptor

friend class Descriptor
friend

Definition at line 1791 of file src/google/protobuf/descriptor.h.

◆ DescriptorBuilder

friend class DescriptorBuilder
friend

Definition at line 1799 of file src/google/protobuf/descriptor.h.

◆ EnumDescriptor

friend class EnumDescriptor
friend

Definition at line 1794 of file src/google/protobuf/descriptor.h.

◆ FieldDescriptor

friend class FieldDescriptor
friend

Definition at line 1793 of file src/google/protobuf/descriptor.h.

◆ FileDescriptor

friend class FileDescriptor
friend

Definition at line 1797 of file src/google/protobuf/descriptor.h.

◆ FileDescriptorTables

friend class FileDescriptorTables
friend

Definition at line 1800 of file src/google/protobuf/descriptor.h.

◆ internal::LazyDescriptor

friend class internal::LazyDescriptor
friend

Definition at line 1792 of file src/google/protobuf/descriptor.h.

◆ MethodDescriptor

friend class MethodDescriptor
friend

Definition at line 1796 of file src/google/protobuf/descriptor.h.

◆ ServiceDescriptor

friend class ServiceDescriptor
friend

Definition at line 1795 of file src/google/protobuf/descriptor.h.

◆ StreamDescriptor

friend class StreamDescriptor
friend

Definition at line 1798 of file src/google/protobuf/descriptor.h.

Member Data Documentation

◆ allow_unknown_

bool google::protobuf::DescriptorPool::allow_unknown_
private

Definition at line 1862 of file src/google/protobuf/descriptor.h.

◆ default_error_collector_

ErrorCollector* google::protobuf::DescriptorPool::default_error_collector_
private

Definition at line 1852 of file src/google/protobuf/descriptor.h.

◆ disallow_enforce_utf8_

bool google::protobuf::DescriptorPool::disallow_enforce_utf8_
private

Definition at line 1864 of file src/google/protobuf/descriptor.h.

◆ enforce_dependencies_

bool google::protobuf::DescriptorPool::enforce_dependencies_
private

Definition at line 1860 of file src/google/protobuf/descriptor.h.

◆ enforce_weak_

bool google::protobuf::DescriptorPool::enforce_weak_
private

Definition at line 1863 of file src/google/protobuf/descriptor.h.

◆ fallback_database_

DescriptorDatabase* google::protobuf::DescriptorPool::fallback_database_
private

Definition at line 1851 of file src/google/protobuf/descriptor.h.

◆ lazily_build_dependencies_

bool google::protobuf::DescriptorPool::lazily_build_dependencies_
private

Definition at line 1861 of file src/google/protobuf/descriptor.h.

◆ mutex_

internal::WrappedMutex* google::protobuf::DescriptorPool::mutex_
private

Definition at line 1848 of file src/google/protobuf/descriptor.h.

◆ tables_

std::unique_ptr<Tables> google::protobuf::DescriptorPool::tables_
private

Definition at line 1857 of file src/google/protobuf/descriptor.h.

◆ underlay_

const DescriptorPool* google::protobuf::DescriptorPool::underlay_
private

Definition at line 1853 of file src/google/protobuf/descriptor.h.

◆ unused_import_track_files_

std::set<std::string> google::protobuf::DescriptorPool::unused_import_track_files_
private

Definition at line 1865 of file src/google/protobuf/descriptor.h.


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


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