| Tekkotsu Homepage | Demos | Overview | Downloads | Dev. Resources | Reference | Credits |
plist::CollectionCallbackMember< O > Struct Template ReferenceProduces a callback on a member function when a value in the collection changes. More...
Inheritance diagram for plist::CollectionCallbackMember< O >:
![]() Detailed Descriptiontemplate<typename O>
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Public Member Functions | |
| CollectionCallbackMember (const plist::Collection &source, O &component, void(O::*func)(), bool callOnAdd=true) | |
| constructor | |
| virtual void | plistValueChanged (const plist::PrimitiveBase &) |
| This will be called whenever a plist you have registered with is changed. | |
| virtual void | activate (bool callNow=true) |
| add listeners | |
| CollectionCallbackMember & | operator= (const CollectionCallbackMember &) |
| assignment is a no-op | |
Public Attributes | |
| O & | comp |
| instance to call on | |
| void(O::* | callback )() |
| function to call | |
Private Member Functions | |
| CollectionCallbackMember (CollectionCallbackMember &) | |
| plist::CollectionCallbackMember< O >::CollectionCallbackMember | ( | const plist::Collection & | source, | |
| O & | component, | |||
| void(O::*)() | func, | |||
| bool | callOnAdd = true | |||
| ) |
constructor
Definition at line 245 of file plistCollections.h.
| plist::CollectionCallbackMember< O >::CollectionCallbackMember | ( | CollectionCallbackMember< O > & | ) | [private] |
| virtual void plist::CollectionCallbackMember< O >::activate | ( | bool | callNow = true |
) | [virtual] |
add listeners
Reimplemented from plist::AutoCollectionListener.
Definition at line 248 of file plistCollections.h.
| CollectionCallbackMember& plist::CollectionCallbackMember< O >::operator= | ( | const CollectionCallbackMember< O > & | ) |
assignment is a no-op
Definition at line 252 of file plistCollections.h.
| virtual void plist::CollectionCallbackMember< 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 247 of file plistCollections.h.
| void(O::* plist::CollectionCallbackMember< O >::callback)() |
function to call
Definition at line 250 of file plistCollections.h.
Referenced by plist::CollectionCallbackMember< PhysicsBody >::activate(), plist::CollectionCallbackMember< PhysicsBody >::CollectionCallbackMember(), and plist::CollectionCallbackMember< PhysicsBody >::plistValueChanged().
| O& plist::CollectionCallbackMember< O >::comp |
instance to call on
Definition at line 249 of file plistCollections.h.
Referenced by plist::CollectionCallbackMember< PhysicsBody >::activate(), plist::CollectionCallbackMember< PhysicsBody >::CollectionCallbackMember(), and plist::CollectionCallbackMember< PhysicsBody >::plistValueChanged().
|
Tekkotsu v5.1CVS |
Generated Mon May 9 04:59:24 2016 by Doxygen 1.6.3 |