|
| Param (ParamsBase &Owner, std::string ParamName, std::string_view ParamTitle, std::string_view ParamDescription, bool NeedsResetToApplyChange=true, ArithmeticType DefaultValue=ArithmeticType(), ArithmeticType MinValue=std::numeric_limits< ArithmeticType >::lowest(), ArithmeticType MaxValue=std::numeric_limits< ArithmeticType >::max(), ArithmeticType Increment=1, PrecisionType Precision=0) |
| Base constructor of any parameter to be used if a parameter should be displayed in a settings dialog (UserEditable is set to true). More...
|
|
| Param (ParamsBase &Owner, std::string ParamName, ArithmeticType DefaultValue=ArithmeticType(), ArithmeticType MinValue=std::numeric_limits< ArithmeticType >::lowest(), ArithmeticType MaxValue=std::numeric_limits< ArithmeticType >::max(), ArithmeticType Increment=1, PrecisionType Precision=0) |
| Base constructor of any parameter to be used if a parameter should not be displayed in a settings dialog (UserEditable is set to false). More...
|
|
| operator bool () const |
| Allo explicit casting to bool. Instances of this class evaluate to zero if and only if the stored value is 0. More...
|
|
|
Thread-safe since const member variables are returned.
|
ArithmeticType | GetMinValue () const noexcept |
| Returns the minimal allowed value. More...
|
|
ArithmeticType | GetMaxValue () const noexcept |
| Returns the maximal allowed value. More...
|
|
ArithmeticType | GetIncrement () const noexcept |
| Returns the value increment. More...
|
|
PrecisionType | GetPrecision () const noexcept |
| Returns the value precision. More...
|
|
ParamType | GetDefaultValue () const noexcept |
| Returns this parameter's default value. Thread-safe since a const member variable is returned. More...
|
|
| operator ParamType () const noexcept |
| Converts the parameter implicitly to its underlying type returning its current value. More...
|
|
const ParamType & | Get () const noexcept |
| Returns the parameter's value. More...
|
|
const ParamType & | operator= (const ParamType &NewValue) |
| Assigns a new value to this parameter. The operator cannot be accessed by Object because this function is not const. More...
|
|
| ParamBase (const ParamBase &)=delete |
|
ParamBase & | operator= (const ParamBase &)=delete |
|
QDomElement | ToXMLNode (QDomDocument &Document) const |
| Converts this parameter to a Qt dom element (describing an XML node containing this parameter's name and value). More...
|
|
void | FromXMLNode (const QDomElement &XMLElement) |
| Restores this parameter's value from the given Qt dom element (describing an XML node) More...
|
|
bool | Validate () |
| Checks whether a valid value is assigned to this parameter. This function is not const since it is also intended to reset the parameter if it is invalid. More...
|
|
void | Reset () |
| Resets this parameter to its default value. More...
|
|
bool | IsUserEditable () const noexcept |
| Returns ParamBase::UserEditable. More...
|
|
std::string_view | GetParamName () const noexcept |
| Returns ParamBase::ParamName. More...
|
|
std::string_view | GetParamTitle () const noexcept |
| Returns ParamBase::ParamTitle. More...
|
|
std::string_view | GetParamDescription () const noexcept |
| Returns ParamBase::ParamDescription. More...
|
|
bool | GetNeedsResetToApplyChange () const noexcept |
| Returns ParamBase::NeedsResetToApplyChange. More...
|
|
|
ParamsBaseOnlyType | ParamsBaseOnly |
| Provides the class ParamsBase access to some private members of class ParamBase . More...
|
|
| TypedParamBase (ParamsBase &Owner, std::string ParamName, std::string_view ParamTitle, std::string_view ParamDescription, bool NeedsResetToApplyChange=true, ParamType DefaultValue=ParamType()) |
| Base constructor of any parameter to be used if a parameter should be displayed in a settings dialog (UserEditable is set to true). More...
|
|
| TypedParamBase (ParamsBase &Owner, std::string ParamName, ParamType DefaultValue=ParamType()) |
| Base constructor of any parameter to be used if a parameter should not be displayed in a settings dialog (UserEditable is set to false). More...
|
|
virtual void | ToXMLNodeChild (QDomDocument &Document, QDomElement &XMLElement) const override |
| Converts this parameter to a Qt dom element (describing an XML node containing this parameter's name and value). More...
|
|
virtual void | FromXMLNodeChild (const QDomElement &XMLElement) override |
| Restores this parameter's value from the given Qt dom element (describing an XML node) More...
|
|
| ParamBase (ParamsBase &Owner, std::string ParamName, std::string_view ParamTitle, std::string_view ParamDescription, bool NeedsResetToApplyChange) |
| Base constructor of any parameter to be used if a parameter should be displayed in a settings dialog (UserEditable is set to true). More...
|
|
| ParamBase (ParamsBase &Owner, std::string ParamName) |
| Base constructor of any parameter to be used if a parameter should not be displayed in a settings dialog (UserEditable is set to false). More...
|
|
virtual | ~ParamBase ()=0 |
|
const auto & | GetOwner () const noexcept |
| Returns the ParamsBase instance owning this ParamBase instance. More...
|
|
auto & | GetOwner () noexcept |
| Returns the ParamsBase instance owning this ParamBase instance. More...
|
|
template<typename ArithmeticType>
class DynExp::ParamsBase::Param< ArithmeticType, std::enable_if_t< std::is_arithmetic_v< ArithmeticType > > >
Parameter for numbers. If ParamType
is an arithmetic type (integral or floating point), then extend TypedParamBase's
functionality by specifying the allowed number range and format.
- Template Parameters
-
ArithmeticType | Number type (std::is_arithmetic fulfilled) |
Definition at line 801 of file Object.h.