Audacity 3.2.0
|
Parameter must lie between the two given numbers. More...
#include <Validators.h>
Public Member Functions | |
RangeValidator (double l, double u) | |
bool | Validate (const wxVariant &v) override |
Judge whether the passed value satisfies the Validator. More... | |
wxString | GetDescription () const override |
Holder | GetClone () const override |
Public Member Functions inherited from Validator | |
Validator () | |
virtual | ~Validator () |
void | SetConverted (const wxVariant &v) |
const wxVariant & | GetConverted () |
virtual bool | Validate (const wxVariant &v) |
Judge whether the passed value satisfies the Validator. More... | |
virtual wxString | GetDescription () const |
virtual Holder | GetClone () const =0 |
Private Attributes | |
double | mLower |
double | mUpper |
Additional Inherited Members | |
Public Types inherited from Validator | |
using | Holder = std::unique_ptr< Validator > |
This MUST be overridden, to avoid slicing! More... | |
Parameter must lie between the two given numbers.
Definition at line 202 of file Validators.h.
|
inline |
Definition at line 207 of file Validators.h.
|
inlineoverridevirtual |
|
inlineoverridevirtual |
|
inlineoverridevirtual |
Judge whether the passed value satisfies the Validator.
Reimplemented from Validator.
Definition at line 210 of file Validators.h.
References mLower, mUpper, and Validator::SetConverted().
|
private |
Definition at line 205 of file Validators.h.
Referenced by GetClone(), GetDescription(), and Validate().
|
private |
Definition at line 205 of file Validators.h.
Referenced by GetClone(), GetDescription(), and Validate().