TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
google::protobuf::DescriptorPool Class Reference

#include <descriptor.h>

Classes

class  ErrorCollector
 

Public Member Functions

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

Static Public Member Functions

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

Private Member Functions

bool IsSubSymbolOfBuiltType (const string &name) const
 
bool TryFindFileInFallbackDatabase (const string &name) const
 
bool TryFindSymbolInFallbackDatabase (const string &name) const
 
bool TryFindExtensionInFallbackDatabase (const Descriptor *containing_type, int field_number) const
 
const FileDescriptorBuildFileFromDatabase (const FileDescriptorProto &proto) const
 
 GOOGLE_DISALLOW_EVIL_CONSTRUCTORS (DescriptorPool)
 

Private Attributes

Mutex * mutex_
 
DescriptorDatabasefallback_database_
 
ErrorCollectordefault_error_collector_
 
const DescriptorPoolunderlay_
 
scoped_ptr< Tables > tables_
 
bool enforce_dependencies_
 
bool allow_unknown_
 
bool enforce_weak_
 
std::set< string > unused_import_track_files_
 

Friends

class Descriptor
 
class FieldDescriptor
 
class EnumDescriptor
 
class ServiceDescriptor
 
class FileDescriptor
 
class DescriptorBuilder
 

Constructor & Destructor Documentation

google::protobuf::DescriptorPool::DescriptorPool ( )
google::protobuf::DescriptorPool::DescriptorPool ( DescriptorDatabase fallback_database,
ErrorCollector error_collector = NULL 
)
explicit
google::protobuf::DescriptorPool::~DescriptorPool ( )
google::protobuf::DescriptorPool::DescriptorPool ( const DescriptorPool underlay)
explicit

Member Function Documentation

void google::protobuf::DescriptorPool::AddUnusedImportTrackFile ( const string &  file_name)
void google::protobuf::DescriptorPool::AllowUnknownDependencies ( )
inline
1321 { allow_unknown_ = true; }
bool allow_unknown_
Definition: descriptor.h:1433
const FileDescriptor* google::protobuf::DescriptorPool::BuildFile ( const FileDescriptorProto proto)
const FileDescriptor* google::protobuf::DescriptorPool::BuildFileCollectingErrors ( const FileDescriptorProto proto,
ErrorCollector error_collector 
)
const FileDescriptor* google::protobuf::DescriptorPool::BuildFileFromDatabase ( const FileDescriptorProto proto) const
private
void google::protobuf::DescriptorPool::ClearUnusedImportTrackFiles ( )
void google::protobuf::DescriptorPool::EnforceWeakDependencies ( bool  enforce)
inline
1327 { enforce_weak_ = enforce; }
bool enforce_weak_
Definition: descriptor.h:1434
void google::protobuf::DescriptorPool::FindAllExtensions ( const Descriptor extendee,
vector< const FieldDescriptor * > *  out 
) const
const EnumDescriptor* google::protobuf::DescriptorPool::FindEnumTypeByName ( const string &  name) const
const EnumValueDescriptor* google::protobuf::DescriptorPool::FindEnumValueByName ( const string &  name) const
const FieldDescriptor* google::protobuf::DescriptorPool::FindExtensionByName ( const string &  name) const
const FieldDescriptor* google::protobuf::DescriptorPool::FindExtensionByNumber ( const Descriptor extendee,
int  number 
) const
const FieldDescriptor* google::protobuf::DescriptorPool::FindFieldByName ( const string &  name) const
const FileDescriptor* google::protobuf::DescriptorPool::FindFileByName ( const string &  name) const
const FileDescriptor* google::protobuf::DescriptorPool::FindFileContainingSymbol ( const string &  symbol_name) const
const Descriptor* google::protobuf::DescriptorPool::FindMessageTypeByName ( const string &  name) const
const MethodDescriptor* google::protobuf::DescriptorPool::FindMethodByName ( const string &  name) const
const OneofDescriptor* google::protobuf::DescriptorPool::FindOneofByName ( const string &  name) const
const ServiceDescriptor* google::protobuf::DescriptorPool::FindServiceByName ( const string &  name) const
static const DescriptorPool* google::protobuf::DescriptorPool::generated_pool ( )
static
google::protobuf::DescriptorPool::GOOGLE_DISALLOW_EVIL_CONSTRUCTORS ( DescriptorPool  )
private
static DescriptorPool* google::protobuf::DescriptorPool::internal_generated_pool ( )
static
void google::protobuf::DescriptorPool::internal_set_underlay ( const DescriptorPool underlay)
inline
1375  {
1376  underlay_ = underlay;
1377  }
const DescriptorPool * underlay_
Definition: descriptor.h:1425
static void google::protobuf::DescriptorPool::InternalAddGeneratedFile ( const void *  encoded_file_descriptor,
int  size 
)
static
void google::protobuf::DescriptorPool::InternalDontEnforceDependencies ( )
bool google::protobuf::DescriptorPool::InternalIsFileLoaded ( const string &  filename) const
bool google::protobuf::DescriptorPool::IsSubSymbolOfBuiltType ( const string &  name) const
private
bool google::protobuf::DescriptorPool::TryFindExtensionInFallbackDatabase ( const Descriptor containing_type,
int  field_number 
) const
private
bool google::protobuf::DescriptorPool::TryFindFileInFallbackDatabase ( const string &  name) const
private
bool google::protobuf::DescriptorPool::TryFindSymbolInFallbackDatabase ( const string &  name) const
private

Friends And Related Function Documentation

friend class Descriptor
friend
friend class DescriptorBuilder
friend
friend class EnumDescriptor
friend
friend class FieldDescriptor
friend
friend class FileDescriptor
friend
friend class ServiceDescriptor
friend

Member Data Documentation

bool google::protobuf::DescriptorPool::allow_unknown_
private
ErrorCollector* google::protobuf::DescriptorPool::default_error_collector_
private
bool google::protobuf::DescriptorPool::enforce_dependencies_
private
bool google::protobuf::DescriptorPool::enforce_weak_
private
DescriptorDatabase* google::protobuf::DescriptorPool::fallback_database_
private
Mutex* google::protobuf::DescriptorPool::mutex_
private
scoped_ptr<Tables> google::protobuf::DescriptorPool::tables_
private
const DescriptorPool* google::protobuf::DescriptorPool::underlay_
private
std::set<string> google::protobuf::DescriptorPool::unused_import_track_files_
private

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