All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines
#include <DFFTPackCache.h>
Public Types | |
enum | Number { Real = 0, Complex = 1 } |
Public Member Functions | |
virtual int | byteCount () const |
virtual AbstractNumericalCache * | createCache () |
DFFTPackKey (int nSamples, Number number) | |
virtual int | hash () const |
int | nSamples () const |
Number | number () const |
virtual bool | operator== (const AbstractNumericalKey &o) |
GeopsyCore::DFFTPackKey::DFFTPackKey | ( | int | nSamples, |
Number | number | ||
) | [inline] |
References nSamples(), and number().
int GeopsyCore::DFFTPackKey::byteCount | ( | ) | const [inline, virtual] |
Implements QGpCoreTools::AbstractNumericalKey.
References Real.
AbstractNumericalCache * GeopsyCore::DFFTPackKey::createCache | ( | ) | [inline, virtual] |
Implements QGpCoreTools::AbstractNumericalKey.
{ return new DFFTPackCache(this); }
virtual int GeopsyCore::DFFTPackKey::hash | ( | ) | const [inline, virtual] |
Implements QGpCoreTools::AbstractNumericalKey.
{return _nSamples*(_number*2-1);}
int GeopsyCore::DFFTPackKey::nSamples | ( | ) | const [inline] |
Referenced by DFFTPackKey(), and GeopsyCore::DFFTPackCache::init().
{return _nSamples;}
Number GeopsyCore::DFFTPackKey::number | ( | ) | const [inline] |
Referenced by DFFTPackKey(), and GeopsyCore::DFFTPackCache::init().
{return _number;}
virtual bool GeopsyCore::DFFTPackKey::operator== | ( | const AbstractNumericalKey & | o | ) | [inline, virtual] |
Implements QGpCoreTools::AbstractNumericalKey.
{ const DFFTPackKey& mo=static_cast<const DFFTPackKey&>(o); return _nSamples==mo._nSamples && _number==mo._number; }