| 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 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 FieldGeneratorMap<ImmutableFieldGenerator>::~FieldGeneratorMap(); | 162 FieldGeneratorMap<ImmutableFieldGenerator>::~FieldGeneratorMap(); |
| 163 | 163 |
| 164 | 164 |
| 165 // Field information used in FieldGeneartors. | 165 // Field information used in FieldGeneartors. |
| 166 struct FieldGeneratorInfo { | 166 struct FieldGeneratorInfo { |
| 167 string name; | 167 string name; |
| 168 string capitalized_name; | 168 string capitalized_name; |
| 169 string disambiguated_reason; | 169 string disambiguated_reason; |
| 170 }; | 170 }; |
| 171 | 171 |
| 172 // Oneof information used in OneofFieldGeneartors. | 172 // Oneof information used in OneofFieldGenerators. |
| 173 struct OneofGeneratorInfo { | 173 struct OneofGeneratorInfo { |
| 174 string name; | 174 string name; |
| 175 string capitalized_name; | 175 string capitalized_name; |
| 176 }; | 176 }; |
| 177 | 177 |
| 178 // Set some common variables used in variable FieldGenerators. | 178 // Set some common variables used in variable FieldGenerators. |
| 179 void SetCommonFieldVariables(const FieldDescriptor* descriptor, | 179 void SetCommonFieldVariables(const FieldDescriptor* descriptor, |
| 180 const FieldGeneratorInfo* info, | 180 const FieldGeneratorInfo* info, |
| 181 map<string, string>* variables); | 181 std::map<string, string>* variables); |
| 182 | 182 |
| 183 // Set some common oneof variables used in OneofFieldGenerators. | 183 // Set some common oneof variables used in OneofFieldGenerators. |
| 184 void SetCommonOneofVariables(const FieldDescriptor* descriptor, | 184 void SetCommonOneofVariables(const FieldDescriptor* descriptor, |
| 185 const OneofGeneratorInfo* info, | 185 const OneofGeneratorInfo* info, |
| 186 map<string, string>* variables); | 186 std::map<string, string>* variables); |
| 187 | 187 |
| 188 // Print useful comments before a field's accessors. | 188 // Print useful comments before a field's accessors. |
| 189 void PrintExtraFieldInfo(const map<string, string>& variables, | 189 void PrintExtraFieldInfo(const std::map<string, string>& variables, |
| 190 io::Printer* printer); | 190 io::Printer* printer); |
| 191 | 191 |
| 192 } // namespace java | 192 } // namespace java |
| 193 } // namespace compiler | 193 } // namespace compiler |
| 194 } // namespace protobuf | 194 } // namespace protobuf |
| 195 | 195 |
| 196 } // namespace google | 196 } // namespace google |
| 197 #endif // GOOGLE_PROTOBUF_COMPILER_JAVA_FIELD_H__ | 197 #endif // GOOGLE_PROTOBUF_COMPILER_JAVA_FIELD_H__ |
| OLD | NEW |