print_input_processing.hpp
Go to the documentation of this file.
1 
12 #ifndef MLPACK_BINDINGS_JULIA_PRINT_INPUT_PROCESSING_HPP
13 #define MLPACK_BINDINGS_JULIA_PRINT_INPUT_PROCESSING_HPP
14 
15 namespace mlpack {
16 namespace bindings {
17 namespace julia {
18 
23 template<typename T>
25  const util::ParamData& d,
26  const std::string& functionName,
27  const typename std::enable_if<!data::HasSerialize<T>::value>::type* = 0,
28  const typename std::enable_if<!std::is_same<T,
29  std::tuple<data::DatasetInfo, arma::mat>>::value>::type* = 0);
30 
34 template<typename T>
36  const util::ParamData& d,
37  const std::string& functionName,
38  const typename std::enable_if<arma::is_arma_type<T>::value>::type* = 0,
39  const typename std::enable_if<!std::is_same<T,
40  std::tuple<data::DatasetInfo, arma::mat>>::value>::type* = 0);
41 
45 template<typename T>
47  const util::ParamData& d,
48  const std::string& functionName,
49  const typename std::enable_if<!arma::is_arma_type<T>::value>::type* = 0,
50  const typename std::enable_if<data::HasSerialize<T>::value>::type* = 0,
51  const typename std::enable_if<!std::is_same<T,
52  std::tuple<data::DatasetInfo, arma::mat>>::value>::type* = 0);
53 
58 template<typename T>
60  const util::ParamData& d,
61  const std::string& functionName,
62  const typename std::enable_if<std::is_same<T,
63  std::tuple<data::DatasetInfo, arma::mat>>::value>::type* = 0);
64 
68 template<typename T>
70  const void* input,
71  void* /* output */)
72 {
73  // Call out to the right overload.
74  PrintInputProcessing<typename std::remove_pointer<T>::type>(d,
75  *((std::string*) input));
76 }
77 
78 } // namespace julia
79 } // namespace bindings
80 } // namespace mlpack
81 
82 #include "print_input_processing_impl.hpp"
83 
84 #endif
Linear algebra utility functions, generally performed on matrices or vectors.
Definition: add_to_po.hpp:21
This structure holds all of the information about a single parameter, including its value (which is s...
Definition: param_data.hpp:52
void PrintInputProcessing(const util::ParamData &d, const std::string &functionName, const typename std::enable_if<!data::HasSerialize< T >::value >::type *=0, const typename std::enable_if<!std::is_same< T, std::tuple< data::DatasetInfo, arma::mat >>::value >::type *=0)
Print the input processing (basically calling CLI::GetParam<>()) for a non-serializable type...