![]() |
![]() |
Public Member Functions | |
void | add_callback (void* data, func_destroy_notify func) |
Add a callback function. | |
void | remove_callback (void* data) |
Remove the callback which has this data associated with it. | |
void | clear () |
This invokes all of the callback functions. | |
trackable_callback_list () | |
~trackable_callback_list () | |
This invokes all of the callback functions. |
A callback list holds an STL list of callbacks of type trackable_callback. Callbacks are added and removed with add_callback(), remove_callback() and clear(). The callbacks are invoked from clear() and from the destructor.
sigc::internal::trackable_callback_list::trackable_callback_list | ( | ) | [inline] |
sigc::internal::trackable_callback_list::~trackable_callback_list | ( | ) |
This invokes all of the callback functions.
void sigc::internal::trackable_callback_list::add_callback | ( | void * | data, | |
func_destroy_notify | func | |||
) |
Add a callback function.
data | Data that will be sent as a parameter to teh callback function. | |
func | The callback function. |
void sigc::internal::trackable_callback_list::remove_callback | ( | void * | data | ) |
Remove the callback which has this data associated with it.
data | The data that was given as a parameter to add_callback(). |
void sigc::internal::trackable_callback_list::clear | ( | ) |
This invokes all of the callback functions.