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 
14 #ifndef MLPACK_BINDINGS_CLI_PRINT_DOC_FUNCTIONS_HPP
15 #define MLPACK_BINDINGS_CLI_PRINT_DOC_FUNCTIONS_HPP
16 
18 
19 namespace mlpack {
20 namespace bindings {
21 namespace cli {
22 
26 template<typename T>
27 inline std::string PrintValue(const T& value, bool quotes);
28 
32 inline std::string PrintDataset(const std::string& dataset);
33 
37 inline std::string PrintModel(const std::string& model);
38 
42 inline std::string ProcessOptions();
43 
47 template<typename T, typename... Args>
48 std::string ProcessOptions(const std::string& paramName,
49  const T& value,
50  Args... args);
51 
56 template<typename... Args>
57 std::string ProgramCall(const std::string& programName, Args... args);
58 
65 inline std::string ParamString(const std::string& paramName);
66 
72 template<typename T>
73 inline bool IgnoreCheck(const T& /* t */) { return false; }
74 
75 } // namespace cli
76 } // namespace bindings
77 } // namespace mlpack
78 
79 // Include implementation.
80 #include "print_doc_functions_impl.hpp"
81 
82 #endif
std::string ParamString(const std::string &paramName)
Print what a user would type to invoke the given option name.
std::string PrintDataset(const std::string &dataset)
Print a dataset type parameter (add .csv and return).
bool IgnoreCheck(const T &)
Return whether or not a runtime check on parameters should be ignored.
std::string PrintValue(const T &value, bool quotes)
Given a parameter type, print the corresponding value.
std::string PrintModel(const std::string &model)
Print a model type parameter (add .bin and return).
std::string ProcessOptions()
Base case for recursion.
std::string ProgramCall(const std::string &programName, Args...args)
Given a program name and arguments for it, print what its invocation would be.