This object is used to invoke a function.
More...
#include <runtime.hpp>
This object is used to invoke a function.
There are helpers for this class, see ponder::runtime::call() and ponder::runtime::callStatic().
◆ FunctionCaller()
ponder::runtime::FunctionCaller::FunctionCaller |
( |
const Function & |
f | ) |
|
◆ call()
template<typename... A>
Value ponder::runtime::FunctionCaller::call |
( |
A... |
args | ) |
|
|
inline |
Call the static function.
- Parameters
-
args | Arguments to pass to the function, for example "ponder::Args::empty" |
- Returns
- Value returned by the function call
runtime::FunctionCaller caller(classByType<MyClass>.function("fpp"));
caller.call(Args("bar"));
- Exceptions
-
◆ function()
const Function& ponder::runtime::FunctionCaller::function |
( |
| ) |
const |
|
inline |
Get the function begin used.
- Returns
- a Function reference
The documentation for this class was generated from the following file: