Main Page | Modules | Namespace List | Class Hierarchy | Class List | Namespace Members | Class Members

SimpleExperiment1D Class Reference
[NMR spectra and related classes]

Simple 1D NMR experiment class. More...

#include <experiment.h>

Inheritance diagram for SimpleExperiment1D:

Experiment< PeakList1D > ShiftModule UnaryProcessor< Composite > UnaryFunctor< Composite, Processor::Result > List of all members.

Public Member Functions

Constructors and destructors
 SimpleExperiment1D ()
 Default constructor.
 SimpleExperiment1D (const SimpleExperiment1D &experiment)
 Copy constructor.
virtual ~SimpleExperiment1D () throw ()
 Destructor.
Processor related methods
virtual bool start () throw ()
 Initialize the experiment.
virtual Processor::Result operator() (Composite &composite) throw ()
 Processor application operator.
Accessors
void setExpression (const String &expression)
const ExpressiongetExpression () const

Protected Attributes

Expression expression_

Detailed Description

Simple 1D NMR experiment class.

This experiment extracts all atoms with an assigned shift value, which match a given kernel expression. The default expression is "true()", so by default all atoms with an assigned shift value are added to the peak list. The default peak intensity and width are user-defined ( setDefaultPeak ).


Member Function Documentation

virtual Processor::Result SimpleExperiment1D::operator() Composite composite  )  throw () [virtual]
 

Processor application operator.

This operator creates a new peak in the peak list for every atom it encounters that possesses shift data and matches the expression set with setExpression . The default is an empty expression, which matches all atoms. Each peak in the peak list is assigned the intensity and width defined using setDefaultPeak (defaults to zero).

Reimplemented from UnaryProcessor< Composite >.

virtual bool SimpleExperiment1D::start  )  throw () [virtual]
 

Initialize the experiment.

This method simply clears the internal peak list.

Returns:
always true

Reimplemented from ShiftModule.