| OLD | NEW |
| 1 // Protocol Buffers - Google's data interchange format | 1 // Protocol Buffers - Google's data interchange format |
| 2 // Copyright 2008 Google Inc. All rights reserved. | 2 // Copyright 2008 Google Inc. All rights reserved. |
| 3 // https://developers.google.com/protocol-buffers/ | 3 // https://developers.google.com/protocol-buffers/ |
| 4 // | 4 // |
| 5 // Redistribution and use in source and binary forms, with or without | 5 // Redistribution and use in source and binary forms, with or without |
| 6 // modification, are permitted provided that the following conditions are | 6 // modification, are permitted provided that the following conditions are |
| 7 // met: | 7 // met: |
| 8 // | 8 // |
| 9 // * Redistributions of source code must retain the above copyright | 9 // * Redistributions of source code must retain the above copyright |
| 10 // notice, this list of conditions and the following disclaimer. | 10 // notice, this list of conditions and the following disclaimer. |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 void GenerateSerializationCode(io::Printer* printer) const; | 75 void GenerateSerializationCode(io::Printer* printer) const; |
| 76 void GenerateSerializedSizeCode(io::Printer* printer) const; | 76 void GenerateSerializedSizeCode(io::Printer* printer) const; |
| 77 void GenerateFieldBuilderInitializationCode(io::Printer* printer) const; | 77 void GenerateFieldBuilderInitializationCode(io::Printer* printer) const; |
| 78 void GenerateEqualsCode(io::Printer* printer) const; | 78 void GenerateEqualsCode(io::Printer* printer) const; |
| 79 void GenerateHashCode(io::Printer* printer) const; | 79 void GenerateHashCode(io::Printer* printer) const; |
| 80 | 80 |
| 81 string GetBoxedType() const; | 81 string GetBoxedType() const; |
| 82 | 82 |
| 83 protected: | 83 protected: |
| 84 const FieldDescriptor* descriptor_; | 84 const FieldDescriptor* descriptor_; |
| 85 map<string, string> variables_; | 85 std::map<string, string> variables_; |
| 86 const int messageBitIndex_; | 86 const int messageBitIndex_; |
| 87 const int builderBitIndex_; | 87 const int builderBitIndex_; |
| 88 Context* context_; | 88 Context* context_; |
| 89 ClassNameResolver* name_resolver_; | 89 ClassNameResolver* name_resolver_; |
| 90 | 90 |
| 91 private: | 91 private: |
| 92 GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(ImmutableStringFieldLiteGenerator); | 92 GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(ImmutableStringFieldLiteGenerator); |
| 93 }; | 93 }; |
| 94 | 94 |
| 95 class ImmutableStringOneofFieldLiteGenerator | 95 class ImmutableStringOneofFieldLiteGenerator |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 void GenerateSerializationCode(io::Printer* printer) const; | 133 void GenerateSerializationCode(io::Printer* printer) const; |
| 134 void GenerateSerializedSizeCode(io::Printer* printer) const; | 134 void GenerateSerializedSizeCode(io::Printer* printer) const; |
| 135 void GenerateFieldBuilderInitializationCode(io::Printer* printer) const; | 135 void GenerateFieldBuilderInitializationCode(io::Printer* printer) const; |
| 136 void GenerateEqualsCode(io::Printer* printer) const; | 136 void GenerateEqualsCode(io::Printer* printer) const; |
| 137 void GenerateHashCode(io::Printer* printer) const; | 137 void GenerateHashCode(io::Printer* printer) const; |
| 138 | 138 |
| 139 string GetBoxedType() const; | 139 string GetBoxedType() const; |
| 140 | 140 |
| 141 private: | 141 private: |
| 142 const FieldDescriptor* descriptor_; | 142 const FieldDescriptor* descriptor_; |
| 143 map<string, string> variables_; | 143 std::map<string, string> variables_; |
| 144 const int messageBitIndex_; | 144 const int messageBitIndex_; |
| 145 const int builderBitIndex_; | 145 const int builderBitIndex_; |
| 146 Context* context_; | 146 Context* context_; |
| 147 ClassNameResolver* name_resolver_; | 147 ClassNameResolver* name_resolver_; |
| 148 | 148 |
| 149 GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(RepeatedImmutableStringFieldLiteGenerator); | 149 GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(RepeatedImmutableStringFieldLiteGenerator); |
| 150 }; | 150 }; |
| 151 | 151 |
| 152 } // namespace java | 152 } // namespace java |
| 153 } // namespace compiler | 153 } // namespace compiler |
| 154 } // namespace protobuf | 154 } // namespace protobuf |
| 155 | 155 |
| 156 } // namespace google | 156 } // namespace google |
| 157 #endif // GOOGLE_PROTOBUF_COMPILER_JAVA_STRING_FIELD_LITE_H__ | 157 #endif // GOOGLE_PROTOBUF_COMPILER_JAVA_STRING_FIELD_LITE_H__ |
| OLD | NEW |