#include <Property.h>
Public Member Functions | |
void | aboutToChange () |
Mark the property as changed. More... | |
AtomicPropertyChange (P &prop, bool markChange=true) | |
Constructor. More... | |
void | tryInvoke () |
Check and invoke property's hasSetValue() More... | |
~AtomicPropertyChange () | |
Destructor. More... | |
App::AtomicPropertyChangeInterface< P >::AtomicPropertyChange::AtomicPropertyChange | ( | P & | prop, |
bool | markChange = true |
||
) |
Constructor.
prop | the property |
markChange | If true, marks the property as changed if it hasn't been marked before, and calls its aboutToSetValue(). |
References App::AtomicPropertyChangeInterface< P >::AtomicPropertyChange::aboutToChange().
App::AtomicPropertyChangeInterface< P >::AtomicPropertyChange::~AtomicPropertyChange | ( | ) |
Destructor.
If the property is marked as changed, and this is the last instance of the class in current call stack, it will call property's hasSetValue()
void App::AtomicPropertyChangeInterface< P >::AtomicPropertyChange::aboutToChange | ( | ) |
Mark the property as changed.
It will mark the property as changed only if it has been marked before, and only then will it call the property's aboutToSetValue().
Referenced by App::AtomicPropertyChangeInterface< P >::AtomicPropertyChange::AtomicPropertyChange().
void App::AtomicPropertyChangeInterface< P >::AtomicPropertyChange::tryInvoke | ( | ) |
Check and invoke property's hasSetValue()
Check if this is the last instance and the property has been marked as changed. If so, invoke property's hasSetValue().
Referenced by App::PropertyListsT< T, ListT, ParentT >::set1Value(), App::PropertyListsT< T, ListT, ParentT >::setPyValues(), and App::PropertyListsT< T, ListT, ParentT >::setValues().