pixled-lib
1.0
|
#include <function.h>
Public Member Functions | |
Cast (const base::Function< From > &from) | |
Cast (base::Function< From > &&from) | |
To | operator() (led l, time t) const override |
Cast< To, From > * | copy () const override |
Additional Inherited Members | |
Public Types inherited from pixled::base::Function< To > | |
typedef To | Type |
Cast implementation.
This class is not supposed to be used directy: use pixled::Cast method instead to benefit from automatic template deduction.
To | return type of the converted function (fundamental type) |
From | return type of the input function (fundamental type) |
|
inline |
lvalue Cast constructor
|
inline |
rvalue Cast constructor
|
inlineoverridevirtual |
Computes the value of this Function for led l
at time t
.
l | led |
t | time |
l
at time t
. Notice that evaluating a function usually requires the recursive evaluation of other Functions (that are actually parameters of this function) until a Constant is reached for example. Implements pixled::base::Function< To >.
|
inlineoverridevirtual |
Returns a dynamically allocated copy of this function.
Implements pixled::base::Function< To >.