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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 void GenerateSerializationCode(io::Printer* printer) const; | 74 void GenerateSerializationCode(io::Printer* printer) const; |
75 void GenerateSerializedSizeCode(io::Printer* printer) const; | 75 void GenerateSerializedSizeCode(io::Printer* printer) const; |
76 void GenerateFieldBuilderInitializationCode(io::Printer* printer) const; | 76 void GenerateFieldBuilderInitializationCode(io::Printer* printer) const; |
77 void GenerateEqualsCode(io::Printer* printer) const; | 77 void GenerateEqualsCode(io::Printer* printer) const; |
78 void GenerateHashCode(io::Printer* printer) const; | 78 void GenerateHashCode(io::Printer* printer) const; |
79 | 79 |
80 string GetBoxedType() const; | 80 string GetBoxedType() const; |
81 | 81 |
82 protected: | 82 protected: |
83 const FieldDescriptor* descriptor_; | 83 const FieldDescriptor* descriptor_; |
84 map<string, string> variables_; | 84 std::map<string, string> variables_; |
85 const int messageBitIndex_; | 85 const int messageBitIndex_; |
86 const int builderBitIndex_; | 86 const int builderBitIndex_; |
87 Context* context_; | 87 Context* context_; |
88 ClassNameResolver* name_resolver_; | 88 ClassNameResolver* name_resolver_; |
89 | 89 |
90 private: | 90 private: |
91 GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(ImmutableMessageFieldLiteGenerator); | 91 GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(ImmutableMessageFieldLiteGenerator); |
92 }; | 92 }; |
93 | 93 |
94 class ImmutableMessageOneofFieldLiteGenerator | 94 class ImmutableMessageOneofFieldLiteGenerator |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 void GenerateSerializationCode(io::Printer* printer) const; | 132 void GenerateSerializationCode(io::Printer* printer) const; |
133 void GenerateSerializedSizeCode(io::Printer* printer) const; | 133 void GenerateSerializedSizeCode(io::Printer* printer) const; |
134 void GenerateFieldBuilderInitializationCode(io::Printer* printer) const; | 134 void GenerateFieldBuilderInitializationCode(io::Printer* printer) const; |
135 void GenerateEqualsCode(io::Printer* printer) const; | 135 void GenerateEqualsCode(io::Printer* printer) const; |
136 void GenerateHashCode(io::Printer* printer) const; | 136 void GenerateHashCode(io::Printer* printer) const; |
137 | 137 |
138 string GetBoxedType() const; | 138 string GetBoxedType() const; |
139 | 139 |
140 protected: | 140 protected: |
141 const FieldDescriptor* descriptor_; | 141 const FieldDescriptor* descriptor_; |
142 map<string, string> variables_; | 142 std::map<string, string> variables_; |
143 const int messageBitIndex_; | 143 const int messageBitIndex_; |
144 const int builderBitIndex_; | 144 const int builderBitIndex_; |
145 Context* context_; | 145 Context* context_; |
146 ClassNameResolver* name_resolver_; | 146 ClassNameResolver* name_resolver_; |
147 | 147 |
148 private: | 148 private: |
149 GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(RepeatedImmutableMessageFieldLiteGenerator); | 149 GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(RepeatedImmutableMessageFieldLiteGenerator); |
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_MESSAGE_FIELD_LITE_H__ | 157 #endif // GOOGLE_PROTOBUF_COMPILER_JAVA_MESSAGE_FIELD_LITE_H__ |
OLD | NEW |