Classes | Namespaces | Macros | Functions
protobuf/src/google/protobuf/util/message_differencer.cc File Reference
#include <google/protobuf/util/message_differencer.h>
#include <algorithm>
#include <cstddef>
#include <cstdint>
#include <functional>
#include <limits>
#include <memory>
#include <utility>
#include <google/protobuf/stubs/logging.h>
#include <google/protobuf/stubs/common.h>
#include <google/protobuf/stubs/stringprintf.h>
#include <google/protobuf/io/printer.h>
#include <google/protobuf/io/zero_copy_stream.h>
#include <google/protobuf/io/zero_copy_stream_impl.h>
#include <google/protobuf/descriptor.pb.h>
#include <google/protobuf/descriptor.h>
#include <google/protobuf/dynamic_message.h>
#include <google/protobuf/generated_enum_reflection.h>
#include <google/protobuf/map_field.h>
#include <google/protobuf/message.h>
#include <google/protobuf/text_format.h>
#include <google/protobuf/util/field_comparator.h>
#include <google/protobuf/stubs/strutil.h>
#include <google/protobuf/port_def.inc>
Include dependency graph for protobuf/src/google/protobuf/util/message_differencer.cc:

Go to the source code of this file.

Classes

class  google::protobuf::util::MessageDifferencer::MultipleFieldsMapKeyComparator
 
class  google::protobuf::util::NumDiffsReporter
 

Namespaces

 google
 
 google::protobuf
 
 google::protobuf::util
 

Macros

#define HANDLE_TYPE(CPPTYPE, METHOD, COMPAREMETHOD)
 

Functions

void google::protobuf::util::AddSpecificIndex (google::protobuf::util::MessageDifferencer::SpecificField *specific_field, const Message &message, const FieldDescriptor *field, int index)
 
void google::protobuf::util::AddSpecificNewIndex (google::protobuf::util::MessageDifferencer::SpecificField *specific_field, const Message &message, const FieldDescriptor *field, int index)
 
void google::protobuf::util::MatchIndicesPostProcessorForSmartList (std::vector< int > *match_list1, std::vector< int > *match_list2)
 

Macro Definition Documentation

◆ HANDLE_TYPE

#define HANDLE_TYPE (   CPPTYPE,
  METHOD,
  COMPAREMETHOD 
)
Value:
case FieldDescriptor::CPPTYPE_##CPPTYPE: { \
for (MapIterator it = reflection1->MapBegin( \
const_cast<Message*>(&message1), map_field), \
it_end = reflection1->MapEnd( \
const_cast<Message*>(&message1), map_field); \
it != it_end; ++it) { \
MapValueConstRef value2; \
reflection2->LookupMapValue(message2, map_field, it.GetKey(), &value2); \
if (!comparator->Compare##COMPAREMETHOD(*val_des, \
it.GetValueRef().Get##METHOD(), \
value2.Get##METHOD())) { \
return false; \
} \
} \
break; \
}

Variable Documentation

◆ cached_match_results_

std::map<std::pair<int, int>, bool> cached_match_results_
private

◆ count1_

int count1_
private

◆ count2_

int count2_
private

◆ match_callback_

NodeMatchCallback match_callback_
private

◆ match_list1_

std::vector<int>* match_list1_
private

◆ match_list2_

std::vector<int>* match_list2_
private
regen-readme.it
it
Definition: regen-readme.py:15
Message
Definition: protobuf/php/ext/google/protobuf/message.c:53


grpc
Author(s):
autogenerated on Fri May 16 2025 03:01:23