Turi Create  4.0
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
turi::toolkit_function_wrapper_impl::fill_named_in_args< InArgType > Struct Template Reference

#include <model_server/lib/toolkit_function_wrapper_impl.hpp>

Detailed Description

template<typename InArgType>
struct turi::toolkit_function_wrapper_impl::fill_named_in_args< InArgType >

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.


The documentation for this struct was generated from the following file: