#include <Optika_SpecificParameterEntryValidators.hpp>
List of all members.
Public Member Functions |
| | GenericNumberValidator (QString type, S min, S max, S step) |
| | GenericNumberValidator (QString type, S step) |
| void | setMin (S min) |
| void | setMax (S max) |
| S | min () const |
| S | max () const |
| bool | hasMin () const |
| bool | hasMax () const |
| S | getStep () const |
| void | setStep (S step) |
| virtual const QString | getType () const |
Teuchos::RCP< const
Teuchos::Array< std::string > > | validStringValues () const |
|
void | validate (Teuchos::ParameterEntry const &entry, std::string const ¶mName, std::string const &sublistName) const |
|
void | printDoc (std::string const &docString, std::ostream &out) const |
Detailed Description
template<class S>
class Optika::GenericNumberValidator< S >
A Template base class for NumberValidators. Note that while this is not an abstract base class, you really shouldn't use it. Just use the EnhancedNumberValidator class.
Constructor & Destructor Documentation
Constructs a GenericNumberValidator.
- Parameters:
-
| type | The type of the validator. |
| min | The minimum acceptable value for this validator. |
| max | The maximum acceptable value for this validator. |
| step | The increments at which the value should be changed. This is mostly used for the QSpinBox that is used in the Optika GUI. If you're not using the GUI, you may ignore this parameter. |
Constructs a GenericNumberValidator without an explicit minimum or maximum.
- Parameters:
-
| type | The type of the validator. |
| step | The increments at which the value should be changed. This is mostly used for the QSpinBox that is used in the Optika GUI. If you're not using the GUI, you may ignore this parameter. |
Member Function Documentation
Gets the step being used for the validator.
- Returns:
- The step being used for the validator.
Gets the type of number being used.
- Returns:
- A string containting the name of the type.
Determines whether or not the validator has a maximum value.
- Returns:
- True if the validator has a maximum value, false otherwise.
Determines whether or not the validator has a minimum value.
- Returns:
- True if the validator has a minimum value, false otherwise.
Gets the maximum acceptable value for the validator.
- Returns:
- The maximum acceptable value for the validator.
Gets the minimum acceptable value for the validator.
- Returns:
- The minimum acceptable value for the validator.
Sets the maximum acceptable value for the validator.
- Parameters:
-
| min | The desired maximum acceptable value for the validator. |
Sets the minimum acceptable value for the validator.
- Parameters:
-
| min | The desired minimum acceptable value for the validator. |
Sets the step being used for the validator.
- Parameters:
-
| The | step to be used for the validator. |
The documentation for this class was generated from the following file:
- Optika_SpecificParameterEntryValidators.hpp