Wrapper class that adapts various filter implementations to the BaseFilter interface.
More...
#include <base_filter.hpp>
|
| | FilterWrapper (FilterType filter) |
| | Constructor that takes ownership of a filter instance.
|
| template<typename... Args> |
| void | setup (Args &&... args) |
| | Forward setup parameters to the underlying filter.
|
| float | filter (const float sample) override |
| | Process a single sample through the filter.
|
| void | reset () override |
|
virtual | ~BaseFilter ()=default |
| | Virtual destructor.
|
template<typename FilterType>
class synapse::FilterWrapper< FilterType >
Wrapper class that adapts various filter implementations to the BaseFilter interface.
- Template Parameters
-
| FilterType | The specific filter implementation type being wrapped |
◆ FilterWrapper()
template<typename FilterType>
Constructor that takes ownership of a filter instance.
- Parameters
-
| filter | Filter instance to wrap |
◆ filter()
template<typename FilterType>
Process a single sample through the filter.
- Parameters
-
- Returns
- The filtered sample value
Implements synapse::BaseFilter.
◆ reset()
template<typename FilterType>
◆ setup()
template<typename FilterType>
template<typename... Args>
Forward setup parameters to the underlying filter.
- Template Parameters
-
| Args | Parameter types for setup |
- Parameters
-
| args | Arguments to forward to the filter's setup method |
The documentation for this class was generated from the following file: