|
mlpack
|
#include <mlpack/prereqs.hpp>#include <mlpack/core/util/param_data.hpp>#include <mlpack/core/util/is_std_vector.hpp>#include "string_type_param_impl.hpp"

Go to the source code of this file.
Namespaces | |
| mlpack | |
| Linear algebra utility functions, generally performed on matrices or vectors. | |
Functions | |
| template<typename T > | |
| std::string | mlpack::bindings::cli::StringTypeParamImpl (const typename std::enable_if<!util::IsStdVector< T >::value >::type *=0, const typename std::enable_if<!data::HasSerialize< T >::value >::type *=0) |
| Return a string containing the type of the parameter. | |
| template<typename T > | |
| std::string | mlpack::bindings::cli::StringTypeParamImpl (const typename std::enable_if< util::IsStdVector< T >::value >::type *=0) |
| Return a string containing the type of the parameter, for vector options. | |
| template<typename T > | |
| std::string | mlpack::bindings::cli::StringTypeParamImpl (const typename std::enable_if< data::HasSerialize< T >::value >::type *=0) |
| Return a string containing the type of the parameter,. | |
| template<typename T > | |
| void | mlpack::bindings::cli::StringTypeParam (util::ParamData &, const void *, void *output) |
| Return a string containing the type of a parameter. More... | |
| template<> | |
| void | mlpack::bindings::cli::StringTypeParam< int > (util::ParamData &, const void *, void *output) |
| Return "int". | |
| template<> | |
| void | mlpack::bindings::cli::StringTypeParam< bool > (util::ParamData &, const void *, void *output) |
| Return "bool". | |
| template<> | |
| void | mlpack::bindings::cli::StringTypeParam< std::string > (util::ParamData &, const void *, void *output) |
| Return "string". | |
| template<> | |
| void | mlpack::bindings::cli::StringTypeParam< double > (util::ParamData &, const void *, void *output) |
| Return "double". | |
| template<> | |
| void | mlpack::bindings::cli::StringTypeParam< std::tuple< mlpack::data::DatasetInfo, arma::mat > > (util::ParamData &, const void *, void *output) |
| Return "string";. | |
Given a util::ParamData object, return a string containing the type of the input parameter as given on the command-line.
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.
| void mlpack::bindings::cli::StringTypeParam | ( | util::ParamData & | , |
| const void * | , | ||
| void * | output | ||
| ) |
Return a string containing the type of a parameter.
This overload is used if we don't have a primitive type.
1.8.13