WPILibC++ 2025.1.1
Loading...
Searching...
No Matches
wpi::SendableHelper< Derived > Class Template Reference

A helper class for use with objects that add themselves to SendableRegistry. More...

#include <wpi/sendable/SendableHelper.h>

Public Member Functions

constexpr SendableHelper (const SendableHelper &rhs)=default
 
constexpr SendableHelperoperator= (const SendableHelper &rhs)=default
 
constexpr SendableHelper (SendableHelper &&rhs)
 
constexpr SendableHelperoperator= (SendableHelper &&rhs)
 

Protected Member Functions

constexpr SendableHelper ()=default
 
constexpr ~SendableHelper ()
 

Detailed Description

template<typename Derived>
class wpi::SendableHelper< Derived >

A helper class for use with objects that add themselves to SendableRegistry.

It takes care of properly calling Move() and Remove() on move and destruction. No action is taken if the object is copied. Use public inheritance with CRTP when using this class.

Template Parameters
CRTPderived class

Constructor & Destructor Documentation

◆ SendableHelper() [1/3]

template<typename Derived >
wpi::SendableHelper< Derived >::SendableHelper ( const SendableHelper< Derived > & rhs)
constexprdefault

◆ SendableHelper() [2/3]

template<typename Derived >
wpi::SendableHelper< Derived >::SendableHelper ( SendableHelper< Derived > && rhs)
inlineconstexpr

◆ SendableHelper() [3/3]

template<typename Derived >
wpi::SendableHelper< Derived >::SendableHelper ( )
constexprprotecteddefault

◆ ~SendableHelper()

template<typename Derived >
wpi::SendableHelper< Derived >::~SendableHelper ( )
inlineconstexprprotected

Member Function Documentation

◆ operator=() [1/2]

template<typename Derived >
SendableHelper & wpi::SendableHelper< Derived >::operator= ( const SendableHelper< Derived > & rhs)
constexprdefault

◆ operator=() [2/2]

template<typename Derived >
SendableHelper & wpi::SendableHelper< Derived >::operator= ( SendableHelper< Derived > && rhs)
inlineconstexpr

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