Skip to content

signal_attributes

Dmitry Koplyarov edited this page Apr 9, 2017 · 5 revisions

Back to reference

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);

Table of contents

Enum values

none

none = 0x0

No flags are set.

connect_sync_only

connect_sync_only = 0x1

Only 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

connect_async_only = 0x2

Only asynchronous handlers are allowed if this flag is set. The signal::connect method throws an exception if a synchronous handler is being connected.

Operators

operator |

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

operator &

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

Clone this wiki locally