12 #ifndef MLPACK_BINDINGS_PYTHON_IMPORT_DECL_HPP
13 #define MLPACK_BINDINGS_PYTHON_IMPORT_DECL_HPP
29 const typename boost::disable_if<arma::is_arma_type<T>>::type* = 0,
34 std::string strippedType, printedType, defaultsType;
43 const std::string prefix = std::string(indent,
' ');
44 std::cout << prefix <<
"cdef cppclass " << defaultsType <<
":" << std::endl;
45 std::cout << prefix <<
" " << strippedType <<
"() nogil" << std::endl;
46 std::cout << prefix << std::endl;
56 const typename boost::disable_if<arma::is_arma_type<T>>::type* = 0,
69 const typename boost::enable_if<arma::is_arma_type<T>>::type* = 0)
87 ImportDecl<typename std::remove_pointer<T>::type>(d, *((
size_t*) indent));