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(ImmutableEnumFieldGenerator); | 92 GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(ImmutableEnumFieldGenerator); |
93 }; | 93 }; |
94 | 94 |
95 class ImmutableEnumOneofFieldGenerator : public ImmutableEnumFieldGenerator { | 95 class ImmutableEnumOneofFieldGenerator : public ImmutableEnumFieldGenerator { |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 void GenerateSerializationCode(io::Printer* printer) const; | 136 void GenerateSerializationCode(io::Printer* printer) const; |
137 void GenerateSerializedSizeCode(io::Printer* printer) const; | 137 void GenerateSerializedSizeCode(io::Printer* printer) const; |
138 void GenerateFieldBuilderInitializationCode(io::Printer* printer) const; | 138 void GenerateFieldBuilderInitializationCode(io::Printer* printer) const; |
139 void GenerateEqualsCode(io::Printer* printer) const; | 139 void GenerateEqualsCode(io::Printer* printer) const; |
140 void GenerateHashCode(io::Printer* printer) const; | 140 void GenerateHashCode(io::Printer* printer) const; |
141 | 141 |
142 string GetBoxedType() const; | 142 string GetBoxedType() const; |
143 | 143 |
144 private: | 144 private: |
145 const FieldDescriptor* descriptor_; | 145 const FieldDescriptor* descriptor_; |
146 map<string, string> variables_; | 146 std::map<string, string> variables_; |
147 const int messageBitIndex_; | 147 const int messageBitIndex_; |
148 const int builderBitIndex_; | 148 const int builderBitIndex_; |
149 Context* context_; | 149 Context* context_; |
150 ClassNameResolver* name_resolver_; | 150 ClassNameResolver* name_resolver_; |
151 | 151 |
152 GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(RepeatedImmutableEnumFieldGenerator); | 152 GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(RepeatedImmutableEnumFieldGenerator); |
153 }; | 153 }; |
154 | 154 |
155 } // namespace java | 155 } // namespace java |
156 } // namespace compiler | 156 } // namespace compiler |
157 } // namespace protobuf | 157 } // namespace protobuf |
158 | 158 |
159 } // namespace google | 159 } // namespace google |
160 #endif // GOOGLE_PROTOBUF_COMPILER_JAVA_ENUM_FIELD_H__ | 160 #endif // GOOGLE_PROTOBUF_COMPILER_JAVA_ENUM_FIELD_H__ |
OLD | NEW |