24 #ifndef ARM_COMPUTE_TEST_SIMPLEOPTION 25 #define ARM_COMPUTE_TEST_SIMPLEOPTION 65 std::string
help()
const override;
71 const T &
value()
const;
79 :
Option{ std::move(name),
false,
true }, _value{ std::move(default_value) }
88 std::stringstream stream{ std::move(value) };
90 _is_set = !stream.fail();
93 catch(
const std::invalid_argument &)
102 _value = std::move(value);
107 template <
typename T>
110 return "--" +
name() +
"=VALUE - " + _help;
113 template <
typename T>
bool parse(std::string value) override
Parses the given string.
Implementation of an option that accepts a single value.
This file contains all available output stages for GEMMLowp on OpenCL.
SimpleOption(std::string name, T default_value)
Construct the option with the given default value.
Abstract base class for a command line option.
std::string help() const override
Help message for the option.
Option(std::string name)
Constructor.
std::string name() const
Name of the option.
const T & value() const
Get the option value.