WPILibC++  2019.3.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
wpi::sig::ScopedConnection Class Reference

ScopedConnection is a RAII version of Connection It disconnects the slot from the signal upon destruction. More...

#include <Signal.h>

Inheritance diagram for wpi::sig::ScopedConnection:
wpi::sig::Connection

Public Member Functions

 ScopedConnection (const Connection &c) noexcept
 
 ScopedConnection (Connection &&c) noexcept
 
 ScopedConnection (const ScopedConnection &) noexcept=delete
 
ScopedConnectionoperator= (const ScopedConnection &) noexcept=delete
 
 ScopedConnection (ScopedConnection &&o) noexcept
 
ScopedConnectionoperator= (ScopedConnection &&o) noexcept
 
- Public Member Functions inherited from wpi::sig::Connection
 Connection (const Connection &) noexcept=default
 
Connectionoperator= (const Connection &) noexcept=default
 
 Connection (Connection &&) noexcept=default
 
Connectionoperator= (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

- Protected Member Functions inherited from wpi::sig::Connection
 Connection (std::weak_ptr< detail::SlotState > s) noexcept
 
- Protected Attributes inherited from wpi::sig::Connection
std::weak_ptr< detail::SlotStatem_state
 

Detailed Description

ScopedConnection is a RAII version of Connection It disconnects the slot from the signal upon destruction.


The documentation for this class was generated from the following file: