8 #ifndef MLPACK_BINDINGS_JULIA_PRINT_PARAM_DEFN_HPP 9 #define MLPACK_BINDINGS_JULIA_PRINT_PARAM_DEFN_HPP 24 const typename std::enable_if<!arma::is_arma_type<T>::value>::type* = 0,
37 const typename std::enable_if<arma::is_arma_type<T>::value>::type* = 0)
49 const typename std::enable_if<!arma::is_arma_type<T>::value>::type* = 0,
64 std::cout <<
"\" Get the value of a model pointer parameter of type " << type
65 <<
".\"" << std::endl;
66 std::cout <<
"function CLIGetParam" << type <<
"Ptr(paramName::String)" 68 std::cout <<
" return ccall((:CLI_GetParam" << type <<
"Ptr, " 69 << programName <<
"Library), Ptr{Nothing}, " 70 <<
"(Cstring,), paramName)" << std::endl;
71 std::cout <<
"end" << std::endl;
72 std::cout << std::endl;
74 std::cout <<
"\" Set the value of a model pointer parameter of type " << type
75 <<
".\"" << std::endl;
76 std::cout <<
"function CLISetParam" << type <<
"Ptr(paramName::String, " 77 <<
"ptr::Ptr{Nothing})" << std::endl;
78 std::cout <<
" ccall((:CLI_SetParam" << type <<
"Ptr, " 79 << programName <<
"Library), Nothing, (Cstring, " 80 <<
"Ptr{Nothing}), paramName, ptr)" << std::endl;
81 std::cout <<
"end" << std::endl;
82 std::cout << std::endl;
94 PrintParamDefn<typename std::remove_pointer<T>::type>(d,
95 *(std::string*) input);
This structure holds all of the information about a single parameter, including its value (which is s...
void PrintParamDefn(const util::ParamData &, const std::string &, const typename std::enable_if<!arma::is_arma_type< T >::value >::type *=0, const typename std::enable_if<!data::HasSerialize< T >::value >::type *=0)
If the type is not serializable, print nothing.
std::string cppType
The true name of the type, as it would be written in C++.
std::string StripType(std::string cppType)
Given a C++ type name, turn it into something that has no special characters that can simply be print...