12 #ifndef MLPACK_BINDINGS_JULIA_PRINT_DOC_HPP 13 #define MLPACK_BINDINGS_JULIA_PRINT_DOC_HPP 23 const std::string juliaName = (d.
name ==
"type") ?
"type_" : d.
name;
25 std::ostringstream& oss = *((std::ostringstream*) output);
27 oss <<
"`" << juliaName <<
"::" <<
GetJuliaType<
typename std::remove_pointer
28 ::type>(d) << "`: " << d.desc; 34 if (d.
cppType ==
"std::string" ||
39 oss <<
" Default value `";
42 oss << boost::any_cast
(d.value); 46 oss << boost::any_cast
(d.value); 50 oss << boost::any_cast
(d.value); 54 oss << (boost::any_cast
(d.value) ? "true" : "false"); 56 oss <<
"`." << std::endl;
boost::any value
The actual value that is held.
Linear algebra utility functions, generally performed on matrices or vectors.
std::string desc
Description of this parameter, if any.
This structure holds all of the information about a single parameter, including its value (which is s...
std::string name
Name of this parameter.
bool required
True if this option is required.
void PrintDoc(util::ParamData &d, const void *, void *output)
std::string cppType
The true name of the type, as it would be written in C++.
if(NOT BUILD_GO_SHLIB) macro(add_go_binding name) endmacro() return() endif() endmacro() macro(post_go_setup) if(BUILD_GO_BINDINGS) file(APPEND "$
std::string GetJuliaType(util::ParamData &, const typename std::enable_if::value >::type *=0, const typename std::enable_if::value >::type *=0, const typename std::enable_if>::value >::type *=0, const typename std::enable_if::value >::type *=0)