#include <message_differencer.h>
Classes | |
class | IgnoreCriteria |
class | MapEntryKeyComparator |
class | MapKeyComparator |
class | MultipleFieldsMapKeyComparator |
class | Reporter |
struct | SpecificField |
class | StreamReporter |
class | UnpackAnyField |
Public Types | |
enum | FloatComparison { EXACT, APPROXIMATE, EXACT, APPROXIMATE } |
enum | FloatComparison { EXACT, APPROXIMATE, EXACT, APPROXIMATE } |
enum | MessageFieldComparison { EQUAL, EQUIVALENT, EQUAL, EQUIVALENT } |
enum | MessageFieldComparison { EQUAL, EQUIVALENT, EQUAL, EQUIVALENT } |
enum | RepeatedFieldComparison { AS_LIST, AS_SET, AS_SMART_LIST, AS_SMART_SET, AS_LIST, AS_SET, AS_SMART_LIST, AS_SMART_SET } |
enum | RepeatedFieldComparison { AS_LIST, AS_SET, AS_SMART_LIST, AS_SMART_SET, AS_LIST, AS_SET, AS_SMART_LIST, AS_SMART_SET } |
enum | Scope { FULL, PARTIAL, FULL, PARTIAL } |
enum | Scope { FULL, PARTIAL, FULL, PARTIAL } |
Static Public Member Functions | |
static bool | ApproximatelyEquals (const Message &message1, const Message &message2) |
static bool | ApproximatelyEquals (const Message &message1, const Message &message2) |
static bool | ApproximatelyEquivalent (const Message &message1, const Message &message2) |
static bool | ApproximatelyEquivalent (const Message &message1, const Message &message2) |
static bool | Equals (const Message &message1, const Message &message2) |
static bool | Equals (const Message &message1, const Message &message2) |
static bool | Equivalent (const Message &message1, const Message &message2) |
static bool | Equivalent (const Message &message1, const Message &message2) |
Private Types | |
enum | { kFCDefault, kFCBase } |
typedef std::map< const FieldDescriptor *, const MapKeyComparator * > | FieldKeyComparatorMap |
typedef std::map< const FieldDescriptor *, const MapKeyComparator * > | FieldKeyComparatorMap |
typedef std::map< const FieldDescriptor *, RepeatedFieldComparison > | FieldMap |
typedef std::map< const FieldDescriptor *, RepeatedFieldComparison > | FieldMap |
typedef std::set< const FieldDescriptor * > | FieldSet |
typedef std::set< const FieldDescriptor * > | FieldSet |
Static Private Member Functions | |
static bool | CheckPathChanged (const std::vector< SpecificField > &parent_fields) |
static bool | CheckPathChanged (const std::vector< SpecificField > &parent_fields) |
static bool | FieldBefore (const FieldDescriptor *field1, const FieldDescriptor *field2) |
static bool | FieldBefore (const FieldDescriptor *field1, const FieldDescriptor *field2) |
Friends | |
class | DefaultFieldComparator |
class | SimpleFieldComparator |
Definition at line 120 of file bloaty/third_party/protobuf/src/google/protobuf/util/message_differencer.h.
|
private |
Definition at line 854 of file bloaty/third_party/protobuf/src/google/protobuf/util/message_differencer.h.
|
private |
Definition at line 905 of file protobuf/src/google/protobuf/util/message_differencer.h.
|
private |
Definition at line 859 of file bloaty/third_party/protobuf/src/google/protobuf/util/message_differencer.h.
|
private |
Definition at line 910 of file protobuf/src/google/protobuf/util/message_differencer.h.
|
private |
Definition at line 858 of file bloaty/third_party/protobuf/src/google/protobuf/util/message_differencer.h.
|
private |
Definition at line 909 of file protobuf/src/google/protobuf/util/message_differencer.h.
|
private |
Enumerator | |
---|---|
kFCDefault | |
kFCBase |
Definition at line 938 of file protobuf/src/google/protobuf/util/message_differencer.h.
Enumerator | |
---|---|
EXACT | |
APPROXIMATE | |
EXACT | |
APPROXIMATE |
Definition at line 367 of file bloaty/third_party/protobuf/src/google/protobuf/util/message_differencer.h.
Enumerator | |
---|---|
EXACT | |
APPROXIMATE | |
EXACT | |
APPROXIMATE |
Definition at line 376 of file protobuf/src/google/protobuf/util/message_differencer.h.
Enumerator | |
---|---|
EQUAL | |
EQUIVALENT | |
EQUAL | |
EQUIVALENT |
Definition at line 350 of file bloaty/third_party/protobuf/src/google/protobuf/util/message_differencer.h.
Enumerator | |
---|---|
EQUAL | |
EQUIVALENT | |
EQUAL | |
EQUIVALENT |
Definition at line 359 of file protobuf/src/google/protobuf/util/message_differencer.h.
Enumerator | |
---|---|
AS_LIST | |
AS_SET | |
AS_SMART_LIST | |
AS_SMART_SET | |
AS_LIST | |
AS_SET | |
AS_SMART_LIST | |
AS_SMART_SET |
Definition at line 373 of file bloaty/third_party/protobuf/src/google/protobuf/util/message_differencer.h.
Enumerator | |
---|---|
AS_LIST | |
AS_SET | |
AS_SMART_LIST | |
AS_SMART_SET | |
AS_LIST | |
AS_SET | |
AS_SMART_LIST | |
AS_SMART_SET |
Definition at line 382 of file protobuf/src/google/protobuf/util/message_differencer.h.
Enumerator | |
---|---|
FULL | |
PARTIAL | |
FULL | |
PARTIAL |
Definition at line 359 of file bloaty/third_party/protobuf/src/google/protobuf/util/message_differencer.h.
Enumerator | |
---|---|
FULL | |
PARTIAL | |
FULL | |
PARTIAL |
Definition at line 368 of file protobuf/src/google/protobuf/util/message_differencer.h.
|
explicit |
Definition at line 264 of file bloaty/third_party/protobuf/src/google/protobuf/util/message_differencer.cc.
google::protobuf::util::MessageDifferencer::~MessageDifferencer | ( | ) |
Definition at line 278 of file bloaty/third_party/protobuf/src/google/protobuf/util/message_differencer.cc.
|
explicit |
google::protobuf::util::MessageDifferencer::~MessageDifferencer | ( | ) |
void google::protobuf::util::MessageDifferencer::AddIgnoreCriteria | ( | IgnoreCriteria * | ignore_criteria | ) |
Definition at line 435 of file bloaty/third_party/protobuf/src/google/protobuf/util/message_differencer.cc.
void google::protobuf::util::MessageDifferencer::AddIgnoreCriteria | ( | IgnoreCriteria * | ignore_criteria | ) |
|
static |
Definition at line 245 of file bloaty/third_party/protobuf/src/google/protobuf/util/message_differencer.cc.
|
static |
|
static |
Definition at line 253 of file bloaty/third_party/protobuf/src/google/protobuf/util/message_differencer.cc.
|
static |
|
staticprivate |
Definition at line 1113 of file bloaty/third_party/protobuf/src/google/protobuf/util/message_differencer.cc.
|
staticprivate |
|
private |
Definition at line 312 of file bloaty/third_party/protobuf/src/google/protobuf/util/message_differencer.cc.
|
private |
|
private |
Definition at line 667 of file bloaty/third_party/protobuf/src/google/protobuf/util/message_differencer.cc.
|
private |
bool google::protobuf::util::MessageDifferencer::Compare | ( | const Message & | message1, |
const Message & | message2 | ||
) |
Definition at line 481 of file bloaty/third_party/protobuf/src/google/protobuf/util/message_differencer.cc.
bool google::protobuf::util::MessageDifferencer::Compare | ( | const Message & | message1, |
const Message & | message2 | ||
) |
|
private |
Definition at line 546 of file bloaty/third_party/protobuf/src/google/protobuf/util/message_differencer.cc.
|
private |
|
private |
Definition at line 1062 of file bloaty/third_party/protobuf/src/google/protobuf/util/message_differencer.cc.
|
private |
|
private |
Definition at line 1070 of file bloaty/third_party/protobuf/src/google/protobuf/util/message_differencer.cc.
|
private |
|
private |
Definition at line 1047 of file protobuf/src/google/protobuf/util/message_differencer.cc.
|
private |
Definition at line 956 of file protobuf/src/google/protobuf/util/message_differencer.cc.
|
private |
Definition at line 915 of file bloaty/third_party/protobuf/src/google/protobuf/util/message_differencer.cc.
|
private |
|
private |
Definition at line 1095 of file protobuf/src/google/protobuf/util/message_differencer.cc.
|
private |
Definition at line 628 of file bloaty/third_party/protobuf/src/google/protobuf/util/message_differencer.cc.
|
private |
|
private |
Definition at line 1249 of file bloaty/third_party/protobuf/src/google/protobuf/util/message_differencer.cc.
|
private |
bool google::protobuf::util::MessageDifferencer::CompareWithFields | ( | const Message & | message1, |
const Message & | message2, | ||
const std::vector< const FieldDescriptor * > & | message1_fields, | ||
const std::vector< const FieldDescriptor * > & | message2_fields | ||
) |
Definition at line 501 of file bloaty/third_party/protobuf/src/google/protobuf/util/message_differencer.cc.
bool google::protobuf::util::MessageDifferencer::CompareWithFields | ( | const Message & | message1, |
const Message & | message2, | ||
const std::vector< const FieldDescriptor * > & | message1_fields, | ||
const std::vector< const FieldDescriptor * > & | message2_fields | ||
) |
|
private |
Definition at line 704 of file bloaty/third_party/protobuf/src/google/protobuf/util/message_differencer.cc.
|
private |
MessageDifferencer::MapKeyComparator * google::protobuf::util::MessageDifferencer::CreateMultipleFieldsMapKeyComparator | ( | const std::vector< std::vector< const FieldDescriptor * > > & | key_field_paths | ) |
Definition at line 1966 of file bloaty/third_party/protobuf/src/google/protobuf/util/message_differencer.cc.
MapKeyComparator* google::protobuf::util::MessageDifferencer::CreateMultipleFieldsMapKeyComparator | ( | const std::vector< std::vector< const FieldDescriptor * > > & | key_field_paths | ) |
|
static |
Definition at line 230 of file bloaty/third_party/protobuf/src/google/protobuf/util/message_differencer.cc.
|
static |
|
static |
Definition at line 237 of file bloaty/third_party/protobuf/src/google/protobuf/util/message_differencer.cc.
|
static |
|
staticprivate |
Definition at line 465 of file bloaty/third_party/protobuf/src/google/protobuf/util/message_differencer.cc.
|
staticprivate |
|
private |
Definition at line 1713 of file bloaty/third_party/protobuf/src/google/protobuf/util/message_differencer.cc.
|
private |
|
private |
Definition at line 1185 of file bloaty/third_party/protobuf/src/google/protobuf/util/message_differencer.cc.
|
private |
|
private |
|
private |
void google::protobuf::util::MessageDifferencer::IgnoreField | ( | const FieldDescriptor * | field | ) |
Definition at line 439 of file bloaty/third_party/protobuf/src/google/protobuf/util/message_differencer.cc.
void google::protobuf::util::MessageDifferencer::IgnoreField | ( | const FieldDescriptor * | field | ) |
|
private |
Definition at line 1155 of file bloaty/third_party/protobuf/src/google/protobuf/util/message_differencer.cc.
|
private |
|
private |
Definition at line 872 of file bloaty/third_party/protobuf/src/google/protobuf/util/message_differencer.cc.
|
private |
|
private |
Definition at line 1123 of file bloaty/third_party/protobuf/src/google/protobuf/util/message_differencer.cc.
|
private |
|
private |
Definition at line 1141 of file bloaty/third_party/protobuf/src/google/protobuf/util/message_differencer.cc.
|
private |
|
private |
Definition at line 1132 of file bloaty/third_party/protobuf/src/google/protobuf/util/message_differencer.cc.
|
private |
|
private |
Definition at line 1150 of file bloaty/third_party/protobuf/src/google/protobuf/util/message_differencer.cc.
|
private |
|
private |
Definition at line 1171 of file bloaty/third_party/protobuf/src/google/protobuf/util/message_differencer.cc.
|
private |
|
private |
Definition at line 1577 of file bloaty/third_party/protobuf/src/google/protobuf/util/message_differencer.cc.
|
private |
MessageDifferencer::RepeatedFieldComparison google::protobuf::util::MessageDifferencer::repeated_field_comparison | ( | ) |
Definition at line 350 of file protobuf/src/google/protobuf/util/message_differencer.cc.
void google::protobuf::util::MessageDifferencer::ReportDifferencesTo | ( | Reporter * | reporter | ) |
Definition at line 455 of file bloaty/third_party/protobuf/src/google/protobuf/util/message_differencer.cc.
void google::protobuf::util::MessageDifferencer::ReportDifferencesTo | ( | Reporter * | reporter | ) |
void google::protobuf::util::MessageDifferencer::ReportDifferencesToString | ( | std::string * | output | ) |
Definition at line 448 of file bloaty/third_party/protobuf/src/google/protobuf/util/message_differencer.cc.
void google::protobuf::util::MessageDifferencer::ReportDifferencesToString | ( | std::string * | output | ) |
|
private |
Definition at line 597 of file bloaty/third_party/protobuf/src/google/protobuf/util/message_differencer.cc.
|
private |
MessageDifferencer::Scope google::protobuf::util::MessageDifferencer::scope | ( | ) |
Definition at line 299 of file bloaty/third_party/protobuf/src/google/protobuf/util/message_differencer.cc.
Scope google::protobuf::util::MessageDifferencer::scope | ( | ) |
void google::protobuf::util::MessageDifferencer::set_field_comparator | ( | FieldComparator * | comparator | ) |
Definition at line 287 of file bloaty/third_party/protobuf/src/google/protobuf/util/message_differencer.cc.
void google::protobuf::util::MessageDifferencer::set_field_comparator | ( | FieldComparator * | comparator | ) |
void google::protobuf::util::MessageDifferencer::set_float_comparison | ( | FloatComparison | comparison | ) |
Definition at line 301 of file bloaty/third_party/protobuf/src/google/protobuf/util/message_differencer.cc.
void google::protobuf::util::MessageDifferencer::set_float_comparison | ( | FloatComparison | comparison | ) |
void google::protobuf::util::MessageDifferencer::set_message_field_comparison | ( | MessageFieldComparison | comparison | ) |
Definition at line 292 of file bloaty/third_party/protobuf/src/google/protobuf/util/message_differencer.cc.
void google::protobuf::util::MessageDifferencer::set_message_field_comparison | ( | MessageFieldComparison | comparison | ) |
void google::protobuf::util::MessageDifferencer::set_repeated_field_comparison | ( | RepeatedFieldComparison | comparison | ) |
Definition at line 307 of file bloaty/third_party/protobuf/src/google/protobuf/util/message_differencer.cc.
void google::protobuf::util::MessageDifferencer::set_repeated_field_comparison | ( | RepeatedFieldComparison | comparison | ) |
|
inline |
Definition at line 548 of file bloaty/third_party/protobuf/src/google/protobuf/util/message_differencer.h.
|
inline |
Definition at line 560 of file protobuf/src/google/protobuf/util/message_differencer.h.
|
inline |
Definition at line 537 of file bloaty/third_party/protobuf/src/google/protobuf/util/message_differencer.h.
|
inline |
Definition at line 549 of file protobuf/src/google/protobuf/util/message_differencer.h.
|
inline |
Definition at line 544 of file bloaty/third_party/protobuf/src/google/protobuf/util/message_differencer.h.
|
inline |
Definition at line 556 of file protobuf/src/google/protobuf/util/message_differencer.h.
void google::protobuf::util::MessageDifferencer::set_scope | ( | Scope | scope | ) |
Definition at line 297 of file bloaty/third_party/protobuf/src/google/protobuf/util/message_differencer.cc.
void google::protobuf::util::MessageDifferencer::set_scope | ( | Scope | scope | ) |
void google::protobuf::util::MessageDifferencer::SetFractionAndMargin | ( | const FieldDescriptor * | field, |
double | fraction, | ||
double | margin | ||
) |
Definition at line 443 of file bloaty/third_party/protobuf/src/google/protobuf/util/message_differencer.cc.
void google::protobuf::util::MessageDifferencer::SetFractionAndMargin | ( | const FieldDescriptor * | field, |
double | fraction, | ||
double | margin | ||
) |
|
private |
Definition at line 340 of file bloaty/third_party/protobuf/src/google/protobuf/util/message_differencer.cc.
|
private |
void google::protobuf::util::MessageDifferencer::TreatAsList | ( | const FieldDescriptor * | field | ) |
Definition at line 345 of file bloaty/third_party/protobuf/src/google/protobuf/util/message_differencer.cc.
void google::protobuf::util::MessageDifferencer::TreatAsList | ( | const FieldDescriptor * | field | ) |
void google::protobuf::util::MessageDifferencer::TreatAsMap | ( | const FieldDescriptor * | field, |
const FieldDescriptor * | key | ||
) |
Definition at line 355 of file bloaty/third_party/protobuf/src/google/protobuf/util/message_differencer.cc.
void google::protobuf::util::MessageDifferencer::TreatAsMap | ( | const FieldDescriptor * | field, |
const FieldDescriptor * | key | ||
) |
void google::protobuf::util::MessageDifferencer::TreatAsMapUsingKeyComparator | ( | const FieldDescriptor * | field, |
const MapKeyComparator * | key_comparator | ||
) |
Definition at line 423 of file bloaty/third_party/protobuf/src/google/protobuf/util/message_differencer.cc.
void google::protobuf::util::MessageDifferencer::TreatAsMapUsingKeyComparator | ( | const FieldDescriptor * | field, |
const MapKeyComparator * | key_comparator | ||
) |
void google::protobuf::util::MessageDifferencer::TreatAsMapWithMultipleFieldPathsAsKey | ( | const FieldDescriptor * | field, |
const std::vector< std::vector< const FieldDescriptor * > > & | key_field_paths | ||
) |
Definition at line 386 of file bloaty/third_party/protobuf/src/google/protobuf/util/message_differencer.cc.
void google::protobuf::util::MessageDifferencer::TreatAsMapWithMultipleFieldPathsAsKey | ( | const FieldDescriptor * | field, |
const std::vector< std::vector< const FieldDescriptor * > > & | key_field_paths | ||
) |
void google::protobuf::util::MessageDifferencer::TreatAsMapWithMultipleFieldsAsKey | ( | const FieldDescriptor * | field, |
const std::vector< const FieldDescriptor * > & | key_fields | ||
) |
Definition at line 374 of file bloaty/third_party/protobuf/src/google/protobuf/util/message_differencer.cc.
void google::protobuf::util::MessageDifferencer::TreatAsMapWithMultipleFieldsAsKey | ( | const FieldDescriptor * | field, |
const std::vector< const FieldDescriptor * > & | key_fields | ||
) |
void google::protobuf::util::MessageDifferencer::TreatAsSet | ( | const FieldDescriptor * | field | ) |
Definition at line 330 of file bloaty/third_party/protobuf/src/google/protobuf/util/message_differencer.cc.
void google::protobuf::util::MessageDifferencer::TreatAsSet | ( | const FieldDescriptor * | field | ) |
void google::protobuf::util::MessageDifferencer::TreatAsSmartList | ( | const FieldDescriptor * | field | ) |
Definition at line 350 of file bloaty/third_party/protobuf/src/google/protobuf/util/message_differencer.cc.
void google::protobuf::util::MessageDifferencer::TreatAsSmartList | ( | const FieldDescriptor * | field | ) |
void google::protobuf::util::MessageDifferencer::TreatAsSmartSet | ( | const FieldDescriptor * | field | ) |
Definition at line 335 of file bloaty/third_party/protobuf/src/google/protobuf/util/message_differencer.cc.
void google::protobuf::util::MessageDifferencer::TreatAsSmartSet | ( | const FieldDescriptor * | field | ) |
|
private |
Definition at line 1215 of file bloaty/third_party/protobuf/src/google/protobuf/util/message_differencer.cc.
|
friend |
Definition at line 683 of file bloaty/third_party/protobuf/src/google/protobuf/util/message_differencer.h.
|
friend |
Definition at line 718 of file protobuf/src/google/protobuf/util/message_differencer.h.
FieldComparator* google::protobuf::util::MessageDifferencer::base |
Definition at line 936 of file protobuf/src/google/protobuf/util/message_differencer.h.
|
private |
Definition at line 862 of file bloaty/third_party/protobuf/src/google/protobuf/util/message_differencer.h.
DefaultFieldComparator* google::protobuf::util::MessageDifferencer::default_impl |
Definition at line 935 of file protobuf/src/google/protobuf/util/message_differencer.h.
|
private |
Definition at line 894 of file bloaty/third_party/protobuf/src/google/protobuf/util/message_differencer.h.
|
private |
Definition at line 863 of file bloaty/third_party/protobuf/src/google/protobuf/util/message_differencer.h.
union { ... } google::protobuf::util::MessageDifferencer::field_comparator_ |
enum { ... } google::protobuf::util::MessageDifferencer::field_comparator_kind_ |
|
private |
Definition at line 878 of file bloaty/third_party/protobuf/src/google/protobuf/util/message_differencer.h.
|
private |
Definition at line 882 of file bloaty/third_party/protobuf/src/google/protobuf/util/message_differencer.h.
|
private |
Definition at line 877 of file bloaty/third_party/protobuf/src/google/protobuf/util/message_differencer.h.
|
private |
Definition at line 876 of file bloaty/third_party/protobuf/src/google/protobuf/util/message_differencer.h.
|
private |
Definition at line 892 of file bloaty/third_party/protobuf/src/google/protobuf/util/message_differencer.h.
|
private |
Definition at line 864 of file bloaty/third_party/protobuf/src/google/protobuf/util/message_differencer.h.
|
private |
Definition at line 888 of file bloaty/third_party/protobuf/src/google/protobuf/util/message_differencer.h.
|
private |
Definition at line 875 of file bloaty/third_party/protobuf/src/google/protobuf/util/message_differencer.h.
|
private |
Definition at line 866 of file bloaty/third_party/protobuf/src/google/protobuf/util/message_differencer.h.
|
private |
Definition at line 868 of file bloaty/third_party/protobuf/src/google/protobuf/util/message_differencer.h.
|
private |
Definition at line 886 of file bloaty/third_party/protobuf/src/google/protobuf/util/message_differencer.h.
|
private |
Definition at line 884 of file bloaty/third_party/protobuf/src/google/protobuf/util/message_differencer.h.
|
private |
Definition at line 885 of file bloaty/third_party/protobuf/src/google/protobuf/util/message_differencer.h.
|
private |
Definition at line 861 of file bloaty/third_party/protobuf/src/google/protobuf/util/message_differencer.h.
|
private |
Definition at line 865 of file bloaty/third_party/protobuf/src/google/protobuf/util/message_differencer.h.
|
private |
Definition at line 880 of file bloaty/third_party/protobuf/src/google/protobuf/util/message_differencer.h.
|
private |
Definition at line 950 of file protobuf/src/google/protobuf/util/message_differencer.h.