13 #ifndef MLPACK_BINDINGS_JULIA_PRINT_PARAM_DEFN_HPP
14 #define MLPACK_BINDINGS_JULIA_PRINT_PARAM_DEFN_HPP
29 const typename std::enable_if<!arma::is_arma_type<T>::value>::type* = 0,
42 const typename std::enable_if<arma::is_arma_type<T>::value>::type* = 0)
54 const typename std::enable_if<!arma::is_arma_type<T>::value>::type* = 0,
69 std::cout <<
"\" Get the value of a model pointer parameter of type " << type
70 <<
".\"" << std::endl;
71 std::cout <<
"function CLIGetParam" << type <<
"Ptr(paramName::String)"
73 std::cout <<
" return ccall((:CLI_GetParam" << type <<
"Ptr, "
74 << programName <<
"Library), Ptr{Nothing}, "
75 <<
"(Cstring,), paramName)" << std::endl;
76 std::cout <<
"end" << std::endl;
77 std::cout << std::endl;
79 std::cout <<
"\" Set the value of a model pointer parameter of type " << type
80 <<
".\"" << std::endl;
81 std::cout <<
"function CLISetParam" << type <<
"Ptr(paramName::String, "
82 <<
"ptr::Ptr{Nothing})" << std::endl;
83 std::cout <<
" ccall((:CLI_SetParam" << type <<
"Ptr, "
84 << programName <<
"Library), Nothing, (Cstring, "
85 <<
"Ptr{Nothing}), paramName, ptr)" << std::endl;
86 std::cout <<
"end" << std::endl;
87 std::cout << std::endl;
99 PrintParamDefn<typename std::remove_pointer<T>::type>(d,
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++.
string(REGEX REPLACE".*#define MLPACK_VERSION_MINOR ([0-9]+).*""\\1"MLPACK_VERSION_MINOR"${VERSION_HPP_CONTENTS}") string(REGEX REPLACE".* "\\1" MLPACK_VERSION_PATCH "$
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...