dsp::ProcessorBase Struct Referenceabstract

Acts as a polymorphic base class for processors. More...

Inheritance diagram for dsp::ProcessorBase:

Public Member Functions

 ProcessorBase ()=default
 
virtual ~ProcessorBase ()=default
 
virtual void prepare (const ProcessSpec &)=0
 
virtual void process (const ProcessContextReplacing< float > &)=0
 
virtual void reset ()=0
 

Detailed Description

Acts as a polymorphic base class for processors.

This exposes the same set of methods that a processor must implement as virtual methods, so that you can use the ProcessorWrapper class to wrap an instance of a subclass, and then pass that around using ProcessorBase as a base class.

See also
ProcessorWrapper

Constructor & Destructor Documentation

◆ ProcessorBase()

dsp::ProcessorBase::ProcessorBase ( )
default

◆ ~ProcessorBase()

virtual dsp::ProcessorBase::~ProcessorBase ( )
virtualdefault

Member Function Documentation

◆ prepare()

virtual void dsp::ProcessorBase::prepare ( const ProcessSpec )
pure virtual

◆ process()

virtual void dsp::ProcessorBase::process ( const ProcessContextReplacing< float > &  )
pure virtual

◆ reset()

virtual void dsp::ProcessorBase::reset ( )
pure virtual

The documentation for this struct was generated from the following file: