knowL: Knowledge Libraries
|
#include <ConstrainedValue.h>
Classes | |
struct | Constraint |
struct | Private |
Public Types | |
enum class | Type { Equal , Different , Inferior , Superior , InferiorEqual , SuperiorEqual , GeoOverlaps , GeoWithin , GeoContains , GeoIntersects , GeoTouches , GeoDisjoint , Contains , NotContains , In , NotIn } |
Public Member Functions | |
ConstrainedValue (const ConstrainedValue &_rhs) | |
ConstrainedValue & | operator= (const ConstrainedValue &_rhs) |
bool | operator== (const ConstrainedValue &_value) const |
bool | hasConstraints () const |
QList< Constraint > | constraints () const |
cres_qresult< bool > | check (const Value &_value) |
cres_qresult< ValueRange > | update (const ValueRange &_range) |
template<typename _T_ > | |
cres_qresult< bool > | check (const _T_ &_value) |
ConstrainedValue & | apply (const Constraint &_constraint) |
ConstrainedValue & | apply (const Value &_value, Type _type) |
template<typename _T_ > | |
ConstrainedValue & | apply (const _T_ &_value, Type _type) |
This class allows to represent a ConstrainedValue with lower, upper or equality constraint.
|
strong |
ConstrainedValue & ConstrainedValue::apply | ( | const Constraint & | _constraint | ) |
Apply a constraint on this value.
ConstrainedValue & ConstrainedValue::apply | ( | const Value & | _value, |
ConstrainedValue::Type | _type ) |
Apply a constraint on this value, with the given _value and _type.
bool ConstrainedValue::hasConstraints | ( | ) | const |
cres_qresult< ValueRange > ConstrainedValue::update | ( | const ValueRange & | _range | ) |
Update a range according to the constraint.