OpenWalnut
1.4.0
|
This class allows constraining selection properties to not allow selection of multiple items. More...
#include <WPropertyConstraintSelectOnlyOne.h>
Public Member Functions | |
WPropertyConstraintSelectOnlyOne () | |
Constructor. | |
virtual | ~WPropertyConstraintSelectOnlyOne () |
Destructor. | |
virtual bool | accept (boost::shared_ptr< WPropertyVariable< T > > property, const T &value) |
Checks whether the specified value is a directory or not. | |
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. |
This class allows constraining selection properties to not allow selection of multiple items.
Definition at line 35 of file WPropertyConstraintSelectOnlyOne.h.
WPropertyConstraintSelectOnlyOne< T >::WPropertyConstraintSelectOnlyOne | ( | ) | [explicit] |
Constructor.
Definition at line 76 of file WPropertyConstraintSelectOnlyOne.h.
WPropertyConstraintSelectOnlyOne< T >::~WPropertyConstraintSelectOnlyOne | ( | ) | [virtual] |
Destructor.
Definition at line 81 of file WPropertyConstraintSelectOnlyOne.h.
bool WPropertyConstraintSelectOnlyOne< T >::accept | ( | boost::shared_ptr< WPropertyVariable< T > > | property, |
const T & | value | ||
) | [virtual] |
Checks whether the specified value is a directory or not.
property | the property whose new value should be set. |
value | the new value to check |
Implements WPropertyVariable< T >::PropertyConstraint.
Definition at line 86 of file WPropertyConstraintSelectOnlyOne.h.
boost::shared_ptr< typename WPropertyVariable< T >::PropertyConstraint > WPropertyConstraintSelectOnlyOne< 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 98 of file WPropertyConstraintSelectOnlyOne.h.
PROPERTYCONSTRAINT_TYPE WPropertyConstraintSelectOnlyOne< T >::getType | ( | ) | [virtual] |
Allows simple identification of the real constraint type.
Reimplemented from WPropertyVariable< T >::PropertyConstraint.
Definition at line 92 of file WPropertyConstraintSelectOnlyOne.h.