Go to the documentation of this file.
33 #ifndef GOOGLE_PROTOBUF_UTIL_FIELD_COMPARATOR_H__
34 #define GOOGLE_PROTOBUF_UTIL_FIELD_COMPARATOR_H__
42 #include <google/protobuf/port_def.inc>
54 class MessageDifferencer;
87 virtual ComparisonResult Compare(
const Message& message_1,
116 ComparisonResult Compare(
const Message& message_1,
const Message& message_2,
122 float_comparison_ = float_comparison;
131 treat_nan_as_equal_ = treat_nan_as_equal;
151 void SetDefaultFractionAndMargin(
double fraction,
double margin);
179 return value_1 == value_2;
197 return value_1 == value_2;
202 return value_1 == value_2;
207 return value_1 == value_2;
212 return value_1 == value_2;
217 return value_1 == value_2;
223 template <
typename T>
228 ComparisonResult ResultFromBoolean(
bool boolean_result)
const;
258 #include <google/protobuf/port_undef.inc>
260 #endif // GOOGLE_PROTOBUF_UTIL_FIELD_COMPARATOR_H__
bool CompareUInt32(const FieldDescriptor &, uint32 value_1, uint32 value_2)
#define GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(TypeName)
void set_treat_nan_as_equal(bool treat_nan_as_equal)
GLsizei const GLchar *const * string
#define T(upbtypeconst, upbtype, ctype, default_value)
Tolerance(double f, double m)
FloatComparison float_comparison_
ToleranceMap map_tolerance_
bool CompareUInt64(const FieldDescriptor &, uint64 value_1, uint64 value_2)
struct EnumValueDescriptor EnumValueDescriptor
bool CompareInt64(const FieldDescriptor &, int64 value_1, int64 value_2)
const FieldDescriptor * field
Tolerance default_tolerance_
std::map< const FieldDescriptor *, Tolerance > ToleranceMap
bool CompareInt32(const FieldDescriptor &, int32 value_1, int32 value_2)
const upb_json_parsermethod * m
void set_float_comparison(FloatComparison float_comparison)
bool CompareBool(const FieldDescriptor &, bool value_1, bool value_2)
bool has_default_tolerance_
bool CompareString(const FieldDescriptor &, const std::string &value_1, const std::string &value_2)
FloatComparison float_comparison() const
bool treat_nan_as_equal() const
libaditof
Author(s):
autogenerated on Wed May 21 2025 02:06:51