diff options
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. |