mirror of
https://github.com/JakubMelka/PDF4QT.git
synced 2025-06-05 21:59:17 +02:00
Info tool about page boxes
This commit is contained in:
@ -284,6 +284,12 @@ void PDFClosedIntervalSet::addInterval(PDFInteger low, PDFInteger high)
|
||||
normalize();
|
||||
}
|
||||
|
||||
void PDFClosedIntervalSet::merge(const PDFClosedIntervalSet& other)
|
||||
{
|
||||
m_intervals.insert(m_intervals.end(), other.m_intervals.cbegin(), other.m_intervals.cend());
|
||||
normalize();
|
||||
}
|
||||
|
||||
bool PDFClosedIntervalSet::isCovered(PDFInteger low, PDFInteger high)
|
||||
{
|
||||
PDFClosedIntervalSet temporary;
|
||||
|
@ -604,6 +604,9 @@ public:
|
||||
/// \param value Value
|
||||
void addValue(PDFInteger value) { addInterval(value, value); }
|
||||
|
||||
/// Merge with other interval set
|
||||
void merge(const PDFClosedIntervalSet& other);
|
||||
|
||||
/// Returns true, if given closed range is subset of
|
||||
/// this interval set.
|
||||
bool isCovered(PDFInteger low, PDFInteger high);
|
||||
|
Reference in New Issue
Block a user