MCPcopy Create free account
hub / github.com/KhronosGroup/KTX-Software / DiffComplex

Method DiffComplex

tools/ktx/command_compare.cpp:390–398  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

388template <typename T>
389struct DiffComplex {
390 DiffComplex(const std::string_view textHeaderIn, const std::string_view jsonPathIn,
391 const std::optional<T>& value1, const std::optional<T>& value2)
392 : textHeader(textHeaderIn), jsonPath(jsonPathIn), values(),
393 different((value1.has_value() && value2.has_value())
394 ? value1->isDifferent(*value2)
395 : (!value1.has_value() || !value2.has_value()) ? true : false) {
396 values[0] = value1;
397 values[1] = value2;
398 }
399
400 DiffComplex(const std::string_view textHeaderIn, const std::string_view jsonPathIn,
401 const T& value1, const T& value2)

Callers

nothing calls this directly

Calls 1

isDifferentMethod · 0.45

Tested by

no test coverage detected