mlpack  3.0.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
print_doc_functions.hpp
Go to the documentation of this file.
1 
13 #ifndef MLPACK_BINDINGS_PYTHON_PRINT_DOC_FUNCTIONS_HPP
14 #define MLPACK_BINDINGS_PYTHON_PRINT_DOC_FUNCTIONS_HPP
15 
17 
18 namespace mlpack {
19 namespace bindings {
20 namespace python {
21 
25 template<typename T>
26 inline std::string PrintValue(const T& value, bool quotes);
27 
28 // Special overload for booleans.
29 template<>
30 inline std::string PrintValue(const bool& value, bool quotes);
31 
32 // Recursion base case.
33 inline std::string PrintInputOptions();
34 
40 template<typename T, typename... Args>
41 std::string PrintInputOptions(const std::string& paramName,
42  const T& value,
43  Args... args);
44 
45 // Recursion base case.
46 inline std::string PrintOutputOptions();
47 
48 template<typename T, typename... Args>
49 std::string PrintOutputOptions(const std::string& paramName,
50  const T& value,
51  Args... args);
52 
57 template<typename... Args>
58 std::string ProgramCall(const std::string& programName, Args... args);
59 
63 inline std::string PrintModel(const std::string& modelName);
64 
69 inline std::string PrintDataset(const std::string& datasetName);
70 
75 inline std::string ParamString(const std::string& paramName);
76 
82 inline bool IgnoreCheck(const std::string& paramName);
83 
89 inline bool IgnoreCheck(const std::vector<std::string>& constraints);
90 
97 inline bool IgnoreCheck(
98  const std::vector<std::pair<std::string, bool>>& constraints,
99  const std::string& paramName);
100 
101 } // namespace python
102 } // namespace bindings
103 } // namespace mlpack
104 
105 // Include implementation.
106 #include "print_doc_functions_impl.hpp"
107 
108 #endif
std::string PrintValue(const T &value, bool quotes)
Given a parameter type, print the corresponding value.
std::string PrintOutputOptions()
std::string PrintModel(const std::string &modelName)
Given the name of a model, print it.
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 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.
std::string PrintDataset(const std::string &datasetName)
Given the name of a matrix, print it.
std::string PrintInputOptions()
bool IgnoreCheck(const std::string &paramName)
Print whether or not we should ignore a check on the given parameter.