Core class that represents a signal, a list of objects waiting for its message.
More...
|
using | Callback = std::function< void(Args...)> |
|
template<typename... Args>
class Nz::Signal< Args >
Core class that represents a signal, a list of objects waiting for its message.
◆ Signal()
template<typename... Args>
Constructs a Signal object by move semantic.
- Parameters
-
◆ Connect() [1/6]
template<typename... Args>
Connects a function to the signal.
- Returns
- Connection attached to the signal
- Parameters
-
◆ Connect() [2/6]
template<typename... Args>
Connects a function to the signal.
- Returns
- Connection attached to the signal
- Parameters
-
◆ Connect() [3/6]
template<typename... Args>
template<typename O >
Connects a member function and its object to the signal.
- Returns
- Connection attached to the signal
- Parameters
-
object | Object to send the message |
method | Member function |
◆ Connect() [4/6]
template<typename... Args>
template<typename O >
Connects a member function and its object to the signal.
- Returns
- Connection attached to the signal
- Parameters
-
object | Object to send the message |
method | Member function |
◆ Connect() [5/6]
template<typename... Args>
template<typename O >
Connects a member function and its object to the signal.
- Returns
- Connection attached to the signal
- Parameters
-
object | Object to send the message |
method | Member function |
◆ Connect() [6/6]
template<typename... Args>
template<typename O >
Connects a member function and its object to the signal.
- Returns
- Connection attached to the signal
- Parameters
-
object | Object to send the message |
method | Member function |
◆ operator()()
template<typename... Args>
void Nz::Signal< Args >::operator() |
( |
Args... |
args | ) |
const |
Applies the list of arguments to every callback functions.
- Parameters
-
args | Arguments to send with the message |
◆ operator=()
template<typename... Args>
Moves the signal into this.
- Returns
- A reference to this
- Parameters
-
The documentation for this class was generated from the following files:
- include/Nazara/Core/Signal.hpp
- include/Nazara/Core/Signal.inl