creativity
v1.3.0
Agent-based model of creativity and piracy
|
Validation wrapper for options that have a strict inequality boundary that the value must be below, such as \(v < 3\). More...
#include <creativity/cmdargs/Validation.hpp>
Public Member Functions | |
Below (T v) | |
Constructor. Throws if v >= upper . | |
![]() | |
Validation (T v) | |
Constructs with an initial value. | |
operator const T & () const | |
Implicit conversion to the stored value. | |
virtual | ~Validation ()=default |
Virtual destructor. | |
Static Public Member Functions | |
static std::string | validationString () |
Returns string representation of this validation. | |
![]() | |
static std::string | validationString () |
Returns a string representation of this validation object. | |
Additional Inherited Members | |
![]() | |
using | value_type = T |
The type T that this object validates. | |
![]() | |
T | val_ |
The stored value. | |
Validation wrapper for options that have a strict inequality boundary that the value must be below, such as \(v < 3\).
T | any numeric type |
upper | the upper bound that the value must be above (or the numerator of the value) |
the | denominator under lower . Defaults to 1. |