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 PrintTypeDocs();
42 
46 template<typename T>
47 inline std::string PrintValue(const T& value, bool quotes);
48 
49 // Special overload for booleans.
50 template<>
51 inline std::string PrintValue(const bool& value, bool quotes);
52 
56 inline std::string PrintDefault(const std::string& paramName);
57 
61 inline std::string PrintDataset(const std::string& dataset);
62 
66 inline std::string PrintModel(const std::string& model);
67 
71 inline std::string PrintType(const util::ParamData& param);
72 
73 // Recursion base case.
74 inline std::string PrintInputOptions();
75 
81 template<typename T, typename... Args>
82 std::string PrintInputOptions(const std::string& paramName,
83  const T& value,
84  Args... args);
85 
86 // Recursion base case.
87 inline std::string PrintOutputOptions();
88 
89 template<typename T, typename... Args>
90 std::string PrintOutputOptions(const std::string& paramName,
91  const T& value,
92  Args... args);
93 
98 template<typename... Args>
99 std::string ProgramCall(const std::string& programName, Args... args);
100 
105 inline std::string ParamString(const std::string& paramName);
106 
112 inline bool IgnoreCheck(const std::string& paramName);
113 
119 inline bool IgnoreCheck(const std::vector<std::string>& constraints);
120 
127 inline bool IgnoreCheck(
128  const std::vector<std::pair<std::string, bool>>& constraints,
129  const std::string& paramName);
130 
131 } // namespace julia
132 } // namespace bindings
133 } // namespace mlpack
134 
135 // Include implementation.
136 #include "print_doc_functions_impl.hpp"
137 
138 #endif
std::string PrintValue(const T &value, bool quotes)
Given a parameter type, print the corresponding value.
strip_type.hpp
Definition: add_to_po.hpp:21
std::string PrintOutputOptionInfo()
Print any special information about output options.
std::string PrintImport(const std::string &bindingName)
Print any imports for Julia.
std::string PrintTypeDocs()
Print documentation for each of the types.
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.
std::string PrintInputOptions()
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 &paramName)
Given a parameter name, print its corresponding default value.
std::string PrintOutputOptions()
std::string PrintType(const 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 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.