mlpack
3.4.2
mlpack-3.4.2
src
mlpack
bindings
markdown
get_param.hpp
Go to the documentation of this file.
1
12
#ifndef MLPACK_BINDINGS_MARKDOWN_GET_PARAM_HPP
13
#define MLPACK_BINDINGS_MARKDOWN_GET_PARAM_HPP
14
15
#include <
mlpack/prereqs.hpp
>
16
17
namespace
mlpack
{
18
namespace
bindings {
19
namespace
markdown {
20
25
template
<
typename
T>
26
void
GetParam
(
util::ParamData
& d,
27
const
void
*
/* input */
,
28
void
* output)
29
{
30
util::ParamData
& dmod =
const_cast<
util::ParamData
&
>
(d);
31
*((T**) output) = boost::any_cast<T>(&dmod.
value
);
32
}
33
34
}
// namespace markdown
35
}
// namespace bindings
36
}
// namespace mlpack
37
38
#endif
mlpack::bindings::markdown::GetParam
void GetParam(util::ParamData &d, const void *, void *output)
All Markdown binding types are exactly what is held in the ParamData, so no special handling is neces...
Definition:
get_param.hpp:26
prereqs.hpp
The core includes that mlpack expects; standard C++ includes and Armadillo.
mlpack::util::ParamData::value
boost::any value
The actual value that is held.
Definition:
param_data.hpp:82
mlpack::util::ParamData
This structure holds all of the information about a single parameter, including its value (which is s...
Definition:
param_data.hpp:53
mlpack
Linear algebra utility functions, generally performed on matrices or vectors.
Definition:
add_to_cli11.hpp:21
Generated by
1.8.20