print_output_processing.hpp
Go to the documentation of this file.
1 
7 #ifndef MLPACK_BINDINGS_JULIA_PRINT_OUTPUT_PROCESSING_HPP
8 #define MLPACK_BINDINGS_JULIA_PRINT_OUTPUT_PROCESSING_HPP
9 
10 #include <mlpack/prereqs.hpp>
11 
12 namespace mlpack {
13 namespace bindings {
14 namespace julia {
15 
20 template<typename T>
22  const util::ParamData& d,
23  const std::string& functionName,
24  const typename std::enable_if<!data::HasSerialize<T>::value>::type* = 0,
25  const typename std::enable_if<!std::is_same<T,
26  std::tuple<data::DatasetInfo, arma::mat>>::value>::type* = 0);
27 
31 template<typename T>
33  const util::ParamData& d,
34  const std::string& functionName,
35  const typename std::enable_if<arma::is_arma_type<T>::value>::type* = 0,
36  const typename std::enable_if<!std::is_same<T,
37  std::tuple<data::DatasetInfo, arma::mat>>::value>::type* = 0);
38 
42 template<typename T>
44  const util::ParamData& d,
45  const std::string& functionName,
46  const typename std::enable_if<!arma::is_arma_type<T>::value>::type* = 0,
47  const typename std::enable_if<data::HasSerialize<T>::value>::type* = 0,
48  const typename std::enable_if<!std::is_same<T,
49  std::tuple<data::DatasetInfo, arma::mat>>::value>::type* = 0);
50 
54 template<typename T>
56  const util::ParamData& d,
57  const std::string& functionName,
58  const typename std::enable_if<std::is_same<T,
59  std::tuple<data::DatasetInfo, arma::mat>>::value>::type* = 0);
60 
64 template<typename T>
66  const void* input,
67  void* /* output */)
68 {
69  // Call out to the right overload.
70  PrintOutputProcessing<typename std::remove_pointer<T>::type>(d,
71  *((std::string*) input));
72 }
73 
74 } // namespace julia
75 } // namespace bindings
76 } // namespace mlpack
77 
78 #include "print_output_processing_impl.hpp"
79 
80 #endif
strip_type.hpp
Definition: add_to_po.hpp:21
The core includes that mlpack expects; standard C++ includes and Armadillo.
This structure holds all of the information about a single parameter, including its value (which is s...
Definition: param_data.hpp:52
void PrintOutputProcessing(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 output processing (basically calling CLI::GetParam<>()) for a non-serializable type...