WPILibC++
2018.4.1-20180824234721-1176-gd6d5321
|
ScopedConnection is a RAII version of Connection It disconnects the slot from the signal upon destruction. More...
#include <Signal.h>
Public Member Functions | |
ScopedConnection (const Connection &c) noexcept | |
ScopedConnection (Connection &&c) noexcept | |
ScopedConnection (const ScopedConnection &) noexcept=delete | |
ScopedConnection & | operator= (const ScopedConnection &) noexcept=delete |
ScopedConnection (ScopedConnection &&o) noexcept | |
ScopedConnection & | operator= (ScopedConnection &&o) noexcept |
![]() | |
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 |
Friends | |
template<typename , typename... > | |
class | SignalBase |
Additional Inherited Members | |
![]() | |
Connection (std::weak_ptr< detail::SlotState > s) noexcept | |
![]() | |
std::weak_ptr< detail::SlotState > | m_state |
ScopedConnection is a RAII version of Connection It disconnects the slot from the signal upon destruction.