WPILibC++ 2023.4.3-108-ge5452e3
|
A Connection object allows interaction with an ongoing slot connection. More...
Public Member Functions | |
Connection ()=default | |
virtual | ~Connection ()=default |
Connection (const Connection &) noexcept=default | |
Connection & | operator= (const Connection &) noexcept=default |
Connection (Connection &&) noexcept=default | |
Connection & | operator= (Connection &&) noexcept=default |
bool | valid () const noexcept |
bool | connected () const noexcept |
bool | disconnect () noexcept |
bool | blocked () const noexcept |
void | block () noexcept |
void | unblock () noexcept |
ConnectionBlocker | blocker () const noexcept |
Protected Member Functions | |
Connection (std::weak_ptr< detail::SlotState > s) noexcept | |
Protected Attributes | |
std::weak_ptr< detail::SlotState > | m_state |
Friends | |
template<typename , typename... > | |
class | SignalBase |
A Connection object allows interaction with an ongoing slot connection.
It allows common actions such as connection blocking and disconnection. Note that Connection is not a RAII object, one does not need to hold one such object to keep the signal-slot connection alive.
|
default |
|
virtualdefault |
|
defaultnoexcept |
|
defaultnoexcept |
|
inlineprotectednoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
defaultnoexcept |
|
defaultnoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
friend |
|
protected |