diff options
author | Jay Berkenbilt <ejb@ql.org> | 2019-08-18 00:54:24 +0200 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2019-08-18 05:02:41 +0200 |
commit | e83f3308fbccd34959d325b830118eafe441fe48 (patch) | |
tree | b3ac08e39da91a00b67e147bd05f5379789fcbe3 /include | |
parent | 04419d7c3269aa29ff669c8b5f3a7999edb44bea (diff) | |
download | qpdf-e83f3308fbccd34959d325b830118eafe441fe48.tar.zst |
SparseOHArray
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 28f6f491..ad542c09 100644 --- a/include/qpdf/QPDFObjectHandle.hh +++ b/include/qpdf/QPDFObjectHandle.hh @@ -275,6 +275,14 @@ class QPDFObjectHandle QPDF_DLL bool isReserved(); + // True for objects that are direct nulls or have previously been + // resolved to be nulls. Does not attempt to resolve objects. This + // is intended for internal use, but it can be used as an + // efficient way to check for nulls if you don't mind unresolved + // indirect nulls being false negatives. + QPDF_DLL + bool isResolvedNull() const; + // This returns true in addition to the query for the specific // type for indirect objects. QPDF_DLL @@ -926,6 +934,7 @@ class QPDFObjectHandle friend class QPDF_Dictionary; friend class QPDF_Array; friend class QPDF_Stream; + friend class SparseOHArray; private: static void releaseResolved(QPDFObjectHandle& o) { |