12 #ifndef MLPACK_BINDINGS_JULIA_PRINT_DOC_HPP
13 #define MLPACK_BINDINGS_JULIA_PRINT_DOC_HPP
25 std::ostringstream& oss = *((std::ostringstream*) output);
27 oss <<
"`" << juliaName <<
"::" << GetJuliaType<T>() <<
"`: " << d.
desc;
33 if (d.
cppType ==
"std::string" ||
38 oss <<
" Default value `";
41 oss << boost::any_cast<std::string>(d.
value);
45 oss << boost::any_cast<double>(d.
value);
49 oss << boost::any_cast<int>(d.
value);
53 oss << (boost::any_cast<bool>(d.
value) ?
"true" :
"false");
55 oss <<
"`." << std::endl;
void PrintDoc(const util::ParamData &d, const void *, void *output)
boost::any value
The actual value that is held.
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.
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 "$