Commit 53f7a5f8 authored by thomas.forbriger's avatar thomas.forbriger Committed by thomas.forbriger
Browse files

provide default constructor and copy operator

This is a legacy commit from before 2015-03-01.
It may be incomplete as well as inconsistent.
See COPYING.legacy and README.history for details.


SVN Path:     http://gpitrsvn.gpi.uni-karlsruhe.de/repos/TFSoftware/trunk
SVN Revision: 3968
SVN UUID:     67feda4a-a26e-11df-9d6e-31afc202ad0c
parent 1818dfc5
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
* *
* REVISIONS and CHANGES * REVISIONS and CHANGES
* - 16/05/2011 V1.0 Thomas Forbriger * - 16/05/2011 V1.0 Thomas Forbriger
* - 27/05/2011 V1.1 test copy constructor * - 27/05/2011 V1.1 test copy constructor and default constructor
* *
* ============================================================================ * ============================================================================
*/ */
...@@ -307,7 +307,8 @@ int main(int iargc, char* argv[]) ...@@ -307,7 +307,8 @@ int main(int iargc, char* argv[])
{ {
// prepare array engine // prepare array engine
if (opt.verbose) { cout << "create FFT array engine" << endl; } if (opt.verbose) { cout << "create FFT array engine" << endl; }
fourier::fft::DRFFTWAFFArrayEngine primaryengine(ntraces, nsamples); fourier::fft::DRFFTWAFFArrayEngine primaryengine;
primaryengine=fourier::fft::DRFFTWAFFArrayEngine(ntraces, nsamples);
fourier::fft::DRFFTWAFFArrayEngine engine(primaryengine); fourier::fft::DRFFTWAFFArrayEngine engine(primaryengine);
if (opt.verbose) if (opt.verbose)
......
...@@ -30,7 +30,8 @@ ...@@ -30,7 +30,8 @@
* REVISIONS and CHANGES * REVISIONS and CHANGES
* - 13/05/2011 V1.0 Thomas Forbriger * - 13/05/2011 V1.0 Thomas Forbriger
* - 27/05/2011 V1.1 added copy constructor (required for class member * - 27/05/2011 V1.1 added copy constructor (required for class member
* initialization) * initialization) and default constructor and
* assignment operator
* *
* ============================================================================ * ============================================================================
*/ */
...@@ -76,6 +77,24 @@ namespace fourier { ...@@ -76,6 +77,24 @@ namespace fourier {
/*----------------------------------------------------------------------*/ /*----------------------------------------------------------------------*/
DRFFTWAFFArrayEngine::DRFFTWAFFArrayEngine()
: Mseriesarray(TAseries(aff::Shaper(0,4-1)(0,0))),
Mspectrumarray(TAspectrum(aff::Shaper(0,DRFFTWAFFArrayEngine::ncoeff(4)-1)(0,0))),
Mplanr2c(0), Mplanc2r(0)
{ }
/*----------------------------------------------------------------------*/
DRFFTWAFFArrayEngine& DRFFTWAFFArrayEngine::operator=(const DRFFTWAFFArrayEngine& e)
{
this->delete_plans();
Mseriesarray=e.Mseriesarray;
Mspectrumarray=e.Mspectrumarray;
return (*this);
} // DRFFTWAFFArrayEngine& DRFFTWAFFArrayEngine::operator=(const DRFFTWAFFArrayEngine& e)
/*----------------------------------------------------------------------*/
//! delete plan. //! delete plan.
DRFFTWAFFArrayEngine::~DRFFTWAFFArrayEngine() DRFFTWAFFArrayEngine::~DRFFTWAFFArrayEngine()
{ {
......
...@@ -31,7 +31,8 @@ ...@@ -31,7 +31,8 @@
* REVISIONS and CHANGES * REVISIONS and CHANGES
* - 13/05/2011 V1.0 Thomas Forbriger * - 13/05/2011 V1.0 Thomas Forbriger
* - 27/05/2011 V1.1 added copy constructor (required for class member * - 27/05/2011 V1.1 added copy constructor (required for class member
* initialization) * initialization) and default constructor and
* assignment operator
* *
* ============================================================================ * ============================================================================
*/ */
...@@ -97,6 +98,8 @@ namespace fourier { ...@@ -97,6 +98,8 @@ namespace fourier {
DRFFTWAFFArrayEngine(const TAseries& series, DRFFTWAFFArrayEngine(const TAseries& series,
const TAspectrum& spec); const TAspectrum& spec);
DRFFTWAFFArrayEngine(const DRFFTWAFFArrayEngine& engine); DRFFTWAFFArrayEngine(const DRFFTWAFFArrayEngine& engine);
DRFFTWAFFArrayEngine();
DRFFTWAFFArrayEngine& operator=(const DRFFTWAFFArrayEngine& e);
~DRFFTWAFFArrayEngine(); ~DRFFTWAFFArrayEngine();
void r2c(); void r2c();
void c2r(); void c2r();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment