SoftFilters
0.1.0
Arduino framework and library of software data filters.
|
The typed filter base class. More...
#include <framework.h>
Protected Member Functions | |
virtual void const *const | get_output_val_ptr () final |
Push a new data through the filter. More... | |
virtual void | copy_to_client (void *const output) final |
Copy the output to client memory. | |
![]() | |
virtual bool | update (void const *const input)=0 |
Internally update the filter output based on the given input. More... | |
Protected Attributes | |
OUT_T | out_val |
Internally managed storage of the output value. | |
Additional Inherited Members | |
![]() | |
bool | push (void const *const input, void *const output) |
Push a new data through the filter. More... | |
The typed filter base class.
IN_T | type of input data |
OUT_T | type of output data |
|
inlinefinalprotectedvirtual |
Push a new data through the filter.
This function is essentially a proxy call to the Filter::push function that does away the pointer parameter, which is supposed to be beginner-friendly.
[in] | input | A read-only reference to the input data. |
[out] | output | The reference to the output data to be written to. |
Implements Filter.