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
12namespace pdftron {
13 namespace Common {
14
32{
33public:
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
static void AccessDocument(const UString &document_path)
static void InitializeRecentlyUsedCache(size_t num_documents, size_t max_absolute_space, double max_percentage_space)
static UString GetBitmapPathIfExists(const UString &document_path)
static void RemoveDocument(const UString &document_path)