Marsyas  0.5.0-beta1
Public Member Functions
MarSystemTemplateBasic Class Reference

Basic example on how to use controls efficiently in MarSystems. More...

#include <MarSystemTemplateBasic.h>

Inherits MarSystem.

Public Member Functions

MarSystemclone () const
 Implementation of the MarSystem::clone() method.
 MarSystemTemplateBasic (std::string name)
 MarSystemTemplateBasic constructor.
 MarSystemTemplateBasic (const MarSystemTemplateBasic &a)
 MarSystemTemplateBasic copy constructor.
void myProcess (realvec &in, realvec &out)
 Implementation of the MarSystem::myProcess method.
 ~MarSystemTemplateBasic ()
 MarSystemTemplateBasic destructor.

Detailed Description

Basic example on how to use controls efficiently in MarSystems.

This example is the same as Gain; it scales the output by multiplying each sample with a real number.

Controls:

Definition at line 39 of file MarSystemTemplateBasic.h.


Constructor & Destructor Documentation

MarSystemTemplateBasic ( std::string  name)

MarSystemTemplateBasic constructor.

Add any specific controls needed by this MarSystem.

Definition at line 25 of file MarSystemTemplateBasic.cpp.

MarSystemTemplateBasic copy constructor.

All member MarControlPtr have to be explicitly reassigned in the copy constructor.

Definition at line 36 of file MarSystemTemplateBasic.cpp.

MarSystemTemplateBasic destructor.

Definition at line 46 of file MarSystemTemplateBasic.cpp.


Member Function Documentation

MarSystem * clone ( ) const [virtual]

Implementation of the MarSystem::clone() method.

Implements MarSystem.

Definition at line 51 of file MarSystemTemplateBasic.cpp.

void myProcess ( realvec in,
realvec out 
) [virtual]

Implementation of the MarSystem::myProcess method.

Iterate over the observations and samples and do the processing.

Implements MarSystem.

Definition at line 96 of file MarSystemTemplateBasic.cpp.


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