|
WPILibC++
2020.3.2
|
A Connection object allows interaction with an ongoing slot connection. More...
#include <Signal.h>
Public Member Functions | |
| 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.