SoftFilters
0.1.0
Arduino framework and library of software data filters.
|
A lambda filter that uses a client-supplied filter function. More...
#include <SoftFilters.h>
Public Member Functions | |
LambdaFilter (bool(*f)(IN_T const &, OUT_T &)) | |
Create a lambda filter using the given function. More... | |
![]() | |
bool | push (void const *const input, void *const output) |
Push a new data through the filter. More... | |
Protected Member Functions | |
virtual bool | update (void const *const input) override |
In a lambda filter, the update function simply calls the client-supplied filter function. | |
![]() | |
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. | |
Private Attributes | |
bool(* | lambda )(IN_T const &, OUT_T &) |
Additional Inherited Members | |
![]() | |
OUT_T | out_val |
Internally managed storage of the output value. | |
A lambda filter that uses a client-supplied filter function.
IN_T | type of input data |
OUT_T | type of output data |
|
inline |
Create a lambda filter using the given function.
f | A function with the same signature as the BaseFilter::push function. |