#include <SpectrumAdder.hxx>
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:
Definition at line 76 of file 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 |
CLAM::SpectrumAdder::SpectrumAdder | ( | ) |
CLAM::SpectrumAdder::SpectrumAdder | ( | const SpecAdderConfig & | c | ) |
CLAM::SpectrumAdder::~SpectrumAdder | ( | ) |
Definition at line 134 of file SpectrumAdder.cxx.
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::Do | ( | void | ) | [virtual] |
Supervised mode execution method (using ports).
Implements CLAM::Processing.
Definition at line 193 of file SpectrumAdder.cxx.
References CLAM_ASSERT.
Definition at line 163 of file SpectrumAdder.cxx.
References CLAM_ASSERT, CLAM_DEBUG_ASSERT, and CLAM::Processing::IsRunning().
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 | ( | ) |
bool CLAM::SpectrumAdder::UnsetPrototypes | ( | ) |
Definition at line 296 of file SpectrumAdder.cxx.
bool CLAM::SpectrumAdder::MayDisableExecution | ( | ) | const [inline] |
Definition at line 160 of file SpectrumAdder.hxx.