![]() |
Gaia-ECS v0.9.3
A simple and powerful entity component system
|
Signal is a container of listener which it can notify. It works directly with references to classes and pointers to both free and member functions. More...
#include <signal.h>
Public Types | |
| using | size_type = typename detail::container< Ret, Args... >::size_type |
| using | sink_type = sink< Ret(Args...)> |
Public Member Functions | |
| GAIA_NODISCARD size_type | size () const noexcept |
| Number of listeners connected to the signal. | |
| GAIA_NODISCARD bool | empty () const noexcept |
| Check is there is any listener bound to the signal. | |
| void | emit (Args... args) |
| Signals all listeners. | |
Friends | |
| class | sink< Ret(Args...)> |
Signal is a container of listener which it can notify. It works directly with references to classes and pointers to both free and member functions.
| Ret | Return type of a function type. |
| Args | Types of arguments of a function type. |
|
inline |
Signals all listeners.
| args | Arguments to use to trigger listeners. |
|
inlinenoexcept |
Check is there is any listener bound to the signal.
|
inlinenoexcept |
Number of listeners connected to the signal.