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<
typename std::remove_pointer
28 <T>::type>(d) <<
"`: " << d.
desc;
34 if (d.
cppType ==
"std::string" ||
39 oss <<
" Default value `";
42 oss << boost::any_cast<std::string>(d.
value);
46 oss << boost::any_cast<double>(d.
value);
50 oss << boost::any_cast<int>(d.
value);
54 oss << (boost::any_cast<bool>(d.
value) ?
"true" :
"false");
56 oss <<
"`." << std::endl;
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.
if(NOT R_FOUND OR NOT R_RCPP OR NOT R_RCPPARMADILLO OR NOT R_RCPPENSMALLEN OR NOT R_BH OR NOT R_ROXYGEN2 OR NOT R_TESTTHAT) if(NOT R_FOUND OR NOT R_RCPP OR NOT R_RCPPARMADILLO OR NOT R_RCPPENSMALLEN OR NOT R_BH OR NOT R_ROXYGEN2 OR NOT R_TESTTHAT) file(READ"$
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++.
std::string GetJuliaType(util::ParamData &, const typename std::enable_if<!util::IsStdVector< T >::value >::type *=0, const typename std::enable_if<!arma::is_arma_type< T >::value >::type *=0, const typename std::enable_if<!std::is_same< T, std::tuple< data::DatasetInfo, arma::mat >>::value >::type *=0, const typename std::enable_if<!data::HasSerialize< T >::value >::type *=0)
src mlpack core util version hpp VERSION_HPP_CONTENTS string(REGEX REPLACE".*#define MLPACK_VERSION_MAJOR ([0-9]+).*""\\1"MLPACK_VERSION_MAJOR"${VERSION_HPP_CONTENTS}") string(REGEX REPLACE".* MLPACK_VERSION_MINOR "$