|
mlpack
|
A static object whose constructor registers a parameter with the IO class. More...
#include <cli_option.hpp>
Public Member Functions | |
| CLIOption (const N defaultValue, const std::string &identifier, const std::string &description, const std::string &alias, const std::string &cppName, const bool required=false, const bool input=true, const bool noTranspose=false, const std::string &="") | |
| Construct an Option object. More... | |
A static object whose constructor registers a parameter with the IO class.
This should not be used outside of IO itself, and you should use the PARAM_FLAG(), PARAM_DOUBLE(), PARAM_INT(), PARAM_STRING(), or other similar macros to declare these objects instead of declaring them directly.
|
inline |
Construct an Option object.
When constructed, it will register itself with IO.
| defaultValue | Default value this parameter will be initialized to (for flags, this should be false, for instance). |
| identifier | The name of the option (no dashes in front; for –help, we would pass "help"). |
| description | A short string describing the option. |
| alias | Short name of the parameter. "" for no alias. |
| cppName | Name of the C++ type of this parameter (i.e. "int"). |
| required | Whether or not the option is required at runtime. |
| input | Whether or not the option is an input option. |
| noTranspose | If the parameter is a matrix and this is true, then the matrix will not be transposed on loading. |
| * | (testName) Is not used and added for compatibility reasons. |
1.8.13