summaryrefslogtreecommitdiff
path: root/poppler/PopplerCache.cc
diff options
context:
space:
mode:
authorAlbert Astals Cid <aacid@kde.org>2009-06-09 22:39:19 +0200
committerAlbert Astals Cid <aacid@kde.org>2009-06-10 22:57:41 +0200
commita92b38836b1e4475d5a7a1b9cb8f3e9429cef275 (patch)
tree3844cb2703ff7dd6be53518c0b61accb1221721a /poppler/PopplerCache.cc
parent2cecdf922f4c8178b0e55d3ddf86c31f8be3313a (diff)
Correctly duplicate the cache on PostScriptFunction(PostScriptFunction *func)
Diffstat (limited to 'poppler/PopplerCache.cc')
-rw-r--r--poppler/PopplerCache.cc20
1 files changed, 20 insertions, 0 deletions
diff --git a/poppler/PopplerCache.cc b/poppler/PopplerCache.cc
index 10c5f99d..b0859aa3 100644
--- a/poppler/PopplerCache.cc
+++ b/poppler/PopplerCache.cc
@@ -80,3 +80,23 @@ void PopplerCache::put(PopplerCacheKey *key, PopplerCacheItem *item)
keys[0] = key;
items[0] = item;
}
+
+int PopplerCache::size()
+{
+ return cacheSize;
+}
+
+int PopplerCache::numberOfItems()
+{
+ return lastValidCacheIndex + 1;
+}
+
+PopplerCacheItem *PopplerCache::item(int index)
+{
+ return items[index];
+}
+
+PopplerCacheKey *PopplerCache::key(int index)
+{
+ return keys[index];
+}