Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
EffectUnitBase.h
- Committer:
- vaifreak
- Date:
- 2015-09-24
- Revision:
- 4:dbd755f9fca6
- Parent:
- 2:25adc1277b3e
File content as of revision 4:dbd755f9fca6:
//============================================================================= // @author vaifreak // @brief Effect Unit base class. //============================================================================= #pragma once //--------------------------------------------- // //--------------------------------------------- class EffectUnitBase { public: bool isBypass; EffectUnitBase() { printf("EffectUnitBase\n"); isBypass = true; } float Process( float input ) { if( isBypass == true ) return input; return ProcessConcrete( input ); } protected: virtual float ProcessConcrete( float input ) = 0; };