Go to the documentation of this file.
13 #ifndef MLPACK_BINDINGS_CLI_END_PROGRAM_HPP
14 #define MLPACK_BINDINGS_CLI_END_PROGRAM_HPP
32 const std::map<std::string, util::ParamData>& parameters =
CLI::Parameters();
33 std::map<std::string, util::ParamData>::const_iterator it =
35 while (it != parameters.end())
46 Log::Info << std::endl <<
"Execution parameters:" << std::endl;
49 it = parameters.begin();
50 while (it != parameters.end())
55 std::string boostName;
57 NULL, (
void*) &boostName);
60 std::string printableParam;
62 NULL, (
void*) &printableParam);
68 Log::Info <<
"Program timers:" << std::endl;
79 std::unordered_map<void*, const util::ParamData*> memoryAddresses;
80 it = parameters.begin();
81 while (it != parameters.end())
87 NULL, (
void*) &result);
88 if (result != NULL && memoryAddresses.count(result) == 0)
89 memoryAddresses[result] = &data;
95 std::unordered_map<void*, const util::ParamData*>::const_iterator it2;
96 it2 = memoryAddresses.begin();
97 while (it2 != memoryAddresses.end())
static CLI & GetSingleton()
Retrieve the singleton.
void PrintTimer(const std::string &timerName)
Prints the specified timer.
std::map< std::string, std::chrono::microseconds > GetAllTimers()
Returns a copy of all the timers used via this interface.
void StopAllTimers()
Stop all timers.
bool input
True if this option is an input option (otherwise, it is output).
This structure holds all of the information about a single parameter, including its value (which is s...
void EndProgram()
Handle command-line program termination.
FunctionMapType functionMap
static bool HasParam(const std::string &identifier)
See if the specified flag was found while parsing.
Timers timer
Holds the timer objects.
static MLPACK_EXPORT util::PrefixedOutStream Info
Prints informational messages if –verbose is specified, prefixed with [INFO ].
static std::map< std::string, util::ParamData > & Parameters()
Return a modifiable list of parameters that CLI knows about.
std::string tname
Type information of this parameter.