APM:Libraries
|
#include <OwnPtr.h>
Public Member Functions | |
OwnPtr () | |
OwnPtr (std::nullptr_t) | |
OwnPtr (const OwnPtr< T > &other)=delete | |
template<typename U > | |
OwnPtr (OwnPtr< U > &&other) | |
OwnPtr (T *ptr) | |
OwnPtr< T > & | operator= (std::nullptr_t) |
template<typename U > | |
OwnPtr< T > & | operator= (OwnPtr< U > &&other) |
template<typename U > | |
OwnPtr< T > & | operator= (U *other) |
~OwnPtr () | |
void | clear () |
T * | leak () |
T * | get () const |
T & | operator* () const |
T * | operator-> () const |
bool | operator! () const |
operator bool () const | |
Private Attributes | |
T * | _ptr |
|
inline |
Definition at line 42 of file OwnPtr.h.
Referenced by AP_HAL::OwnPtr< SerialDevice >::OwnPtr().
|
inline |
|
delete |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 76 of file OwnPtr.h.
Referenced by AP_HAL::OwnPtr< SerialDevice >::operator=(), and TEST().
|
inline |
Definition at line 88 of file OwnPtr.h.
Referenced by AP_HAL::operator!=(), AP_HAL::operator==(), sdcard_init(), Linux::UARTDriver::set_device_path(), and TEST().
|
inline |
Definition at line 81 of file OwnPtr.h.
Referenced by AP_HAL::OwnPtr< SerialDevice >::clear(), and AP_HAL::OwnPtr< SerialDevice >::operator=().
|
inlineexplicit |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
private |
Definition at line 99 of file OwnPtr.h.
Referenced by AP_HAL::OwnPtr< SerialDevice >::get(), AP_HAL::OwnPtr< SerialDevice >::leak(), AP_HAL::OwnPtr< SerialDevice >::operator bool(), AP_HAL::OwnPtr< SerialDevice >::operator!(), AP_HAL::OwnPtr< SerialDevice >::operator*(), AP_HAL::OwnPtr< SerialDevice >::operator->(), AP_HAL::OwnPtr< SerialDevice >::operator=(), and AP_HAL::OwnPtr< SerialDevice >::~OwnPtr().