Repository navigation
signal_attributes
Dmitry Koplyarov edited this page Apr 9, 2017
·
5 revisions
The attributes of a signal. See the appropriate signal constructor.
Here is the tutorial section.
Defined in wigwag/signal_attributes.hpp
enum class signal_attributes
{
none = 0x0,
connect_sync_only = 0x1,
connect_async_only = 0x2
};
signal_attributes operator | (signal_attributes l, signal_attributes r);
signal_attributes operator & (signal_attributes l, signal_attributes r);none = 0x0No flags are set.
connect_sync_only = 0x1Only synchronous handlers are allowed if this flag is set. The signal::connect method throws an exception if an asynchronous handler is being connected.
connect_async_only = 0x2Only asynchronous handlers are allowed if this flag is set. The signal::connect method throws an exception if a synchronous handler is being connected.
handler_attributes operator | (handler_attributes l, handler_attributes r);'Bitwise or' operator. As usual, used for setting flags.
Arguments:
- l - left operand
- r - right operand
handler_attributes operator & (handler_attributes l, handler_attributes r);'Bitwise and' operator. As usual, used for resetting flags or checking if a flag is set.
Arguments:
- l - left operand
- r - right operand