#include <signalCall.h>
Users can ignore this class, NOT FOR GENERAL USE. just some framework stuff related to insuring that when an object deletes, we don't get seg faults because a signal didn't know about it.
TODO: need to figure out how to copy signals!
This system works if an instance SignalTracker is declared in a class recieving signals (has slots), since this object is destructed with the owning object it will detatch all signals it recieves. This way, when an object with slots destructs, we won't get runtime seg-faults when a signal is sent to an object that no longer exists. This is why we have HAS_SLOTS, it adds one of these to the class with a specific variable name that _Call will use when it is constructed.
Definition at line 67 of file signalCall.h.
Public Types | |
typedef std::vector< SignalIF * > | SignalPVec |
typedef SignalPVec::iterator | SignalPVecIter |
Public Member Functions | |
SignalTracker () | |
SignalTracker (const SignalTracker &st) | |
SignalTracker & | operator= (const SignalTracker &st) |
~SignalTracker () | |
void | detatchSignalIF (SignalIF *sig) |
detach a signal | |
void | attachSignalIF (SignalIF *sig) |
Public Attributes | |
void * | callee |
Protected Attributes | |
SignalPVec | _sigs |
|
Definition at line 69 of file signalCall.h. |
|
Definition at line 70 of file signalCall.h. Referenced by detatchSignalIF(). |
|
Definition at line 72 of file signalCall.h. |
|
Definition at line 73 of file signalCall.h. |
|
Definition at line 31 of file signalSlots.cpp. |
|
Definition at line 79 of file signalCall.h. References _sigs. |
|
detach a signal
Definition at line 37 of file signalSlots.cpp. References _sigs, and SignalPVecIter. |
|
Definition at line 74 of file signalCall.h. |
|
Definition at line 84 of file signalCall.h. Referenced by attachSignalIF(), detatchSignalIF(), and ~SignalTracker(). |
|
Definition at line 82 of file signalCall.h. Referenced by ~SignalTracker(). |