Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

plist::CollectionCallbackMember< O > Struct Template Reference

Produces a callback on a member function when a value in the collection changes. More...

#include <plistCollections.h>

Inheritance diagram for plist::CollectionCallbackMember< O >:

Detailed Description

template<typename O>
struct plist::CollectionCallbackMember< O >

Produces a callback on a member function when a value in the collection changes.

Definition at line 243 of file plistCollections.h.

List of all members.

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
CollectionCallbackMemberoperator= (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 &)

Constructor & Destructor Documentation

template<typename O>
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.

template<typename O>
plist::CollectionCallbackMember< O >::CollectionCallbackMember ( CollectionCallbackMember< O > &   )  [private]

Member Function Documentation

template<typename O>
virtual void plist::CollectionCallbackMember< O >::activate ( bool  callNow = true  )  [virtual]

add listeners

Reimplemented from plist::AutoCollectionListener.

Definition at line 248 of file plistCollections.h.

template<typename O>
CollectionCallbackMember& plist::CollectionCallbackMember< O >::operator= ( const CollectionCallbackMember< O > &   ) 

assignment is a no-op

Definition at line 252 of file plistCollections.h.

template<typename O>
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.


Member Data Documentation


The documentation for this struct was generated from the following file:

Tekkotsu v5.1CVS
Generated Mon May 9 04:59:24 2016 by Doxygen 1.6.3