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

@@ -7,16 +7,16 @@
#include "cache.h"
#include "alignedbuffer.h"
#include "noncopyable.h"
namespace rtengine
{
class HaldCLUT
class HaldCLUT final :
public NonCopyable
{
public:
HaldCLUT();
HaldCLUT(const HaldCLUT& other) = delete;
HaldCLUT& operator =(const HaldCLUT& other) = delete;
~HaldCLUT();
bool load(const Glib::ustring& filename);
@@ -51,14 +51,12 @@ private:
Glib::ustring clut_profile;
};
class CLUTStore
class CLUTStore final :
public NonCopyable
{
public:
static CLUTStore& getInstance();
CLUTStore(const CLUTStore& other) = delete;
CLUTStore& operator =(const CLUTStore& other) = delete;
std::shared_ptr<HaldCLUT> getClut(const Glib::ustring& filename);
void clearCache();