OpenWalnut  1.5.0dev
Private Member Functions | List of all members
WMHARDIToSphericalHarmonics::evenInt Class Reference

This class is derived from PropertyConstraint and ensures that only even values are valid. More...

+ Inheritance diagram for WMHARDIToSphericalHarmonics::evenInt:
+ Collaboration diagram for WMHARDIToSphericalHarmonics::evenInt:

Private Member Functions

virtual bool accept (std::shared_ptr< WPropertyVariable< WPVBaseTypes::PV_INT > > property, const WPVBaseTypes::PV_INT &value)
 You need to overwrite this method. More...
 
virtual std::shared_ptr< WPropertyVariable< WPVBaseTypes::PV_INT >::PropertyConstraintclone ()
 Method to clone the constraint and create a new one with the correct dynamic type. More...
 

Additional Inherited Members

- Public Member Functions inherited from WPropertyVariable< T >::PropertyConstraint
 PropertyConstraint ()
 Default constructor. More...
 
virtual ~PropertyConstraint ()
 Destructor. More...
 
virtual bool accept (std::shared_ptr< WPropertyVariable< T > > property, const T &value)=0
 This method decides whether the specified value is valid for a specific property. More...
 
virtual PROPERTYCONSTRAINT_TYPE getType ()
 Allows simple identification of the real constraint type. More...
 
- Static Public Member Functions inherited from WPropertyVariable< T >::PropertyConstraint
static std::shared_ptr< PropertyConstraintcreate (PROPERTYCONSTRAINT_TYPE type)
 This method creates a constraint using the specified type. More...
 

Detailed Description

This class is derived from PropertyConstraint and ensures that only even values are valid.

Definition at line 176 of file WMHARDIToSphericalHarmonics.h.

Member Function Documentation

◆ accept()

bool WMHARDIToSphericalHarmonics::evenInt::accept ( std::shared_ptr< WPropertyVariable< WPVBaseTypes::PV_INT > >  property,
const WPVBaseTypes::PV_INT value 
)
privatevirtual

You need to overwrite this method.

It decides whether the specified new value should be accepted or not.

Parameters
propertythe property thats going to be changed.
valuethe new value
Returns
true if the new value is OK.

Definition at line 366 of file WMHARDIToSphericalHarmonics.cpp.

◆ clone()

std::shared_ptr< WPropertyVariable< WPVBaseTypes::PV_INT >::PropertyConstraint > WMHARDIToSphericalHarmonics::evenInt::clone ( )
privatevirtual

Method to clone the constraint and create a new one with the correct dynamic type.

Returns
the constraint.

Implements WPropertyVariable< T >::PropertyConstraint.

Definition at line 372 of file WMHARDIToSphericalHarmonics.cpp.


The documentation for this class was generated from the following files: