OpenWalnut
1.3.1
|
This class allows constraining properties using a minimum value and the corresponding >= operator. More...
#include <WPropertyConstraintMin.h>
Public Member Functions | |
WPropertyConstraintMin (T min) | |
Constructor. | |
virtual | ~WPropertyConstraintMin () |
Destructor. | |
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. | |
T | getMin () |
Returns the current min value. | |
virtual PROPERTYCONSTRAINT_TYPE | getType () |
Allows simple identification of the real constraint type. | |
virtual boost::shared_ptr < typename WPropertyVariable < T >::PropertyConstraint > | clone () |
Method to clone the constraint and create a new one with the correct dynamic type. | |
![]() | |
PropertyConstraint () | |
Default constructor. | |
virtual | ~PropertyConstraint () |
Destructor. |
Private Attributes | |
T | m_min |
The minimal value the property should have. |
Additional Inherited Members | |
![]() | |
static boost::shared_ptr < PropertyConstraint > | create (PROPERTYCONSTRAINT_TYPE type) |
This method creates a constraint using the specified type. |
This class allows constraining properties using a minimum value and the corresponding >= operator.
Definition at line 35 of file WPropertyConstraintMin.h.
|
explicit |
Constructor.
min | the minimum value which the new property value should have. |
Definition at line 89 of file WPropertyConstraintMin.h.
|
virtual |
Destructor.
Definition at line 95 of file WPropertyConstraintMin.h.
|
virtual |
Checks whether the specified new value is larger or equal to the specified min value.
property | the property whose new value should be set. |
value | the new value to check |
Implements WPropertyVariable< T >::PropertyConstraint.
Definition at line 100 of file WPropertyConstraintMin.h.
|
virtual |
Method to clone the constraint and create a new one with the correct dynamic type.
Implements WPropertyVariable< T >::PropertyConstraint.
Definition at line 118 of file WPropertyConstraintMin.h.
T WPropertyConstraintMin< T >::getMin | ( | ) |
Returns the current min value.
Definition at line 106 of file WPropertyConstraintMin.h.
|
virtual |
Allows simple identification of the real constraint type.
Reimplemented from WPropertyVariable< T >::PropertyConstraint.
Definition at line 112 of file WPropertyConstraintMin.h.
|
private |
The minimal value the property should have.
Definition at line 85 of file WPropertyConstraintMin.h.