Nazara Engine
0.4
A fast, complete, cross-platform API designed for game development
|
Core class that represents a connection attached to a signal. More...
Public Member Functions | |
Connection (const Connection &connection)=default | |
Connection (Connection &&connection) noexcept | |
Constructs a Signal::Connection object with by move semantic. More... | |
template<typename... ConnectArgs> | |
void | Connect (BaseClass &signal, ConnectArgs &&... args) |
Connects to a signal with arguments. More... | |
void | Disconnect () noexcept |
Disconnects the connection from the signal. | |
bool | IsConnected () const |
Checks whether the connection is still active with the signal. More... | |
Connection & | operator= (const Connection &connection)=default |
Connection & | operator= (Connection &&connection) noexcept |
Constructs a Signal::ConnectionGuard object by move semantic. More... | |
Core class that represents a connection attached to a signal.
|
noexcept |
Constructs a Signal::Connection object with by move semantic.
connection | Connection object to move |
void Nz::Signal< Args >::Connection::Connect | ( | BaseClass & | signal, |
ConnectArgs &&... | args | ||
) |
Connects to a signal with arguments.
signal | New signal to listen |
args | Arguments for the signal |
bool Nz::Signal< Args >::Connection::IsConnected | ( | ) | const |
Checks whether the connection is still active with the signal.
|
noexcept |
Constructs a Signal::ConnectionGuard object by move semantic.
connection | Connection to move |