print_doc_functions.hpp
Go to the documentation of this file.
1 
13 #ifndef MLPACK_BINDINGS_JULIA_PRINT_DOC_FUNCTIONS_HPP
14 #define MLPACK_BINDINGS_JULIA_PRINT_DOC_FUNCTIONS_HPP
15 
17 
18 namespace mlpack {
19 namespace bindings {
20 namespace julia {
21 
26 inline std::string GetBindingName(const std::string& bindingName);
27 
31 inline std::string PrintImport(const std::string& bindingName);
32 
36 inline std::string PrintOutputOptionInfo();
37 
41 inline std::string PrintInputOptionInfo();
42 
46 inline std::string PrintTypeDocs();
47 
51 template<typename T>
52 inline std::string PrintValue(const T& value, bool quotes);
53 
54 // Special overload for booleans.
55 template<>
56 inline std::string PrintValue(const bool& value, bool quotes);
57 
61 inline std::string PrintDefault(const std::string& bindingName,
62  const std::string& paramName);
63 
67 inline std::string PrintDataset(const std::string& dataset);
68 
72 inline std::string PrintModel(const std::string& model);
73 
77 inline std::string PrintType(util::ParamData& param);
78 
79 // Recursion base case.
80 inline std::string PrintInputOptions(util::Params& p);
81 
87 template<typename T, typename... Args>
88 std::string PrintInputOptions(util::Params& p,
89  const std::string& paramName,
90  const T& value,
91  Args... args);
92 
93 // Recursion base case.
94 inline std::string PrintOutputOptions(util::Params& p);
95 
96 template<typename T, typename... Args>
97 std::string PrintOutputOptions(util::Params& p,
98  const std::string& paramName,
99  const T& value,
100  Args... args);
101 
106 template<typename... Args>
107 std::string ProgramCall(const std::string& programName,
108  Args... args);
109 
114 inline std::string ProgramCall(util::Params& p, const std::string& programName);
115 
120 inline std::string ParamString(const std::string& paramName);
121 
127 inline bool IgnoreCheck(const std::string& paramName);
128 
134 inline bool IgnoreCheck(const std::vector<std::string>& constraints);
135 
142 inline bool IgnoreCheck(
143  const std::vector<std::pair<std::string, bool>>& constraints,
144  const std::string& paramName);
145 
146 } // namespace julia
147 } // namespace bindings
148 } // namespace mlpack
149 
150 // Include implementation.
151 #include "print_doc_functions_impl.hpp"
152 
153 #endif
std::string PrintValue(const T &value, bool quotes)
Given a parameter type, print the corresponding value.
Linear algebra utility functions, generally performed on matrices or vectors.
std::string PrintOutputOptionInfo()
Print any special information about output options.
std::string PrintInputOptions(util::Params &p)
std::string PrintImport(const std::string &bindingName)
Print any imports for Julia.
std::string PrintTypeDocs()
Print documentation for each of the types.
std::string PrintInputOptionInfo()
Print any special information about input options.
std::string PrintModel(const std::string &model)
Print a model type parameter.
std::string ProgramCall(const std::string &programName, Args... args)
Given a name of a binding and a variable number of arguments (and their contents), print the corresponding function call.
julia
Definition: CMakeLists.txt:7
std::string GetBindingName(const std::string &bindingName)
Given the name of a binding, print its Julia name (this just returns the binding name).
std::string PrintDefault(const std::string &bindingName, const std::string &paramName)
Given a parameter name, print its corresponding default value.
std::string PrintType(util::ParamData &param)
Print the type of a parameter that a user would specify from Julia.
std::string ParamString(const std::string &paramName)
Given the parameter name, determine what it would actually be when passed to the command line...
std::string PrintOutputOptions(util::Params &p)
std::string PrintDataset(const std::string &dataset)
Print a dataset type parameter.
bool IgnoreCheck(const std::string &paramName)
Print whether or not we should ignore a check on the given parameter.