Wrapper for User-defined functions. More...
#include <builtins.hpp>
Public Member Functions | |
| FunctionWrapper (ast::NodePtr< ast::FdefNode > node) | |
| Construct a new Function Wrapper object. | |
| error::Result< double > | operator() (const std::vector< double > &args, const EvalContext &ctx) const |
| Evaluate the function. | |
Wrapper for User-defined functions.
|
inlineexplicit |
Construct a new Function Wrapper object.
| node | Function definition node. |
| error::Result< double > tcalc::builtins::FunctionWrapper::operator() | ( | const std::vector< double > & | args, |
| const EvalContext & | ctx | ||
| ) | const |
Evaluate the function.
| args | Function arguments. |
| ctx | Evaluation context. |