|
OpenWalnut 1.2.5
|
This class allows constraining properties using a minimum value and the corresponding >= operator. More...
#include <WPropertyConstraintMin.h>
Inheritance diagram for WPropertyConstraintMin< T >:Public Member Functions | |
| WPropertyConstraintMin (T min) | |
| Constructor. | |
| virtual | ~WPropertyConstraintMin () |
| Destructor. | |
| virtual bool | accept (boost::shared_ptr< WPropertyVariable< T > > property, 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. | |
Private Attributes | |
| T | m_min |
| The minimal value the property should have. | |
This class allows constraining properties using a minimum value and the corresponding >= operator.
Definition at line 35 of file WPropertyConstraintMin.h.
| WPropertyConstraintMin< T >::WPropertyConstraintMin | ( | T | min | ) | [explicit] |
Constructor.
| min | the minimum value which the new property value should have. |
Definition at line 90 of file WPropertyConstraintMin.h.
| WPropertyConstraintMin< T >::~WPropertyConstraintMin | ( | ) | [virtual] |
Destructor.
Definition at line 96 of file WPropertyConstraintMin.h.
| bool WPropertyConstraintMin< T >::accept | ( | boost::shared_ptr< WPropertyVariable< T > > | property, |
| T | value | ||
| ) | [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 101 of file WPropertyConstraintMin.h.
| boost::shared_ptr< typename WPropertyVariable< T >::PropertyConstraint > WPropertyConstraintMin< T >::clone | ( | ) | [virtual] |
Method to clone the constraint and create a new one with the correct dynamic type.
Implements WPropertyVariable< T >::PropertyConstraint.
Definition at line 119 of file WPropertyConstraintMin.h.
| T WPropertyConstraintMin< T >::getMin | ( | ) |
Returns the current min value.
Definition at line 107 of file WPropertyConstraintMin.h.
| PROPERTYCONSTRAINT_TYPE WPropertyConstraintMin< T >::getType | ( | ) | [virtual] |
Allows simple identification of the real constraint type.
Reimplemented from WPropertyVariable< T >::PropertyConstraint.
Definition at line 113 of file WPropertyConstraintMin.h.
T WPropertyConstraintMin< T >::m_min [private] |
The minimal value the property should have.
Definition at line 86 of file WPropertyConstraintMin.h.
1.7.3