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