print_input_processing.hpp
Go to the documentation of this file.
1 
7 #ifndef MLPACK_BINDINGS_JULIA_PRINT_INPUT_PROCESSING_HPP
8 #define MLPACK_BINDINGS_JULIA_PRINT_INPUT_PROCESSING_HPP
9 
10 namespace mlpack {
11 namespace bindings {
12 namespace julia {
13 
18 template<typename T>
20  const util::ParamData& d,
21  const std::string& functionName,
22  const typename std::enable_if<!data::HasSerialize<T>::value>::type* = 0,
23  const typename std::enable_if<!std::is_same<T,
24  std::tuple<data::DatasetInfo, arma::mat>>::value>::type* = 0);
25 
29 template<typename T>
31  const util::ParamData& d,
32  const std::string& functionName,
33  const typename std::enable_if<arma::is_arma_type<T>::value>::type* = 0,
34  const typename std::enable_if<!std::is_same<T,
35  std::tuple<data::DatasetInfo, arma::mat>>::value>::type* = 0);
36 
40 template<typename T>
42  const util::ParamData& d,
43  const std::string& functionName,
44  const typename std::enable_if<!arma::is_arma_type<T>::value>::type* = 0,
45  const typename std::enable_if<data::HasSerialize<T>::value>::type* = 0,
46  const typename std::enable_if<!std::is_same<T,
47  std::tuple<data::DatasetInfo, arma::mat>>::value>::type* = 0);
48 
53 template<typename T>
55  const util::ParamData& d,
56  const std::string& functionName,
57  const typename std::enable_if<std::is_same<T,
58  std::tuple<data::DatasetInfo, arma::mat>>::value>::type* = 0);
59 
63 template<typename T>
65  const void* input,
66  void* /* output */)
67 {
68  // Call out to the right overload.
69  PrintInputProcessing<typename std::remove_pointer<T>::type>(d,
70  *((std::string*) input));
71 }
72 
73 } // namespace julia
74 } // namespace bindings
75 } // namespace mlpack
76 
77 #include "print_input_processing_impl.hpp"
78 
79 #endif
strip_type.hpp
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...