#include <google/protobuf/compiler/cpp/map_field.h>
#include <google/protobuf/io/printer.h>
#include <google/protobuf/wire_format.h>
#include <google/protobuf/stubs/strutil.h>
#include <google/protobuf/compiler/cpp/helpers.h>
namespace google {
namespace protobuf {
namespace compiler {
namespace cpp {
bool IsProto3Field(const FieldDescriptor* field_descriptor) { … }
void SetMessageVariables(const FieldDescriptor* descriptor,
std::map<std::string, std::string>* variables,
const Options& options) { … }
MapFieldGenerator::MapFieldGenerator(const FieldDescriptor* descriptor,
const Options& options,
MessageSCCAnalyzer* scc_analyzer)
: … { … }
MapFieldGenerator::~MapFieldGenerator() { … }
void MapFieldGenerator::GeneratePrivateMembers(io::Printer* printer) const { … }
void MapFieldGenerator::GenerateAccessorDeclarations(
io::Printer* printer) const { … }
void MapFieldGenerator::GenerateInlineAccessorDefinitions(
io::Printer* printer) const { … }
void MapFieldGenerator::GenerateClearingCode(io::Printer* printer) const { … }
void MapFieldGenerator::GenerateMergingCode(io::Printer* printer) const { … }
void MapFieldGenerator::GenerateSwappingCode(io::Printer* printer) const { … }
void MapFieldGenerator::GenerateCopyConstructorCode(
io::Printer* printer) const { … }
static void GenerateSerializationLoop(Formatter& format, bool string_key,
bool string_value,
bool is_deterministic) { … }
void MapFieldGenerator::GenerateSerializeWithCachedSizesToArray(
io::Printer* printer) const { … }
void MapFieldGenerator::GenerateByteSize(io::Printer* printer) const { … }
void MapFieldGenerator::GenerateIsInitialized(io::Printer* printer) const { … }
void MapFieldGenerator::GenerateConstexprAggregateInitializer(
io::Printer* printer) const { … }
void MapFieldGenerator::GenerateCopyAggregateInitializer(
io::Printer* printer) const { … }
void MapFieldGenerator::GenerateAggregateInitializer(
io::Printer* printer) const { … }
void MapFieldGenerator::GenerateDestructorCode(io::Printer* printer) const { … }
void MapFieldGenerator::GenerateArenaDestructorCode(
io::Printer* printer) const { … }
ArenaDtorNeeds MapFieldGenerator::NeedsArenaDestructor() const { … }
}
}
}
}