get_python_type.hpp File Reference
Include dependency graph for get_python_type.hpp:

Go to the source code of this file.

Namespaces

 mlpack
 
.hpp
 
 mlpack::bindings
 
 mlpack::bindings::python
 

Functions

template
<
typename
T
>
std::string GetPythonType (const util::ParamData &, 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< arma::is_arma_type< T >>::type *=0)
 
template
<
typename
T
>
std::string GetPythonType (const util::ParamData &d, const typename boost::enable_if< util::IsStdVector< T >>::type *=0)
 
template
<
typename
T
>
std::string GetPythonType (const util::ParamData &, const typename boost::enable_if< arma::is_arma_type< T >>::type *=0)
 
template
<
typename
T
>
std::string GetPythonType (const util::ParamData &d, const typename boost::disable_if< arma::is_arma_type< T >>::type *=0, const typename boost::enable_if< data::HasSerialize< T >>::type *=0)
 
template
<
>
std::string GetPythonType< bool > (const util::ParamData &, const typename boost::disable_if< util::IsStdVector< bool >>::type *, const typename boost::disable_if< data::HasSerialize< bool >>::type *, const typename boost::disable_if< arma::is_arma_type< bool >>::type *)
 
template
<
>
std::string GetPythonType< double > (const util::ParamData &, const typename boost::disable_if< util::IsStdVector< double >>::type *, const typename boost::disable_if< data::HasSerialize< double >>::type *, const typename boost::disable_if< arma::is_arma_type< double >>::type *)
 
template
<
>
std::string GetPythonType< float > (const util::ParamData &, const typename boost::disable_if< util::IsStdVector< float >>::type *, const typename boost::disable_if< data::HasSerialize< float >>::type *, const typename boost::disable_if< arma::is_arma_type< float >>::type *)
 
template
<
>
std::string GetPythonType< int > (const util::ParamData &, const typename boost::disable_if< util::IsStdVector< int >>::type *, const typename boost::disable_if< data::HasSerialize< int >>::type *, const typename boost::disable_if< arma::is_arma_type< int >>::type *)
 
template
<
>
std::string GetPythonType< size_t > (const util::ParamData &, const typename boost::disable_if< util::IsStdVector< size_t >>::type *, const typename boost::disable_if< data::HasSerialize< size_t >>::type *, const typename boost::disable_if< arma::is_arma_type< size_t >>::type *)
 
template
<
>
std::string GetPythonType< std::string > (const util::ParamData &, const typename boost::disable_if< util::IsStdVector< std::string >>::type *, const typename boost::disable_if< data::HasSerialize< std::string >>::type *, const typename boost::disable_if< arma::is_arma_type< std::string >>::type *)
 

Detailed Description

Author
Ryan Curtin

Template metaprogramming to return the string representation of the Python type for a given Python binding parameter.

mlpack is free software; you may redistribute it and/or modify it under the terms of the 3-clause BSD license. You should have received a copy of the 3-clause BSD license along with mlpack. If not, see http://www.opensource.org/licenses/BSD-3-Clause for more information.

Definition in file get_python_type.hpp.