2 /* This file is part of
3 * =================================================
5 * LyX, The Document Processor
6 * Copyright 1995 Matthias Ettrich.
7 * Copyright 1995-2000 The LyX Team.
9 * This file Copyright 2000 Baruch Even
10 * ================================================= */
15 #pragma implementation
18 #include "GraphicsCache.h"
21 GraphicsCache * GraphicsCache::singleton = 0;
25 GraphicsCache::getInstance()
28 singleton = new GraphicsCache;
35 GraphicsCache::~GraphicsCache()
42 GraphicsCache::addFile(string const & filename)
44 CacheType::const_iterator it = cache.find(filename);
46 if (it != cache.end()) {
55 GraphicsCache::removeFile(string const & filename)
57 CacheType::const_iterator it = cache.find(filename);
59 if (it != cache.end()) {