+
Point of view
TYPED_INTERNALS
class SIGNAL_2 [E, F]
Summary
Class invariant
Overview
Creation features
  • make
    Initialize new signal object
Exported features
  • connect (p: PROCEDURE[TUPLE[TUPLE 2[E, F]]])
    Connect procedure to be called when signal is emitted See also last_connect_id
  • emit (val1: E, val2: F)
    Emit signal, ie.
  • last_connect_id: PROCEDURE[TUPLE[TUPLE 2[E, F]]]
    return identifier on the last connect which may be used for disconnect (unregister procedure)
  • disconnect (connect_identifier: PROCEDURE[TUPLE[TUPLE 2[E, F]]])
    Unregister procedure for this signal.
  • is_empty: BOOLEAN
    return True if no callback is registered for this signal
callbacks: FAST_ARRAY[PROCEDURE[TUPLE[TUPLE 2[E, F]]]]
writable attribute
index: INTEGER_32
writable attribute
work to do while emit is between index and last.
last: INTEGER_32
writable attribute
work to do while emit is between index and last.
make
effective procedure
Initialize new signal object
connect (p: PROCEDURE[TUPLE[TUPLE 2[E, F]]])
effective procedure
Connect procedure to be called when signal is emitted See also last_connect_id
emit (val1: E, val2: F)
effective procedure
Emit signal, ie.
last_connect_id: PROCEDURE[TUPLE[TUPLE 2[E, F]]]
effective function
return identifier on the last connect which may be used for disconnect (unregister procedure)
disconnect (connect_identifier: PROCEDURE[TUPLE[TUPLE 2[E, F]]])
effective procedure
Unregister procedure for this signal.
is_empty: BOOLEAN
effective function
return True if no callback is registered for this signal