|
OpenWalnut
1.2.5
|
This class allows constraining properties to be not empty. More...
#include <WPropertyConstraintNotEmpty.h>
Inheritance diagram for WPropertyConstraintNotEmpty< T >:Public Member Functions | |
| WPropertyConstraintNotEmpty () | |
| Constructor. | |
| virtual | ~WPropertyConstraintNotEmpty () |
| 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. | |
| 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. | |
Public Member Functions inherited from WPropertyVariable< T >::PropertyConstraint | |
| PropertyConstraint () | |
| Default constructor. | |
| virtual | ~PropertyConstraint () |
| Destructor. | |
Additional Inherited Members | |
Static Public Member Functions inherited from WPropertyVariable< T >::PropertyConstraint | |
| static boost::shared_ptr < PropertyConstraint > | create (PROPERTYCONSTRAINT_TYPE type) |
| This method creates a constraint using the specified type. | |
This class allows constraining properties to be not empty.
This is especially useful for strings. This works on all types providing an empty() member function (as std::string and boost::filesystem::path do).
Definition at line 36 of file WPropertyConstraintNotEmpty.h.
|
explicit |
Constructor.
Definition at line 77 of file WPropertyConstraintNotEmpty.h.
|
virtual |
Destructor.
Definition at line 82 of file WPropertyConstraintNotEmpty.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 87 of file WPropertyConstraintNotEmpty.h.
|
virtual |
Method to clone the constraint and create a new one with the correct dynamic type.
Implements WPropertyVariable< T >::PropertyConstraint.
Definition at line 99 of file WPropertyConstraintNotEmpty.h.
|
virtual |
Allows simple identification of the real constraint type.
Reimplemented from WPropertyVariable< T >::PropertyConstraint.
Definition at line 93 of file WPropertyConstraintNotEmpty.h.
1.8.1