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

A Connection object allows interaction with an ongoing slot connection. More...

#include <Signal.h>

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

Public Member Functions

 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
 

Protected Member Functions

 Connection (std::weak_ptr< detail::SlotState > s) noexcept
 

Protected Attributes

std::weak_ptr< detail::SlotStatem_state
 

Friends

template<typename , typename... >
class SignalBase
 

Detailed Description

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.


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