Loading...
Searching...
No Matches
RecentlyUsedCache.h
Go to the documentation of this file.
1//---------------------------------------------------------------------------------------
2// Copyright (c) 2001-2025 by Apryse Software Inc. All Rights Reserved.
3// Consult legal.txt regarding legal and license information.
4//---------------------------------------------------------------------------------------
5#ifndef PDFTRON_H_CPPCommonRecentlyUsedCache
6#define PDFTRON_H_CPPCommonRecentlyUsedCache
7
8#include <C/Common/TRN_RecentlyUsedCache.h>
9#include <Common/UString.h>
10#include <Common/Common.h>
11
12 namespace pdftron {
13 namespace Common {
14
31 class RecentlyUsedCache
32{
33 public:
39 static void RemoveDocument(const UString& document_path);
40
48 static void AccessDocument(const UString& document_path);
49
59 static UString GetBitmapPathIfExists(const UString& document_path);
60
67 static void ResetCache();
68
78 static void InitializeRecentlyUsedCache(size_t num_documents, size_t max_absolute_space, double max_percentage_space);
79};
80
81#include <Impl/RecentlyUsedCache.inl>
82
83 } // Common
84} // pdftron
85
86#endif // PDFTRON_H_CPPCommonRecentlyUsedCache
Common.h
UString.h
pdftron::Common::RecentlyUsedCache
Definition RecentlyUsedCache.h:32
pdftron::Common::RecentlyUsedCache::AccessDocument
static void AccessDocument(const UString &document_path)
pdftron::Common::RecentlyUsedCache::InitializeRecentlyUsedCache
static void InitializeRecentlyUsedCache(size_t num_documents, size_t max_absolute_space, double max_percentage_space)
pdftron::Common::RecentlyUsedCache::GetBitmapPathIfExists
static UString GetBitmapPathIfExists(const UString &document_path)
pdftron::Common::RecentlyUsedCache::ResetCache
static void ResetCache()
pdftron::Common::RecentlyUsedCache::RemoveDocument
static void RemoveDocument(const UString &document_path)
pdftron::UString
Definition UString.h:28
pdftron::Common
Definition ByteRange.h:15
pdftron
Definition BasicTypes.h:10