39 #ifndef OME_XML_MODEL_PRIMITIVES_NUMERICCONSTRAINTS_H
40 #define OME_XML_MODEL_PRIMITIVES_NUMERICCONSTRAINTS_H
42 #include <ome/xml/model/primitives/ConstrainedNumeric.h>
70 return value >
static_cast<N
>(0);
112 return value >=
static_cast<N
>(0);
154 return value >= 0.0 && value <= 1.0;
163 #endif // OME_XML_MODEL_PRIMITIVES_NUMERICCONSTRAINTS_H
bool operator()(const N &value) const
Check that value > 0.0.
Definition: NumericConstraints.h:89
bool operator()(const N &value) const
Check that value >= 0.
Definition: NumericConstraints.h:110
Constraint for strictly positive integer values.
Definition: NumericConstraints.h:59
Constraint for non-negative integer values.
Definition: NumericConstraints.h:101
Open Microscopy Environment C++ implementation.
Definition: CoreMetadata.cpp:40
Constraint for strictly positive floating point values.
Definition: NumericConstraints.h:80
Constraint for fractional floating point values.
Definition: NumericConstraints.h:143
bool operator()(const N &value) const
Check that 0.0 <= value <= 1.0.
Definition: NumericConstraints.h:152
Constraint for non-negative floating point values.
Definition: NumericConstraints.h:122
bool operator()(const N &value) const
Check that value >= 0.0.
Definition: NumericConstraints.h:131
bool operator()(const N &value) const
Check that value > 0.
Definition: NumericConstraints.h:68
Xerces-C modern C++ wrapper.
Definition: Base.h:53