libsigc++
2.99.1
|
Convenience wrapper for the numbered sigc::signal# templates. More...
#include <sigc++/signal.h>
Public Member Functions | |
accumulated () | |
accumulated (const accumulated& src) | |
![]() | |
signal_with_accumulator () | |
signal_with_accumulator (const signal_with_accumulator& src) | |
signal_with_accumulator (signal_with_accumulator&& src) | |
iterator | connect (const slot_type& slot_) |
Add a slot to the list of slots. More... | |
iterator | connect (slot_type&& slot_) |
Add a slot to the list of slots. More... | |
decltype(auto) | emit (type_trait_take_t< T_arg >..._A_a) const |
Triggers the emission of the signal. More... | |
decltype(auto) | emit_reverse (type_trait_take_t< T_arg >..._A_a) const |
Triggers the emission of the signal in reverse order (see emit()). More... | |
decltype(auto) | make_slot () const |
Creates a functor that calls emit() on this signal. More... | |
decltype(auto) | operator() (type_trait_take_t< T_arg >..._A_a) const |
Triggers the emission of the signal (see emit()). More... | |
signal_with_accumulator& | operator= (const signal_with_accumulator& src) |
signal_with_accumulator& | operator= (signal_with_accumulator&& src) |
slot_list_type | slots () |
Creates an STL-style interface for the signal's list of slots. More... | |
const slot_list_type | slots () const |
Creates an STL-style interface for the signal's list of slots. More... | |
![]() | |
signal_base () noexcept | |
signal_base (const signal_base& src) noexcept | |
signal_base (signal_base&& src) | |
~signal_base () | |
void | block (bool should_block=true) noexcept |
Sets the blocking state of all slots in the list. More... | |
bool | blocked () const noexcept |
Returns whether all slots in the list are blocked. More... | |
void | clear () |
Empties the list of slots. More... | |
bool | empty () const noexcept |
Returns whether the list of slots is empty. More... | |
signal_base& | operator= (const signal_base& src) |
signal_base& | operator= (signal_base&& src) |
size_type | size () const noexcept |
Returns the number of slots in the list. More... | |
void | unblock () noexcept |
Unsets the blocking state of all slots in the list. More... | |
![]() | |
trackable () noexcept | |
trackable (const trackable& src) noexcept | |
trackable (trackable&& src) | |
~trackable () | |
void | add_destroy_notify_callback (notifiable* data, func_destroy_notify func) const |
Add a callback that is executed (notified) when the trackable object is detroyed. More... | |
void | notify_callbacks () |
Execute and remove all previously installed callbacks. More... | |
trackable& | operator= (const trackable& src) |
trackable& | operator= (trackable&& src) |
void | remove_destroy_notify_callback (notifiable* data) const |
Remove a callback previously installed with add_destroy_notify_callback(). More... | |
Additional Inherited Members | |
![]() | |
using | const_iterator = typename slot_list_type::const_iterator |
using | const_reverse_iterator = typename slot_list_type::const_reverse_iterator |
using | emitter_type = internal::signal_emit< T_return, T_accumulator, T_arg...> |
using | iterator = typename slot_list_type::iterator |
using | result_type = typename emitter_type::result_type |
using | reverse_iterator = typename slot_list_type::reverse_iterator |
using | slot_list_type = slot_list< slot_type > |
using | slot_type = slot< T_return, T_arg...> |
![]() | |
using | size_type = std::size_t |
![]() | |
using | func_destroy_notify = internal::func_destroy_notify |
![]() | |
using | func_destroy_notify = internal::func_destroy_notify |
![]() | |
using | iterator_type = internal::signal_impl::iterator_type |
![]() | |
iterator_type | connect (const slot_base& slot_) |
Adds a slot at the end of the list of slots. More... | |
iterator_type | connect (slot_base&& slot_) |
Adds a slot at the end of the list of slots. More... | |
iterator_type | erase (iterator_type i) |
Removes the slot at the given position from the list of slots. More... | |
internal::signal_impl* | impl () const |
Returns the signal_impl object encapsulating the list of slots. More... | |
iterator_type | insert (iterator_type i, const slot_base& slot_) |
Adds a slot at the given position into the list of slots. More... | |
iterator_type | insert (iterator_type i, slot_base&& slot_) |
Adds a slot at the given position into the list of slots. More... | |
![]() | |
internal::signal_impl* | impl_ |
The signal_impl object encapsulating the slot list. More... | |
Convenience wrapper for the numbered sigc::signal# templates.
Like sigc::signal but the additional template parameter T_accumulator defines the accumulator type that should be used.
An accumulator is a functor that uses a pair of special iterators to step through a list of slots and calculate a return value from the results of the slot invokations. The iterators' operator*() executes the slot. The return value is buffered, so that in an expression like
the slot is executed only once. The accumulator must define its return value as result_type
.
|
inline |
|
inline |