|
PoDoFo 0.9.20
|
#include <PdfPageTreeCache.h>
Public Member Functions | |
| PdfPageTreeCache (unsigned initialSize) | |
| PdfPage * | GetPage (unsigned index) |
| void | SetPage (unsigned atIndex, PdfPage *page) |
| void | SetPages (unsigned atIndex, const std::vector< PdfPage * > &pages) |
| void | InsertPlaceHolders (unsigned atIndex, unsigned count) |
| void | DeletePage (unsigned atIndex) |
| void | ClearCache () |
This class implements a cache infront of a PdfPageTree
| PdfPageTreeCache::PdfPageTreeCache | ( | unsigned | initialSize | ) |
Construct a new PdfCachedPagesTree.
| nInitialSize | initial size of the pagestree |
| void PdfPageTreeCache::ClearCache | ( | ) |
Clear cache, i.e. remove all elements from the cache.
| void PdfPageTreeCache::DeletePage | ( | unsigned | atIndex | ) |
Delete a PdfPage from the cache
| atIndex | index of the page |
| PdfPage * PdfPageTreeCache::GetPage | ( | unsigned | index | ) |
Return a PdfPage for the specified Page index The returned page is owned by the pages tree and deleted along with it.
| atIndex | page index, 0-based |
| void PdfPageTreeCache::InsertPlaceHolders | ( | unsigned | atIndex, |
| unsigned | count ) |
Insert several page placeholders at the given index therefore the cache has to be updated
| atIndex | zero based index of the page we are inserting |
| count | number of pages that were inserted |
| void PdfPageTreeCache::SetPage | ( | unsigned | atIndex, |
| PdfPage * | page ) |
Set a PdfPage object in the cache at the given index. Existing object will be replaced
| atIndex | index of the page |
| page | page object |