25 #ifndef WPROPERTYCONSTRAINTMIN_H
26 #define WPROPERTYCONSTRAINTMIN_H
28 #include "../WPropertyTypes.h"
29 #include "WPropertyConstraintTypes.h"
34 template<
typename T >
72 virtual PROPERTYCONSTRAINT_TYPE
getType();
79 virtual boost::shared_ptr< typename WPropertyVariable< T >::PropertyConstraint >
clone();
88 template <
typename T >
94 template <
typename T >
99 template <
typename T >
102 return value >= m_min;
105 template <
typename T >
111 template <
typename T >
117 template <
typename T >
123 #endif // WPROPERTYCONSTRAINTMIN_H
virtual boost::shared_ptr< typename WPropertyVariable< T >::PropertyConstraint > clone()
Method to clone the constraint and create a new one with the correct dynamic type.
WPropertyConstraintMin(T min)
Constructor.
virtual PROPERTYCONSTRAINT_TYPE getType()
Allows simple identification of the real constraint type.
A named property class with a concrete type.
virtual bool accept(boost::shared_ptr< WPropertyVariable< T > > property, const T &value)
Checks whether the specified new value is larger or equal to the specified min value.
virtual ~WPropertyConstraintMin()
Destructor.
T m_min
The minimal value the property should have.
This class allows constraining properties using a minimum value and the corresponding >= operator...
T getMin()
Returns the current min value.
PropertyConstraint()
Default constructor.