Index: third_party/protobuf/src/google/protobuf/compiler/cpp/cpp_primitive_field.h |
diff --git a/third_party/protobuf/src/google/protobuf/compiler/cpp/cpp_primitive_field.h b/third_party/protobuf/src/google/protobuf/compiler/cpp/cpp_primitive_field.h |
index 48249c4074f0649e61767a1d7d3c93954fb1c49d..fcd7d684d640b46bdb0a745c5d6e8b13be4589f9 100644 |
--- a/third_party/protobuf/src/google/protobuf/compiler/cpp/cpp_primitive_field.h |
+++ b/third_party/protobuf/src/google/protobuf/compiler/cpp/cpp_primitive_field.h |
@@ -1,6 +1,6 @@ |
// Protocol Buffers - Google's data interchange format |
// Copyright 2008 Google Inc. All rights reserved. |
-// http://code.google.com/p/protobuf/ |
+// https://developers.google.com/protocol-buffers/ |
// |
// Redistribution and use in source and binary forms, with or without |
// modification, are permitted provided that the following conditions are |
@@ -53,7 +53,8 @@ class PrimitiveFieldGenerator : public FieldGenerator { |
// implements FieldGenerator --------------------------------------- |
void GeneratePrivateMembers(io::Printer* printer) const; |
void GenerateAccessorDeclarations(io::Printer* printer) const; |
- void GenerateInlineAccessorDefinitions(io::Printer* printer) const; |
+ void GenerateInlineAccessorDefinitions(io::Printer* printer, |
+ bool is_inline) const; |
void GenerateClearingCode(io::Printer* printer) const; |
void GenerateMergingCode(io::Printer* printer) const; |
void GenerateSwappingCode(io::Printer* printer) const; |
@@ -63,13 +64,32 @@ class PrimitiveFieldGenerator : public FieldGenerator { |
void GenerateSerializeWithCachedSizesToArray(io::Printer* printer) const; |
void GenerateByteSize(io::Printer* printer) const; |
- private: |
+ protected: |
const FieldDescriptor* descriptor_; |
map<string, string> variables_; |
+ private: |
GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(PrimitiveFieldGenerator); |
}; |
+class PrimitiveOneofFieldGenerator : public PrimitiveFieldGenerator { |
+ public: |
+ explicit PrimitiveOneofFieldGenerator(const FieldDescriptor* descriptor, |
+ const Options& options); |
+ ~PrimitiveOneofFieldGenerator(); |
+ |
+ // implements FieldGenerator --------------------------------------- |
+ void GenerateInlineAccessorDefinitions(io::Printer* printer, |
+ bool is_inline) const; |
+ void GenerateClearingCode(io::Printer* printer) const; |
+ void GenerateSwappingCode(io::Printer* printer) const; |
+ void GenerateConstructorCode(io::Printer* printer) const; |
+ void GenerateMergeFromCodedStream(io::Printer* printer) const; |
+ |
+ private: |
+ GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(PrimitiveOneofFieldGenerator); |
+}; |
+ |
class RepeatedPrimitiveFieldGenerator : public FieldGenerator { |
public: |
explicit RepeatedPrimitiveFieldGenerator(const FieldDescriptor* descriptor, |
@@ -79,7 +99,8 @@ class RepeatedPrimitiveFieldGenerator : public FieldGenerator { |
// implements FieldGenerator --------------------------------------- |
void GeneratePrivateMembers(io::Printer* printer) const; |
void GenerateAccessorDeclarations(io::Printer* printer) const; |
- void GenerateInlineAccessorDefinitions(io::Printer* printer) const; |
+ void GenerateInlineAccessorDefinitions(io::Printer* printer, |
+ bool is_inline) const; |
void GenerateClearingCode(io::Printer* printer) const; |
void GenerateMergingCode(io::Printer* printer) const; |
void GenerateSwappingCode(io::Printer* printer) const; |