#include <PropertyLink.h>
Inheritance diagram for Odyssey::CallablePropertyLink:
Public Member Functions | |
CallablePropertyLink (Callable proc) | |
Constructs the link with the given callable as the target. | |
void | link (PropertyProxy &parent, PropertyProxy &child) |
Calls the set callable to perform the actual property linking. |
This class delegates the linking of two properties to a callable object. This allows for external "hooking" into the link process.
The callable object must have the given function signature: Variable func(const Variable&) You can, of course, prototype the function to take concrete argument types and allow the callable to do the conversions, but the above signature is the most general. The argument will be the value of the parent property, and the callable should return the value to be assigned to the child property.
|
Constructs the link with the given callable as the target.
|
|
Calls the set callable to perform the actual property linking.
Implements Odyssey::PropertyLink. |