MDOption< T > Class Template Reference

The Markdown option class. More...

Public Member Functions

 MDOption (const T 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 &bindingName="")
 Construct an MDOption object. More...

 

Detailed Description


template
<
typename
T
>

class mlpack::bindings::markdown::MDOption< T >

The Markdown option class.

Definition at line 33 of file md_option.hpp.

Constructor & Destructor Documentation

◆ MDOption()

MDOption ( const T  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 &  bindingName = "" 
)
inline

Construct an MDOption object.

When constructed, it will register itself with CLI. The testName parameter is not used and added for compatibility reasons.

Definition at line 41 of file md_option.hpp.

References IO::AddFunction(), IO::AddParameter(), ParamData::alias, ParamData::cppType, ParamData::desc, ParamData::input, ParamData::loaded, ParamData::name, ParamData::noTranspose, Params::Parameters(), IO::Parameters(), ParamData::required, ParamData::tname, TYPENAME, ParamData::value, and ParamData::wasPassed.


The documentation for this class was generated from the following file:
  • /home/ryan/src/mlpack.org/_src/mlpack-git/src/mlpack/bindings/markdown/md_option.hpp