mlpack 3.4.2
print_type_doc.hpp
Go to the documentation of this file.
1
13#ifndef MLPACK_BINDINGS_PYTHON_PRINT_TYPE_DOC_HPP
14#define MLPACK_BINDINGS_PYTHON_PRINT_TYPE_DOC_HPP
15
17
18namespace mlpack {
19namespace bindings {
20namespace python {
21
25template<typename T>
26std::string PrintTypeDoc(
27 util::ParamData& data,
28 const typename boost::disable_if<arma::is_arma_type<T>>::type* = 0,
29 const typename boost::disable_if<util::IsStdVector<T>>::type* = 0,
30 const typename boost::disable_if<data::HasSerialize<T>>::type* = 0,
31 const typename boost::disable_if<std::is_same<T,
32 std::tuple<data::DatasetInfo, arma::mat>>>::type* = 0);
33
37template<typename T>
38std::string PrintTypeDoc(
39 util::ParamData& data,
40 const typename std::enable_if<util::IsStdVector<T>::value>::type* = 0);
41
45template<typename T>
46std::string PrintTypeDoc(
47 util::ParamData& data,
48 const typename std::enable_if<arma::is_arma_type<T>::value>::type* = 0);
49
53template<typename T>
54std::string PrintTypeDoc(
55 util::ParamData& data,
56 const typename std::enable_if<std::is_same<T,
57 std::tuple<data::DatasetInfo, arma::mat>>::value>::type* = 0);
58
62template<typename T>
63std::string PrintTypeDoc(
64 util::ParamData& data,
65 const typename boost::disable_if<arma::is_arma_type<T>>::type* = 0,
66 const typename boost::enable_if<data::HasSerialize<T>>::type* = 0);
67
71template<typename T>
73 const void* /* input */,
74 void* output)
75{
76 *((std::string*) output) =
77 PrintTypeDoc<typename std::remove_pointer<T>::type>(data);
78}
79
80} // namespace python
81} // namespace bindings
82} // namespace mlpack
83
84#include "print_type_doc_impl.hpp"
85
86#endif
python
Definition: CMakeLists.txt:6
std::string PrintTypeDoc(util::ParamData &data, const typename boost::disable_if< arma::is_arma_type< T > >::type *=0, const typename boost::disable_if< util::IsStdVector< T > >::type *=0, const typename boost::disable_if< data::HasSerialize< T > >::type *=0, const typename boost::disable_if< std::is_same< T, std::tuple< data::DatasetInfo, arma::mat > > >::type *=0)
Return a string representing the command-line type of an option.
Linear algebra utility functions, generally performed on matrices or vectors.
Definition: cv.hpp:1
Metaprogramming structure for vector detection.
This structure holds all of the information about a single parameter, including its value (which is s...
Definition: param_data.hpp:53