diff options
author | Jay Berkenbilt <ejb@ql.org> | 2022-09-07 00:30:31 +0200 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2022-09-07 00:34:23 +0200 |
commit | c1def4ead4c578862ad6fcda35a9ca65be407893 (patch) | |
tree | 5695a6a6d782c0dfd4fa91e952a1d777ab8f067d /include | |
parent | d12734d76fb599c64a9b7fd6cc5a92dd1a90e0ee (diff) | |
download | qpdf-c1def4ead4c578862ad6fcda35a9ca65be407893.tar.zst |
Implement QPDFObjectHandle equality
Diffstat (limited to 'include')
-rw-r--r-- | include/qpdf/QPDFObjectHandle.hh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/qpdf/QPDFObjectHandle.hh b/include/qpdf/QPDFObjectHandle.hh index f26a7648..0730d8a3 100644 --- a/include/qpdf/QPDFObjectHandle.hh +++ b/include/qpdf/QPDFObjectHandle.hh @@ -334,6 +334,15 @@ class QPDFObjectHandle QPDF_DLL inline bool isInitialized() const; + // Two QPDFObjectHandle objects are equal if they point to exactly + // the same underlying object, meaning that changes to one are + // reflected in the other, or "if you paint one, the other one + // changes color." + QPDF_DLL + bool operator==(QPDFObjectHandle const&) const; + QPDF_DLL + bool operator!=(QPDFObjectHandle const&) const; + // Return type code and type name of underlying object. These are // useful for doing rapid type tests (like switch statements) or // for testing and debugging. |