PLMCallback Class ReferenceMember function pointer abstraction. More...
Inheritance diagram for PLMCallback: ![]()
Detailed DescriptionMember function pointer abstraction.Notes on callbacks use : Goal: allows to use pointers on member functions as standard pointers. Use : One object A needs a pointer to the member function of another object B, the first one (A) is the 'caller', the second one is the 'called' (B). So:
class CObjectA { ... PLMCallback *cb; ... ??? func (???) { ... if (cb) cb->Execute(???); ... } }; class CObjectB { ... void methodB (void *); ... }; CObjectB bb; CObjectA caller; caller.cb = new PLMCallbackDef<CObjectB> (&bb, &CObjectB::methodB);
Member Function Documentation
The documentation for this class was generated from the following file:
Generated by Doxygen 1.2.18 on Tue Oct 26 12:07:38 2004. |
|||||||||||||||