#include <GrArbFunc.h>
Inheritance diagram for GrArbFunc< iType, oType >:
Public Member Functions | |
GrArbFunc (oType(*f)(const iType &)) | |
virtual const char * | name () |
default name for a module (override with actual name) | |
virtual int | work (VrSampleRange output, void *o[], VrSampleRange inputs[], void *i[]) |
Generate up to output.size output points at o[output#][sample#] using data at the inputptrs[input#][sample#]. | |
Protected Attributes | |
oType(* | func )(const iType &) |
Pass this block a pointer to a function. The function should return type oType, and take a single argument of type "const iType &" For example, to make a bock which returns the angle of a VrComplex input, invoke: GrArbFunc<VrComplex,float>(&arg)
|
|
|
default name for a module (override with actual name)
Reimplemented from VrSigProc. |
|
Generate up to output.size output points at o[output#][sample#] using data at the inputptrs[input#][sample#]. Pointers start at corresponding VrSampleIndex in the range params. output.size is a multiple of outputSize. Returns the number of outputs (<= output.size) that it was able to compute with the given input ranges. If this value is < output.size, forecast() will need to be called again. Implements VrSigProc. |
|
|