Public Member Functions | Private Member Functions | Private Attributes | List of all members
google::protobuf::SimpleDescriptorDatabase::DescriptorIndex< Value > Class Template Reference

Public Member Functions

bool AddExtension (const std::string &filename, const FieldDescriptorProto &field, Value value)
 
bool AddFile (const FileDescriptorProto &file, Value value)
 
bool AddNestedExtensions (const std::string &filename, const DescriptorProto &message_type, Value value)
 
bool AddSymbol (const std::string &name, Value value)
 
bool FindAllExtensionNumbers (const std::string &containing_type, std::vector< int > *output)
 
void FindAllFileNames (std::vector< std::string > *output)
 
Value FindExtension (const std::string &containing_type, int field_number)
 
Value FindFile (const std::string &filename)
 
Value FindSymbol (const std::string &name)
 

Private Member Functions

std::map< std::string, Value >::iterator FindLastLessOrEqual (const std::string &name)
 
bool IsSubSymbol (const std::string &sub_symbol, const std::string &super_symbol)
 
bool ValidateSymbolName (const std::string &name)
 

Private Attributes

std::map< std::pair< std::string, int >, Valueby_extension_
 
std::map< std::string, Valueby_name_
 
std::map< std::string, Valueby_symbol_
 

Detailed Description

template<typename Value>
class google::protobuf::SimpleDescriptorDatabase::DescriptorIndex< Value >

Definition at line 196 of file src/google/protobuf/descriptor_database.h.

Member Function Documentation

◆ AddExtension()

template<typename Value >
bool google::protobuf::SimpleDescriptorDatabase::DescriptorIndex< Value >::AddExtension ( const std::string filename,
const FieldDescriptorProto field,
Value  value 
)

Definition at line 220 of file src/google/protobuf/descriptor_database.cc.

◆ AddFile()

template<typename Value >
bool google::protobuf::SimpleDescriptorDatabase::DescriptorIndex< Value >::AddFile ( const FileDescriptorProto file,
Value  value 
)

Definition at line 115 of file src/google/protobuf/descriptor_database.cc.

◆ AddNestedExtensions()

template<typename Value >
bool google::protobuf::SimpleDescriptorDatabase::DescriptorIndex< Value >::AddNestedExtensions ( const std::string filename,
const DescriptorProto message_type,
Value  value 
)

Definition at line 206 of file src/google/protobuf/descriptor_database.cc.

◆ AddSymbol()

template<typename Value >
bool google::protobuf::SimpleDescriptorDatabase::DescriptorIndex< Value >::AddSymbol ( const std::string name,
Value  value 
)

Definition at line 148 of file src/google/protobuf/descriptor_database.cc.

◆ FindAllExtensionNumbers()

template<typename Value >
bool google::protobuf::SimpleDescriptorDatabase::DescriptorIndex< Value >::FindAllExtensionNumbers ( const std::string containing_type,
std::vector< int > *  output 
)

Definition at line 269 of file src/google/protobuf/descriptor_database.cc.

◆ FindAllFileNames()

template<typename Value >
void google::protobuf::SimpleDescriptorDatabase::DescriptorIndex< Value >::FindAllFileNames ( std::vector< std::string > *  output)

Definition at line 285 of file src/google/protobuf/descriptor_database.cc.

◆ FindExtension()

template<typename Value >
Value google::protobuf::SimpleDescriptorDatabase::DescriptorIndex< Value >::FindExtension ( const std::string containing_type,
int  field_number 
)

Definition at line 262 of file src/google/protobuf/descriptor_database.cc.

◆ FindFile()

template<typename Value >
Value google::protobuf::SimpleDescriptorDatabase::DescriptorIndex< Value >::FindFile ( const std::string filename)

Definition at line 245 of file src/google/protobuf/descriptor_database.cc.

◆ FindLastLessOrEqual()

template<typename Value >
std::map< std::string, Value >::iterator google::protobuf::SimpleDescriptorDatabase::DescriptorIndex< Value >::FindLastLessOrEqual ( const std::string name)
private

Definition at line 297 of file src/google/protobuf/descriptor_database.cc.

◆ FindSymbol()

template<typename Value >
Value google::protobuf::SimpleDescriptorDatabase::DescriptorIndex< Value >::FindSymbol ( const std::string name)

Definition at line 251 of file src/google/protobuf/descriptor_database.cc.

◆ IsSubSymbol()

template<typename Value >
bool google::protobuf::SimpleDescriptorDatabase::DescriptorIndex< Value >::IsSubSymbol ( const std::string sub_symbol,
const std::string super_symbol 
)
private

Definition at line 309 of file src/google/protobuf/descriptor_database.cc.

◆ ValidateSymbolName()

template<typename Value >
bool google::protobuf::SimpleDescriptorDatabase::DescriptorIndex< Value >::ValidateSymbolName ( const std::string name)
private

Definition at line 317 of file src/google/protobuf/descriptor_database.cc.

Member Data Documentation

◆ by_extension_

template<typename Value >
std::map<std::pair<std::string, int>, Value> google::protobuf::SimpleDescriptorDatabase::DescriptorIndex< Value >::by_extension_
private

Definition at line 217 of file src/google/protobuf/descriptor_database.h.

◆ by_name_

Definition at line 215 of file src/google/protobuf/descriptor_database.h.

◆ by_symbol_

Definition at line 216 of file src/google/protobuf/descriptor_database.h.


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


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