cgv
cgv::signal::tacker Class Reference

#include <abst_signal.h>

Inheritance diagram for cgv::signal::tacker:
cgv::gui::provider cgv::plot::plot_base cgv::plot::plot2d cgv::plot::plot3d

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
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ tacker()

cgv::signal::tacker::tacker ( const tacker )

overload to avoid copying of signals

reimplement copy constructor to avoid copying the signal map


The documentation for this class was generated from the following files: