NEML2 1.4.0
|
Concrete definition of an option value for a specified type
#include <OptionSet.h>
Public Member Functions | |
Option (const std::string &name) | |
virtual bool | operator== (const OptionBase &other) const override |
Test for option equality. | |
const T & | get () const |
T & | set () |
virtual void | print (std::ostream &) const override |
virtual std::unique_ptr< OptionBase > | clone () const override |
Public Member Functions inherited from OptionSet::OptionBase | |
virtual | ~OptionBase ()=default |
const std::string & | name () const |
A readonly reference to the option's name. | |
const std::string & | type () const |
A readonly reference to the option's type. | |
const std::string & | doc () const |
A readonly reference to the option's docstring. | |
std::string & | doc () |
A writable reference to the option's docstring. | |
const bool & | suppressed () const |
A readonly reference to the option's suppression status. | |
bool & | suppressed () |
A writable reference to the option's suppression status. | |
Additional Inherited Members | |
Protected Attributes inherited from OptionSet::OptionBase | |
struct neml2::OptionSet::OptionBase::Metadata | _metadata |
|
overridevirtual |
Clone this value. Useful in copy-construction. Must be reimplemented in derived classes.
Implements OptionSet::OptionBase.
|
overridevirtual |
Test for option equality.
Implements OptionSet::OptionBase.
Prints the option value to the specified stream. Must be reimplemented in derived classes.
Implements OptionSet::OptionBase.
|
inline |