Classes | |
struct | EncodedEntry |
struct | ExtensionCompare |
struct | ExtensionEntry |
struct | FileCompare |
struct | FileEntry |
struct | SymbolCompare |
struct | SymbolEntry |
Public Types | |
using | Value = std::pair< const void *, int > |
Public Member Functions | |
template<typename FileProto > | |
bool | AddFile (const FileProto &file, Value value) |
bool | FindAllExtensionNumbers (StringPiece containing_type, std::vector< int > *output) |
void | FindAllFileNames (std::vector< std::string > *output) const |
Value | FindExtension (StringPiece containing_type, int field_number) |
Value | FindFile (StringPiece filename) |
Value | FindSymbol (StringPiece name) |
Value | FindSymbolOnlyFlat (StringPiece name) const |
Private Types | |
using | String = std::string |
Private Member Functions | |
template<typename FieldProto > | |
bool | AddExtension (StringPiece filename, const FieldProto &field) |
template<typename DescProto > | |
bool | AddNestedExtensions (StringPiece filename, const DescProto &message_type) |
bool | AddSymbol (StringPiece symbol) |
StringPiece | DecodeString (const String &str, int) const |
String | EncodeString (StringPiece str) const |
void | EnsureFlat () |
Private Attributes | |
std::vector< EncodedEntry > | all_values_ |
std::set< ExtensionEntry, ExtensionCompare > | by_extension_ |
std::vector< ExtensionEntry > | by_extension_flat_ |
std::set< FileEntry, FileCompare > | by_name_ {FileCompare{*this}} |
std::vector< FileEntry > | by_name_flat_ |
std::set< SymbolEntry, SymbolCompare > | by_symbol_ {SymbolCompare{*this}} |
std::vector< SymbolEntry > | by_symbol_flat_ |
Friends | |
class | EncodedDescriptorDatabase |
Definition at line 391 of file protobuf/src/google/protobuf/descriptor_database.cc.
|
private |
Definition at line 427 of file protobuf/src/google/protobuf/descriptor_database.cc.
using google::protobuf::EncodedDescriptorDatabase::DescriptorIndex::Value = std::pair<const void*, int> |
Definition at line 393 of file protobuf/src/google/protobuf/descriptor_database.cc.
|
private |
Definition at line 743 of file protobuf/src/google/protobuf/descriptor_database.cc.
bool google::protobuf::EncodedDescriptorDatabase::DescriptorIndex::AddFile | ( | const FileProto & | file, |
Value | value | ||
) |
Definition at line 624 of file protobuf/src/google/protobuf/descriptor_database.cc.
|
private |
Definition at line 731 of file protobuf/src/google/protobuf/descriptor_database.cc.
|
private |
Definition at line 691 of file protobuf/src/google/protobuf/descriptor_database.cc.
|
inlineprivate |
Definition at line 430 of file protobuf/src/google/protobuf/descriptor_database.cc.
|
inlineprivate |
Definition at line 429 of file protobuf/src/google/protobuf/descriptor_database.cc.
|
private |
Definition at line 813 of file protobuf/src/google/protobuf/descriptor_database.cc.
bool google::protobuf::EncodedDescriptorDatabase::DescriptorIndex::FindAllExtensionNumbers | ( | StringPiece | containing_type, |
std::vector< int > * | output | ||
) |
Definition at line 821 of file protobuf/src/google/protobuf/descriptor_database.cc.
void google::protobuf::EncodedDescriptorDatabase::DescriptorIndex::FindAllFileNames | ( | std::vector< std::string > * | output | ) | const |
Definition at line 839 of file protobuf/src/google/protobuf/descriptor_database.cc.
std::pair< const void *, int > google::protobuf::EncodedDescriptorDatabase::DescriptorIndex::FindExtension | ( | StringPiece | containing_type, |
int | field_number | ||
) |
Definition at line 789 of file protobuf/src/google/protobuf/descriptor_database.cc.
std::pair< const void *, int > google::protobuf::EncodedDescriptorDatabase::DescriptorIndex::FindFile | ( | StringPiece | filename | ) |
Definition at line 854 of file protobuf/src/google/protobuf/descriptor_database.cc.
std::pair< const void *, int > google::protobuf::EncodedDescriptorDatabase::DescriptorIndex::FindSymbol | ( | StringPiece | name | ) |
Definition at line 771 of file protobuf/src/google/protobuf/descriptor_database.cc.
std::pair< const void *, int > google::protobuf::EncodedDescriptorDatabase::DescriptorIndex::FindSymbolOnlyFlat | ( | StringPiece | name | ) | const |
Definition at line 777 of file protobuf/src/google/protobuf/descriptor_database.cc.
|
friend |
Definition at line 408 of file protobuf/src/google/protobuf/descriptor_database.cc.
|
private |
Definition at line 441 of file protobuf/src/google/protobuf/descriptor_database.cc.
|
private |
Definition at line 548 of file protobuf/src/google/protobuf/descriptor_database.cc.
|
private |
Definition at line 550 of file protobuf/src/google/protobuf/descriptor_database.cc.
|
private |
Definition at line 464 of file protobuf/src/google/protobuf/descriptor_database.cc.
|
private |
Definition at line 465 of file protobuf/src/google/protobuf/descriptor_database.cc.
|
private |
Definition at line 521 of file protobuf/src/google/protobuf/descriptor_database.cc.
|
private |
Definition at line 522 of file protobuf/src/google/protobuf/descriptor_database.cc.