| 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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 RepeatedPtrField<Message>* InternalRepeatedField() { | 71 RepeatedPtrField<Message>* InternalRepeatedField() { |
| 72 return repeated_field_; | 72 return repeated_field_; |
| 73 } | 73 } |
| 74 bool IsMapClean() { return state_ != 0; } | 74 bool IsMapClean() { return state_ != 0; } |
| 75 bool IsRepeatedClean() { return state_ != 1; } | 75 bool IsRepeatedClean() { return state_ != 1; } |
| 76 void SetMapDirty() { state_ = 0; } | 76 void SetMapDirty() { state_ = 0; } |
| 77 void SetRepeatedDirty() { state_ = 1; } | 77 void SetRepeatedDirty() { state_ = 1; } |
| 78 bool ContainsMapKey(const MapKey& map_key) const { | 78 bool ContainsMapKey(const MapKey& map_key) const { |
| 79 return false; | 79 return false; |
| 80 } | 80 } |
| 81 bool InsertMapValue(const MapKey& map_key, MapValueRef* val) { | 81 bool InsertOrLookupMapValue(const MapKey& map_key, MapValueRef* val) { |
| 82 return false; | 82 return false; |
| 83 } | 83 } |
| 84 bool DeleteMapValue(const MapKey& map_key) { | 84 bool DeleteMapValue(const MapKey& map_key) { |
| 85 return false; | 85 return false; |
| 86 } | 86 } |
| 87 bool EqualIterator(const MapIterator& a, const MapIterator& b) const { | 87 bool EqualIterator(const MapIterator& a, const MapIterator& b) const { |
| 88 return false; | 88 return false; |
| 89 } | 89 } |
| 90 int size() const { return 0; } | 90 int size() const { return 0; } |
| 91 void MapBegin(MapIterator* map_iter) const {} | 91 void MapBegin(MapIterator* map_iter) const {} |
| (...skipping 393 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 485 Expect(map_field_.get(), REPEATED_DIRTY, 1, 1, false); | 485 Expect(map_field_.get(), REPEATED_DIRTY, 1, 1, false); |
| 486 } else { | 486 } else { |
| 487 Expect(map_field_.get(), REPEATED_DIRTY, 0, 1, false); | 487 Expect(map_field_.get(), REPEATED_DIRTY, 0, 1, false); |
| 488 } | 488 } |
| 489 } | 489 } |
| 490 | 490 |
| 491 | 491 |
| 492 } // namespace internal | 492 } // namespace internal |
| 493 } // namespace protobuf | 493 } // namespace protobuf |
| 494 } // namespace google | 494 } // namespace google |
| OLD | NEW |