diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-01-23 15:35:24 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-01-23 15:35:24 +0100 |
| commit | 6c37cc1979b2a01205a888c4c98f3334685ee8dd (patch) | |
| tree | 9de52a3053e57bdf79a7986319cb097b33e46b5c /src/transfer_function.h | |
| parent | b75d977a38f039fd68ed5d4055ae70b4bf631603 (diff) | |
Tidying.
Diffstat (limited to 'src/transfer_function.h')
| -rw-r--r-- | src/transfer_function.h | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/src/transfer_function.h b/src/transfer_function.h index 52624c66..508ff934 100644 --- a/src/transfer_function.h +++ b/src/transfer_function.h @@ -1,5 +1,5 @@ /* - Copyright (C) 2012-2014 Carl Hetherington <cth@carlh.net> + Copyright (C) 2012-2021 Carl Hetherington <cth@carlh.net> This file is part of libdcp. @@ -31,26 +31,35 @@ files in the program, then also delete it here. */ + /** @file src/transfer_function.h * @brief TransferFunction class. */ + #ifndef LIBDCP_TRANSFER_FUNCTION_H #define LIBDCP_TRANSFER_FUNCTION_H -#include <boost/noncopyable.hpp> -#include <memory> + #include <boost/thread/mutex.hpp> #include <map> +#include <memory> + namespace dcp { + /** @class TransferFunction * @brief A transfer function represented by a lookup table. */ -class TransferFunction : public boost::noncopyable +class TransferFunction { public: + TransferFunction () {} + + TransferFunction (TransferFunction const&) = delete; + TransferFunction& operator= (TransferFunction const&) = delete; + virtual ~TransferFunction (); /** @return A look-up table (of size 2^bit_depth) whose values range from 0 to 1 */ @@ -68,6 +77,8 @@ private: mutable boost::mutex _mutex; }; + } + #endif |
