WPILibC++ 2024.3.2
hal::Handle< CType, CInvalid > Class Template Reference

A move-only C++ wrapper around a HAL handle. More...

#include <hal/Types.h>

Public Member Functions

 Handle ()=default
 
 Handle (CType val)
 
 Handle (const Handle &)=delete
 
Handleoperator= (const Handle &)=delete
 
 Handle (Handle &&rhs)
 
Handleoperator= (Handle &&rhs)
 
 operator CType () const
 

Detailed Description

template<typename CType, int32_t CInvalid = HAL_kInvalidHandle>
class hal::Handle< CType, CInvalid >

A move-only C++ wrapper around a HAL handle.

Does not ensure destruction.

Constructor & Destructor Documentation

◆ Handle() [1/4]

template<typename CType , int32_t CInvalid = HAL_kInvalidHandle>
hal::Handle< CType, CInvalid >::Handle ( )
default

◆ Handle() [2/4]

template<typename CType , int32_t CInvalid = HAL_kInvalidHandle>
hal::Handle< CType, CInvalid >::Handle ( CType  val)
inline

◆ Handle() [3/4]

template<typename CType , int32_t CInvalid = HAL_kInvalidHandle>
hal::Handle< CType, CInvalid >::Handle ( const Handle< CType, CInvalid > &  )
delete

◆ Handle() [4/4]

template<typename CType , int32_t CInvalid = HAL_kInvalidHandle>
hal::Handle< CType, CInvalid >::Handle ( Handle< CType, CInvalid > &&  rhs)
inline

Member Function Documentation

◆ operator CType()

template<typename CType , int32_t CInvalid = HAL_kInvalidHandle>
hal::Handle< CType, CInvalid >::operator CType ( ) const
inline

◆ operator=() [1/2]

template<typename CType , int32_t CInvalid = HAL_kInvalidHandle>
Handle & hal::Handle< CType, CInvalid >::operator= ( const Handle< CType, CInvalid > &  )
delete

◆ operator=() [2/2]

template<typename CType , int32_t CInvalid = HAL_kInvalidHandle>
Handle & hal::Handle< CType, CInvalid >::operator= ( Handle< CType, CInvalid > &&  rhs)
inline

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