|
Clio
develop
The XRP Ledger API server.
|
A constraint class to ensure an integer value is between two numbers (inclusive). More...
#include <ConfigConstraints.hpp>


Public Member Functions | |
| constexpr | NumberValueConstraint (NumType min, NumType max) |
| Constructs a constraint where the number must be between min_ and max_. | |
| Public Member Functions inherited from util::config::Constraint | |
| std::optional< Error > | checkConstraint (Value const &val) const |
| Check if the value meets the specific constraint. | |
Additional Inherited Members | |
| Protected Member Functions inherited from util::config::Constraint | |
| template<std::size_t ArrSize> | |
| constexpr std::string | makeErrorMsg (std::string_view key, Value const &value, std::array< std::string_view, ArrSize > arr) const |
| Creates an error message for all constraints that must satisfy certain hard-coded values. | |
A constraint class to ensure an integer value is between two numbers (inclusive).
|
inlineconstexpr |
Constructs a constraint where the number must be between min_ and max_.
| min | the minimum number it can be to satisfy this constraint |
| max | the maximum number it can be to satisfy this constraint |