Klang C++
Language Reference (draft)
|
Applies a function to a signal (input-output) More...
#include <klang.h>
Public Member Functions | |
Function () | |
Function (std::function< float(Args...)> function) | |
operator signal () | |
operator param () | |
unsigned int | args () const |
std::tuple< Rest... > | tail (const std::tuple< First, Rest... > &t) const |
void | input () override |
virtual const signal & | input () const |
virtual void | input (const signal &source) |
First | first (First first, Rest...) |
Function< signal, Args... > & | operator() (const FuncArgs &... args) |
const float | operator() (const FuncArgs &... args) const |
Modifier< signal > & | operator() (params... p) |
Function< signal, Args... > & | with (FuncArgs... args) |
signal | evaluate () const |
virtual void | process () override |
klang::Graph & | operator>> (klang::Graph &graph) |
klang::GraphPtr & | operator>> (klang::GraphPtr &graph) |
TYPE & | operator>> (TYPE &destination) |
operator const signal & () override | |
operator const signal & () const override | |
virtual void | operator<< (const signal &source) |
virtual const signal & | output () const |
signal | operator+ (TYPE &other) |
signal | operator* (TYPE &other) |
signal | operator- (TYPE &other) |
signal | operator/ (TYPE &other) |
Public Attributes | |
std::function< float(Args...)> | function |
std::tuple< Args... > | inputs |
signal | in |
signal | out |
Static Public Attributes | |
static constexpr unsigned int | ARGS |
|
inline |
|
inline |
Definition at line 2036 of file klang.h.
|
inlineinherited |
Definition at line 1521 of file klang.h.
|
inlineinherited |
Definition at line 1608 of file klang.h.
|
inlineinherited |
Definition at line 1550 of file klang.h.
|
inlineoverridevirtualinherited |
Reimplemented from klang::Generic::Input< signal >.
Definition at line 1544 of file klang.h.
|
inlinevirtualinherited |
|
inlinevirtualinherited |
|
inlineoverridevirtualinherited |
|
inlineoverridevirtualinherited |
|
inlineinherited |
|
inlineinherited |
Definition at line 1482 of file klang.h.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlinevirtualinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlinevirtualinherited |
|
inlineoverridevirtualinherited |
Reimplemented from klang::Generic::Modifier< signal >.
|
inlineinherited |
|
inlineinherited |
|
staticconstexprinherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |