| 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 static void Merge(const Message& from, Message* to); | 60 static void Merge(const Message& from, Message* to); |
| 61 static void Clear(Message* message); | 61 static void Clear(Message* message); |
| 62 static bool IsInitialized(const Message& message); | 62 static bool IsInitialized(const Message& message); |
| 63 static void DiscardUnknownFields(Message* message); | 63 static void DiscardUnknownFields(Message* message); |
| 64 | 64 |
| 65 // Finds all unset required fields in the message and adds their full | 65 // Finds all unset required fields in the message and adds their full |
| 66 // paths (e.g. "foo.bar[5].baz") to *names. "prefix" will be attached to | 66 // paths (e.g. "foo.bar[5].baz") to *names. "prefix" will be attached to |
| 67 // the front of each name. | 67 // the front of each name. |
| 68 static void FindInitializationErrors(const Message& message, | 68 static void FindInitializationErrors(const Message& message, |
| 69 const string& prefix, | 69 const string& prefix, |
| 70 std::vector<string>* errors); | 70 vector<string>* errors); |
| 71 | 71 |
| 72 private: | 72 private: |
| 73 // All methods are static. No need to construct. | 73 // All methods are static. No need to construct. |
| 74 GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(ReflectionOps); | 74 GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(ReflectionOps); |
| 75 }; | 75 }; |
| 76 | 76 |
| 77 } // namespace internal | 77 } // namespace internal |
| 78 } // namespace protobuf | 78 } // namespace protobuf |
| 79 | 79 |
| 80 } // namespace google | 80 } // namespace google |
| 81 #endif // GOOGLE_PROTOBUF_REFLECTION_OPS_H__ | 81 #endif // GOOGLE_PROTOBUF_REFLECTION_OPS_H__ |
| OLD | NEW |