WPILibC++ 2024.1.1-beta-4
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

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

Protected Member Functions

 SendableHelper ()=default
 
 ~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)
default

◆ SendableHelper() [2/3]

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

◆ SendableHelper() [3/3]

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

◆ ~SendableHelper()

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

Member Function Documentation

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

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