Turi Create
4.0
|
#include <model_server/lib/toolkit_function_wrapper_impl.hpp>
Fills in a boost::fusion::vector<T ...> with parameters from the toolkit invocation object.
InArgType is a boost::fusion::vector<T ...> representing the input arguments of the user defined function.
inargnames is a vector of strings naming each of the argument, and should preferably, (but not necessary) be of the same length as InArgType.
Essentially, this performs the following simple task:
inargs[n] = params[inargnames[n]]
Except this cannot be done so easily because each entry in the boost fusion vector is of a different type. So a bit more work is needed.
If inargnames is shorter than the actual number of arguments, only inargnames.size() number of arguments is filled. If it is longer, only the first inargs.size() names are taken.
Definition at line 215 of file toolkit_function_wrapper_impl.hpp.