#include <property.h>
Public Member Functions | |
Property (ParentType *parentPtr, void(ParentType::*fptr)(DataType)) | |
Property< DataType, ParentType > & | operator= (const DataType &val) |
seal::Property< DataType, ParentType >::Property | ( | ParentType * | parentPtr, | |
void(ParentType::*)(DataType) | fptr | |||
) | [inline] |
Constructor.
parentPtr | Pointer to the parent object to which this object is a property. | |
fptr | Pointer to the member function of the parent object which this property will call when the value of the property changes. This binding to a parent class member function makes a property object appear to be an active property. |
Property<DataType, ParentType>& seal::Property< DataType, ParentType >::operator= | ( | const DataType & | val | ) | [inline] |
This assignment operator calls the member function of the parent object (to which the property object has been bound to) whenever the assignment operation changes the value of the property. This call to the bound function is what makes the property an active property.