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

Class Diff

tools/ktx/command_compare.cpp:76–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74
75template <typename T>
76struct Diff : public DiffBase<T> {
77 Diff(const std::string_view textHeaderIn, const std::string_view jsonPathIn,
78 const std::optional<T>& value1, const std::optional<T>& value2)
79 : DiffBase<T>(textHeaderIn, jsonPathIn, value1, value2) {}
80
81 Diff(const std::string_view textHeaderIn, const std::string_view jsonPathIn,
82 const T& value1, const T& value2)
83 : DiffBase<T>(textHeaderIn, jsonPathIn, value1, value2) {}
84
85 virtual std::string value(std::size_t index, OutputFormat) const override {
86 return fmt::format("{}", DiffBase<T>::rawValue(index));
87 }
88};
89
90struct DiffIdentifier : public DiffBase<std::array<uint8_t, sizeof(KTX_header2::identifier)>> {
91 DiffIdentifier(const std::string_view textHeaderIn, const std::string_view jsonPathIn,

Callers 5

compareHeaderMethod · 0.85
compareLevelIndexMethod · 0.85
compareDFDMethod · 0.85
compareDFDBasicMethod · 0.85
compareSGDMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected