CLAM::SpectrumAdder Class Reference

#include <SpectrumAdder.hxx>

Inheritance diagram for CLAM::SpectrumAdder:

CLAM::Processing

List of all members.


Detailed Description

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:

Todo:
Possible optimisations (which require more states):

Definition at line 76 of file SpectrumAdder.hxx.


Public Member Functions

 SpectrumAdder ()
 SpectrumAdder (const SpecAdderConfig &c)
 ~SpectrumAdder ()
const ProcessingConfigGetConfig () 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

Constructor & Destructor Documentation

CLAM::SpectrumAdder::SpectrumAdder (  ) 

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().

CLAM::SpectrumAdder::~SpectrumAdder (  ) 

Definition at line 134 of file SpectrumAdder.cxx.


Member Function Documentation

const ProcessingConfig& CLAM::SpectrumAdder::GetConfig (  )  const [inline, virtual]

Configuration getter.

Gets the configuration parameters used to create the object.

Returns:
Const reference to the configuration object. The usual way to perform a configuration change in the processing object is to take a copy of this reference, to change it and to send it with the Configure method. If not overriden, it returns a NullProcessingConfig.

Reimplemented from CLAM::Processing.

Definition at line 140 of file SpectrumAdder.hxx.

bool CLAM::SpectrumAdder::Do ( void   )  [virtual]

Supervised mode execution method (using ports).

Returns:
A boolean telling whether it has been output

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().

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.

bool CLAM::SpectrumAdder::MayDisableExecution (  )  const [inline]

Definition at line 160 of file SpectrumAdder.hxx.


The documentation for this class was generated from the following files:

Generated on Tue Aug 12 22:33:48 2008 for CLAM by  doxygen 1.5.5