print_doc_functions.hpp
Go to the documentation of this file.
1 
13 #ifndef MLPACK_BINDINGS_R_PRINT_DOC_FUNCTIONS_HPP
14 #define MLPACK_BINDINGS_R_PRINT_DOC_FUNCTIONS_HPP
15 
17 
18 namespace mlpack {
19 namespace bindings {
20 namespace r {
21 
25 inline std::string GetBindingName(const std::string& bindingName);
26 
30 inline std::string PrintImport();
31 
35 inline std::string PrintInputOptionInfo();
36 
40 inline std::string PrintOutputOptionInfo();
41 
45 template<typename T>
46 inline std::string PrintValue(const T& value, bool quotes);
47 
51 template<>
52 inline std::string PrintValue(const bool& value, bool quotes);
53 
57 inline std::string PrintDefault(const std::string& paramName);
58 
62 inline std::string PrintInputOptions();
63 
68 template<typename T, typename... Args>
69 std::string PrintInputOptions(const std::string& paramName,
70  const T& value,
71  Args... args);
72 
76 inline std::string PrintOutputOptions(const bool /* markdown */);
77 
78 template<typename T, typename... Args>
79 std::string PrintOutputOptions(const bool markdown,
80  const std::string& paramName,
81  const T& value,
82  Args... args);
83 
88 template<typename... Args>
89 std::string ProgramCall(const bool markdown,
90  const std::string& programName,
91  Args... args);
92 
97 inline std::string ProgramCall(const std::string& programName);
98 
102 inline std::string PrintModel(const std::string& modelName);
103 
108 inline std::string PrintDataset(const std::string& datasetName);
109 
114 inline std::string ParamString(const std::string& paramName);
115 
119 inline bool IgnoreCheck(const std::string& paramName);
120 
125 inline bool IgnoreCheck(const std::vector<std::string>& constraints);
126 
131 inline bool IgnoreCheck(
132  const std::vector<std::pair<std::string, bool>>& constraints,
133  const std::string& paramName);
134 
135 } // namespace r
136 } // namespace bindings
137 } // namespace mlpack
138 
139 // Include implementation.
140 #include "print_doc_functions_impl.hpp"
141 
142 #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 PrintImport()
Print any import information for the R binding.
std::string PrintDataset(const std::string &datasetName)
Given the name of a matrix, print it.
std::string ProgramCall(const bool markdown, 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 programName
bool IgnoreCheck(const std::string &paramName)
Print whether or not we should ignore a check on the given parameter.
std::string PrintModel(const std::string &modelName)
Given the name of a model, print it.
std::string PrintInputOptions()
Recursion base case.
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 GetBindingName(const std::string &bindingName)
Given the name of a binding, print its R name.
std::string PrintOutputOptionInfo()
Print any special information about output options.
std::string PrintDefault(const std::string &paramName)
Given a parameter name, print its corresponding default value.
std::string PrintInputOptionInfo()
Print any special information about input options.
std::string PrintOutputOptions(const bool)
Recursion base case.