Signal

Multiple listeners; implicitly specified return and parameter types

Constructors

this
this(Signal!T1 v)
Undocumented in source.

Members

Aliases

params_t
alias params_t = ParameterTypeTuple!(__traits(getMember, T1, __traits(allMembers, T1)[0]))
Undocumented in source.
return_t
alias return_t = ReturnType!(__traits(getMember, T1, __traits(allMembers, T1)[0]))
Undocumented in source.
slot_t
alias slot_t = return_t delegate(params_t)
Undocumented in source.

Functions

assigned
bool assigned()

returns true if listener is assigned

clear
void clear()

disconnect all listeners

connect
void connect(slot_t listener)

add listener

connect
void connect(T1 listener)

add listener - as interface member

disconnect
void disconnect(slot_t listener)

remove listener

disconnect
void disconnect(T1 listener)

add listener - as interface member

emit
return_t emit(params_t params)

call all listeners; for signals having non-void return type, stop iterating when first return value is nonzero

emit
return_t emit(params_t params)
Undocumented in source. Be warned that the author may not have intended to support it.
opAssign
void opAssign(slot_t listener)

replace all previously assigned listeners with new one (if null passed, remove all listeners)

opAssign
void opAssign(T1 listener)

replace all previously assigned listeners with new one (if null passed, remove all listeners)

opCall
return_t opCall(params_t params)

call all listeners; for signals having non-void return type, stop iterating when first return value is nonzero

opCall
return_t opCall(params_t params)
Undocumented in source. Be warned that the author may not have intended to support it.
opOpAssign
void opOpAssign(T1 listener)

Provides ~= syntax for connecting to this Signal

Meta