Tekkotsu Homepage | Demos | Overview | Downloads | Dev. Resources | Reference | Credits |
plist::PrimitiveCallbackMember< O > Struct Template ReferenceProduces a callback on a member function when the value changes. More...
Inheritance diagram for plist::PrimitiveCallbackMember< O >:
Detailed Descriptiontemplate<typename O>
|
Public Member Functions | |
PrimitiveCallbackMember (const plist::PrimitiveBase &source, O &component, void(O::*func)(), bool callNow=true) | |
constructor | |
PrimitiveCallbackMember & | operator= (const PrimitiveCallbackMember &) |
assignment, no-op | |
virtual void | plistValueChanged (const plist::PrimitiveBase &) |
This will be called whenever a plist you have registered with is changed. | |
Public Attributes | |
O & | comp |
instance to call on | |
void(O::* | callback )() |
function to call |
plist::PrimitiveCallbackMember< O >::PrimitiveCallbackMember | ( | const plist::PrimitiveBase & | source, | |
O & | component, | |||
void(O::*)() | func, | |||
bool | callNow = true | |||
) |
constructor
Definition at line 207 of file plistPrimitives.h.
PrimitiveCallbackMember& plist::PrimitiveCallbackMember< O >::operator= | ( | const PrimitiveCallbackMember< O > & | ) |
assignment, no-op
Definition at line 210 of file plistPrimitives.h.
virtual void plist::PrimitiveCallbackMember< O >::plistValueChanged | ( | const plist::PrimitiveBase & | pl | ) | [virtual] |
This will be called whenever a plist you have registered with is changed.
pl is const to help you avoid infinite recursion from an accidental modification of pl's value -- use a const cast if you're sure you know what you're doing
Implements plist::PrimitiveListener.
Definition at line 211 of file plistPrimitives.h.
void(O::* plist::PrimitiveCallbackMember< O >::callback)() |
function to call
Definition at line 213 of file plistPrimitives.h.
O& plist::PrimitiveCallbackMember< O >::comp |
instance to call on
Definition at line 212 of file plistPrimitives.h.
Tekkotsu v5.1CVS |
Generated Mon May 9 04:59:25 2016 by Doxygen 1.6.3 |