CLAM-Development
1.1
|
This calss performs the substraction of two Spectrum processing data objects. More...
#include <SpectrumSubstracter2.hxx>
Public Member Functions | |
SpectrumSubstracter2 () | |
SpectrumSubstracter2 (const SpecSubstracter2Config &c) | |
~SpectrumSubstracter2 () | |
const ProcessingConfig & | GetConfig () const |
Configuration getter. | |
bool | Do (void) |
Supervised mode execution method (using ports) | |
bool | Do (Spectrum &in1, Spectrum &in2, Spectrum &out) |
bool | SetPrototypes (const Spectrum &in1, const Spectrum &in2, const Spectrum &out) |
Change the internal type state. | |
bool | SetPrototypes () |
bool | UnsetPrototypes () |
bool | MayDisableExecution () const |
This calss performs the substraction of two 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:
Definition at line 60 of file SpectrumSubstracter2.hxx.
Definition at line 43 of file SpectrumSubstracter2.cxx.
References CLAM::Processing::Configure().
Definition at line 53 of file SpectrumSubstracter2.cxx.
References CLAM::Processing::Configure().
CLAM::SpectrumSubstracter2::~SpectrumSubstracter2 | ( | ) | [inline] |
Definition at line 119 of file SpectrumSubstracter2.hxx.
bool CLAM::SpectrumSubstracter2::Do | ( | void | ) | [virtual] |
Supervised mode execution method (using ports)
Implements CLAM::Processing.
Definition at line 129 of file SpectrumSubstracter2.cxx.
References CLAM::InPort< Token >::Consume(), CLAM::InPort< Token >::GetData(), CLAM::OutPort< Token >::GetData(), CLAM::Spectrum::GetSize(), CLAM::OutPort< Token >::Produce(), and CLAM::Spectrum::SetSize().
Referenced by CLAM::SMSAnalysisCore::Do().
bool CLAM::SpectrumSubstracter2::Do | ( | Spectrum & | in1, |
Spectrum & | in2, | ||
Spectrum & | out | ||
) |
Definition at line 81 of file SpectrumSubstracter2.cxx.
References CLAM_ASSERT, CLAM_DEBUG_ASSERT, and CLAM::Processing::IsRunning().
const ProcessingConfig& CLAM::SpectrumSubstracter2::GetConfig | ( | ) | const [inline, virtual] |
Configuration getter.
Gets the configuration parameters used to create the object.
Reimplemented from CLAM::Processing.
Definition at line 121 of file SpectrumSubstracter2.hxx.
bool CLAM::SpectrumSubstracter2::MayDisableExecution | ( | ) | const [inline] |
Definition at line 141 of file SpectrumSubstracter2.hxx.
bool CLAM::SpectrumSubstracter2::SetPrototypes | ( | const Spectrum & | in1, |
const Spectrum & | in2, | ||
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 144 of file SpectrumSubstracter2.cxx.
References CLAM::SpecTypeFlags::bComplex, CLAM::SpecTypeFlags::bMagPhase, CLAM::SpecTypeFlags::bMagPhaseBPF, CLAM::SpecTypeFlags::bPolar, CLAM_ASSERT, CLAM::EScale::eLinear, CLAM::EScale::eLog, CLAM::Spectrum::GetSize(), and CLAM::Spectrum::GetType().
Definition at line 325 of file SpectrumSubstracter2.cxx.
References CLAM_ASSERT.
Definition at line 332 of file SpectrumSubstracter2.cxx.