string_type_param.hpp File Reference
Include dependency graph for string_type_param.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 mlpack
 
Linear algebra utility functions, generally performed on matrices or vectors.
 
 mlpack::bindings
 
 mlpack::bindings::cli
 

Functions

template
<
typename
T
>
void StringTypeParam (util::ParamData &, const void *, void *output)
 Return a string containing the type of a parameter. More...

 
template
<
>
void StringTypeParam< bool > (util::ParamData &, const void *, void *output)
 Return "bool". More...

 
template
<
>
void StringTypeParam< double > (util::ParamData &, const void *, void *output)
 Return "double". More...

 
template
<
>
void StringTypeParam< int > (util::ParamData &, const void *, void *output)
 Return "int". More...

 
template
<
>
void StringTypeParam< std::string > (util::ParamData &, const void *, void *output)
 Return "string". More...

 
template
<
>
void StringTypeParam< std::tuple< mlpack::data::DatasetInfo, arma::mat > > (util::ParamData &, const void *, void *output)
 Return "string";. More...

 
template
<
typename
T
>
std::string 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. More...

 
template
<
typename
T
>
std::string StringTypeParamImpl (const typename std::enable_if< util::IsStdVector< T >::value >::type *=0)
 Return a string containing the type of the parameter, for vector options. More...

 
template
<
typename
T
>
std::string StringTypeParamImpl (const typename std::enable_if< data::HasSerialize< T >::value >::type *=0)
 Return a string containing the type of the parameter,. More...

 

Detailed Description

Author
Ryan Curtin

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.

Definition in file string_type_param.hpp.