|
Mantid
|
Kernel/ArrayBoundedValidator.h. More...
#include <ArrayBoundedValidator.h>
Public Member Functions | |
| ArrayBoundedValidator ()=default | |
| ArrayBoundedValidator (BoundedValidator< TYPE > &bv) noexcept | |
| Constructor via a BoundedValidator. More... | |
| ArrayBoundedValidator (const ArrayBoundedValidator< TYPE > &abv) noexcept | |
| Copy constructor. More... | |
| ArrayBoundedValidator (const TYPE lowerBound, const TYPE upperBound) noexcept | |
| Constructor via bounds parameters. More... | |
| ArrayBoundedValidator (TYPE lowerBound, TYPE upperBound, bool exclusive) noexcept | |
| void | clearLower () noexcept |
| Clear lower bound value. More... | |
| void | clearUpper () noexcept |
| Clear upper bound value. More... | |
| IValidator_sptr | clone () const override |
| Clone the current state. More... | |
| bool | hasLower () const noexcept |
| Return if it has a lower bound. More... | |
| bool | hasUpper () const noexcept |
| Return if it has a lower bound. More... | |
| bool | isLowerExclusive () const noexcept |
| bool | isUpperExclusive () const noexcept |
| Check if upper bound is exclusive. More... | |
| TYPE | lower () const noexcept |
| Return the lower bound value. More... | |
| void | setError (const TYPE &value) noexcept |
| Set the allowed error. More... | |
| void | setExclusive (const bool exclusive) noexcept |
| Set both the upper and lower bounds to be exclusive. More... | |
| void | setLower (const TYPE &value) noexcept |
| Set lower bound value. More... | |
| void | setLowerExclusive (const bool exclusive) noexcept |
| Set the lower bound to be exclusive. More... | |
| void | setUpper (const TYPE &value) noexcept |
| Set upper bound value. More... | |
| void | setUpperExclusive (const bool exclusive) noexcept |
| Set the upper bound to be exclusive. More... | |
| TYPE | upper () const noexcept |
| Return the upper bound value. More... | |
Private Member Functions | |
| std::string | checkValidity (const std::vector< TYPE > &value) const override |
| Function that actually does the work of checking the validity of the array elements. More... | |
Private Attributes | |
| BoundedValidator< TYPE > | m_actualValidator |
Kernel/ArrayBoundedValidator.h.
ArrayBoundedValidator is a validator that requires all values in an array to be between upper or lower bounds, or both.
Definition at line 23 of file ArrayBoundedValidator.h.
|
default |
|
noexcept |
Copy constructor.
| abv | :: the ArrayBoundedValidator to copy |
Definition at line 19 of file ArrayBoundedValidator.cpp.
|
noexcept |
Constructor via bounds parameters.
| lowerBound | :: the lower bound value to validate |
| upperBound | :: the upper bound value to validate |
Definition at line 28 of file ArrayBoundedValidator.cpp.
|
noexcept |
Definition at line 32 of file ArrayBoundedValidator.cpp.
|
noexcept |
Constructor via a BoundedValidator.
| bv | :: the BoundedValidator object to use |
Definition at line 40 of file ArrayBoundedValidator.cpp.
|
overrideprivate |
Function that actually does the work of checking the validity of the array elements.
| value | :: the array to be checked |
Definition at line 57 of file ArrayBoundedValidator.cpp.
|
noexcept |
Clear lower bound value.
Definition at line 117 of file ArrayBoundedValidator.cpp.
|
noexcept |
Clear upper bound value.
Definition at line 119 of file ArrayBoundedValidator.cpp.
|
override |
Clone the current state.
Create a clone of the current ArrayBoundedValidator.
Definition at line 47 of file ArrayBoundedValidator.cpp.
|
noexcept |
Return if it has a lower bound.
Definition at line 75 of file ArrayBoundedValidator.cpp.
|
noexcept |
Return if it has a lower bound.
Definition at line 79 of file ArrayBoundedValidator.cpp.
|
noexcept |
Definition at line 87 of file ArrayBoundedValidator.cpp.
|
noexcept |
Check if upper bound is exclusive.
Definition at line 91 of file ArrayBoundedValidator.cpp.
|
noexcept |
Return the lower bound value.
Definition at line 83 of file ArrayBoundedValidator.cpp.
|
noexcept |
|
noexcept |
Set both the upper and lower bounds to be exclusive.
Definition at line 104 of file ArrayBoundedValidator.cpp.
|
noexcept |
Set lower bound value.
Definition at line 109 of file ArrayBoundedValidator.cpp.
References value.
Referenced by Mantid::CurveFitting::Functions::BSpline::resetValidators().
|
noexcept |
Set the lower bound to be exclusive.
Definition at line 95 of file ArrayBoundedValidator.cpp.
|
noexcept |
|
noexcept |
Set the upper bound to be exclusive.
Definition at line 99 of file ArrayBoundedValidator.cpp.
|
noexcept |
Return the upper bound value.
Definition at line 85 of file ArrayBoundedValidator.cpp.
|
private |
Definition at line 66 of file ArrayBoundedValidator.h.