CLAM-Development
1.1
|
This class performs the sum of N Spectrum processing data objects. More...
#include <SpectrumAdder.hxx>
Public Member Functions | |
SpectrumAdder () | |
SpectrumAdder (const SpecAdderConfig &c) | |
~SpectrumAdder () | |
const ProcessingConfig & | GetConfig () const |
Configuration getter. | |
bool | Do (void) |
Supervised mode execution method (using ports) | |
bool | Do (Spectrum **inputs, Spectrum &out) |
bool | SetPrototypes (Spectrum **inputs, const Spectrum &out) |
Change the internal type state. | |
bool | SetPrototypes () |
bool | UnsetPrototypes () |
bool | MayDisableExecution () const |
This class performs the sum of N Spectrum processing data objects.
It Allows any possible attribute configuration in its inputs and in its output, but it performs faster when prototype configuration of the data is specified using SetPrototypes(...), in certain situations:
Possible optimisations (which require more states):
Definition at line 76 of file SpectrumAdder.hxx.
Definition at line 38 of file SpectrumAdder.cxx.
References CLAM::Processing::Configure().
CLAM::SpectrumAdder::SpectrumAdder | ( | const SpecAdderConfig & | c | ) |
Definition at line 49 of file SpectrumAdder.cxx.
References CLAM::Processing::Configure().
Definition at line 134 of file SpectrumAdder.cxx.
bool CLAM::SpectrumAdder::Do | ( | void | ) | [virtual] |
Supervised mode execution method (using ports)
Implements CLAM::Processing.
Definition at line 193 of file SpectrumAdder.cxx.
References CLAM_ASSERT.
bool CLAM::SpectrumAdder::Do | ( | Spectrum ** | inputs, |
Spectrum & | out | ||
) |
Definition at line 163 of file SpectrumAdder.cxx.
References CLAM_ASSERT, CLAM_DEBUG_ASSERT, and CLAM::Processing::IsRunning().
const ProcessingConfig& CLAM::SpectrumAdder::GetConfig | ( | ) | const [inline, virtual] |
Configuration getter.
Gets the configuration parameters used to create the object.
Reimplemented from CLAM::Processing.
Definition at line 140 of file SpectrumAdder.hxx.
bool CLAM::SpectrumAdder::MayDisableExecution | ( | ) | const [inline] |
Definition at line 160 of file SpectrumAdder.hxx.
bool CLAM::SpectrumAdder::SetPrototypes | ( | Spectrum ** | inputs, |
const Spectrum & | out | ||
) |
Change the internal type state.
Apart from prototype configuration, the Size, Scale and SpectralRange attributes of each Spectrum are also checked.
Definition at line 200 of file SpectrumAdder.cxx.
References CLAM::SpecTypeFlags::bComplex, CLAM::SpecTypeFlags::bMagPhase, CLAM::SpecTypeFlags::bPolar, CLAM_ASSERT, CLAM_BEGIN_CHECK, CLAM_END_CHECK, CLAM::EScale::eLinear, CLAM::Spectrum::GetConfig(), CLAM::Spectrum::GetType(), and CLAM::Processing::IsConfigured().
bool CLAM::SpectrumAdder::SetPrototypes | ( | ) |
Definition at line 291 of file SpectrumAdder.cxx.
References CLAM_ASSERT.
bool CLAM::SpectrumAdder::UnsetPrototypes | ( | ) |
Definition at line 296 of file SpectrumAdder.cxx.