Introduce rtengine/noncopyable.hpp

This commit is contained in:
Flössie
2016-10-08 15:36:44 +02:00
parent 8a2b2e6700
commit d132149a26
20 changed files with 142 additions and 105 deletions

View File

@@ -24,11 +24,14 @@
#include <glibmm/ustring.h>
#include "../rtengine/noncopyable.h"
#include "threadutils.h"
class Thumbnail;
class CacheManager
class CacheManager :
public rtengine::NonCopyable
{
private:
using Entries = std::map<std::string, Thumbnail*>;
@@ -41,12 +44,7 @@ private:
void applyCacheSizeLimitation () const;
CacheManager () = default;
CacheManager (const CacheManager&) = delete;
CacheManager& operator= (const CacheManager&) = delete;
public:
static CacheManager* getInstance ();
void init ();
@@ -69,7 +67,6 @@ public:
const Glib::ustring& fname,
const Glib::ustring& fext,
const Glib::ustring& md5) const;
};
#define cacheMgr CacheManager::getInstance()