cgv
|
#include <abst_signal.h>
Public Member Functions | |
tacker () | |
implement to allow reimplementation of copy constructor | |
tacker (const tacker &) | |
overload to avoid copying of signals More... | |
void | tack (signal_base *s) const |
keep track of the given signal | |
void | untack (signal_base *s) const |
forget the given signal | |
void | untack_all () const |
forget all signals | |
virtual | ~tacker () |
disconnect from all tacked signals on destruction | |
Derive your classes that are attached to signals from this tacker class. It will automatically disconnect from all signals on destruction such that no signal can call a method of an instance of your class after the instance has been destroyed. It is advised that you use virtual inheritance to avoid problems with multiple inheritance later on. Note that for cgv::gui::provider also derives from tacker and uses virtual inheritance.
cgv::signal::tacker::tacker | ( | const tacker & | ) |
overload to avoid copying of signals
reimplement copy constructor to avoid copying the signal map