Classes | Namespaces | Macros | Functions | Variables
src/google/protobuf/descriptor.cc File Reference
#include <algorithm>
#include <functional>
#include <limits>
#include <map>
#include <memory>
#include <set>
#include <string>
#include <unordered_map>
#include <unordered_set>
#include <vector>
#include <google/protobuf/stubs/common.h>
#include <google/protobuf/stubs/logging.h>
#include <google/protobuf/stubs/stringprintf.h>
#include <google/protobuf/stubs/strutil.h>
#include <google/protobuf/descriptor.pb.h>
#include <google/protobuf/io/strtod.h>
#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/io/tokenizer.h>
#include <google/protobuf/io/zero_copy_stream_impl.h>
#include <google/protobuf/descriptor.h>
#include <google/protobuf/descriptor_database.h>
#include <google/protobuf/dynamic_message.h>
#include <google/protobuf/generated_message_util.h>
#include <google/protobuf/text_format.h>
#include <google/protobuf/unknown_field_set.h>
#include <google/protobuf/wire_format.h>
#include <google/protobuf/stubs/substitute.h>
#include <google/protobuf/stubs/casts.h>
#include <google/protobuf/stubs/map_util.h>
#include <google/protobuf/stubs/stl_util.h>
#include <google/protobuf/stubs/hash.h>
#include <google/protobuf/port_def.inc>
Include dependency graph for src/google/protobuf/descriptor.cc:

Go to the source code of this file.

Classes

class  google::protobuf::DescriptorBuilder::OptionInterpreter::AggregateOptionFinder
 
struct  google::protobuf::DescriptorPool::Tables::CheckPoint
 
class  google::protobuf::DescriptorBuilder
 
class  google::protobuf::FileDescriptorTables
 
class  google::protobuf::DescriptorBuilder::OptionInterpreter
 
struct  google::protobuf::Symbol
 
class  google::protobuf::DescriptorPool::Tables
 

Namespaces

 google
 
 google::protobuf
 
 google.protobuf.internal
 

Macros

#define BUILD_ARRAY(INPUT, OUTPUT, NAME, METHOD, PARENT)
 
#define CONSTRUCTOR(TYPE, TYPE_CONSTANT, FIELD)
 
#define HASH_FXN   hash
 
#define HASH_MAP   std::unordered_map
 
#define HASH_SET   std::unordered_set
 
#define VALIDATE_OPTIONS_FROM_ARRAY(descriptor, array_name, type)
 

Functions

static bool google::protobuf::ExistingFileMatchesProto (const FileDescriptor *existing_file, const FileDescriptorProto &proto)
 
static bool google::protobuf::IsLite (const FileDescriptor *file)
 
static std::string google::protobuf::ToLowercaseWithoutUnderscores (const std::string &name)
 
static bool google::protobuf::ValidateQualifiedName (const std::string &name)
 

Variables

static const char *const google::protobuf::kNonLinkedWeakMessageReplacementName = "google.protobuf.Empty"
 

Macro Definition Documentation

◆ BUILD_ARRAY

#define BUILD_ARRAY (   INPUT,
  OUTPUT,
  NAME,
  METHOD,
  PARENT 
)
Value:
OUTPUT->NAME##_count_ = INPUT.NAME##_size(); \
AllocateArray(INPUT.NAME##_size(), &OUTPUT->NAME##s_); \
for (int i = 0; i < INPUT.NAME##_size(); i++) { \
METHOD(INPUT.NAME(i), PARENT, OUTPUT->NAME##s_ + i); \
}

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

◆ CONSTRUCTOR

#define CONSTRUCTOR (   TYPE,
  TYPE_CONSTANT,
  FIELD 
)
Value:
inline explicit Symbol(const TYPE* value) { \
type = TYPE_CONSTANT; \
this->FIELD = value; \
}

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

◆ HASH_FXN

#define HASH_FXN   hash

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

◆ HASH_MAP

#define HASH_MAP   std::unordered_map

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

◆ HASH_SET

#define HASH_SET   std::unordered_set

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

◆ VALIDATE_OPTIONS_FROM_ARRAY

#define VALIDATE_OPTIONS_FROM_ARRAY (   descriptor,
  array_name,
  type 
)
Value:
for (int i = 0; i < descriptor->array_name##_count(); ++i) { \
Validate##type##Options(descriptor->array_name##s_ + i, \
proto.array_name(i)); \
}

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

Variable Documentation

◆ element_name

std::string element_name

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

◆ element_path

std::vector<int> element_path

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

◆ error_

std::string error_

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

◆ have_source_loc_

bool have_source_loc_
private

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

◆ name_scope

std::string name_scope

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

◆ options

Message* options

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

◆ options_

DebugStringOptions options_
private

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

◆ original_options

const Message* original_options

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

◆ prefix_

std::string prefix_
private

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

◆ source_loc_

SourceLocation source_loc_
private

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

descriptor
Descriptor * descriptor
Definition: php/ext/google/protobuf/protobuf.h:936
s_
std::string s_
Definition: gmock-matchers_test.cc:4128
i
int i
Definition: gmock-matchers_test.cc:764
type
GLenum type
Definition: glcorearb.h:2695
TYPE
#define TYPE(u, l)
Definition: php/ext/google/protobuf/upb.c:8510
value
GLsizei const GLfloat * value
Definition: glcorearb.h:3093


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