Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

plist::PrimitiveCallbackMember< O > Struct Template Reference

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

#include <plistPrimitives.h>

Inheritance diagram for plist::PrimitiveCallbackMember< O >:

Detailed Description

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

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

Definition at line 205 of file plistPrimitives.h.

List of all members.

Public Member Functions

 PrimitiveCallbackMember (const plist::PrimitiveBase &source, O &component, void(O::*func)(), bool callNow=true)
 constructor
PrimitiveCallbackMemberoperator= (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

Constructor & Destructor Documentation

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


Member Function Documentation

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

assignment, no-op

Definition at line 210 of file plistPrimitives.h.

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


Member Data Documentation

template<typename O>
void(O::* plist::PrimitiveCallbackMember< O >::callback)()

function to call

Definition at line 213 of file plistPrimitives.h.

template<typename O>
O& plist::PrimitiveCallbackMember< O >::comp

instance to call on

Definition at line 212 of file plistPrimitives.h.


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

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