Skip to content

Commit

Permalink
COMMON: Mark the Fourier Transform classes as noncopyable
Browse files Browse the repository at this point in the history
  • Loading branch information
DrMcCoy committed Oct 23, 2016
1 parent 2385eeb commit c2a8d4a
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
4 changes: 3 additions & 1 deletion src/common/dct.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,16 @@
#ifndef COMMON_DCT_H
#define COMMON_DCT_H

#include <boost/noncopyable.hpp>

#include "src/common/types.h"

namespace Common {

class RDFT;

/** (Inverse) Discrete Cosine Transforms. */
class DCT {
class DCT : boost::noncopyable {
public:
enum TransformType {
DCT_II,
Expand Down
4 changes: 3 additions & 1 deletion src/common/fft.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,16 @@
#ifndef COMMON_FFT_H
#define COMMON_FFT_H

#include <boost/noncopyable.hpp>

#include "src/common/types.h"

namespace Common {

struct Complex;

/** (Inverse) Fast Fourier Transform. */
class FFT {
class FFT : boost::noncopyable {
public:
FFT(int bits, bool inverse);
~FFT();
Expand Down
4 changes: 3 additions & 1 deletion src/common/mdct.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,16 @@
#ifndef COMMON_MDCT_H
#define COMMON_MDCT_H

#include <boost/noncopyable.hpp>

#include "src/common/types.h"

namespace Common {

class FFT;

/** (Inverse) Modified Discrete Cosine Transforms. */
class MDCT {
class MDCT : boost::noncopyable {
public:
MDCT(int bits, bool inverse, double scale);
~MDCT();
Expand Down
4 changes: 3 additions & 1 deletion src/common/rdft.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,16 @@
#ifndef COMMON_RDFT_H
#define COMMON_RDFT_H

#include <boost/noncopyable.hpp>

#include "src/common/types.h"

namespace Common {

class FFT;

/** (Inverse) Real Discrete Fourier Transform. */
class RDFT {
class RDFT : boost::noncopyable {
public:
enum TransformType {
DFT_R2C,
Expand Down

0 comments on commit c2a8d4a

Please sign in to comment.