BeeeOn Gateway  v2020.3.1-2-g6f737dc
Platform to interconnect the IoT world
Public Member Functions | Protected Member Functions
BeeeOn::UnsafePtr< T > Class Template Reference

#include <UnsafePtr.h>

Public Member Functions

 UnsafePtr (T *p)
 
 UnsafePtr (const UnsafePtr &ptr)
 
template<typename Other >
 UnsafePtr (const UnsafePtr< Other > &ptr)
 
void clear ()
 
UnsafePtrassign (T *p)
 
UnsafePtrassign (const UnsafePtr &p)
 
template<typename Other >
UnsafePtrassign (const UnsafePtr< Other > &p)
 
UnsafePtroperator= (T *p)
 
UnsafePtroperator= (const UnsafePtr &p)
 
template<typename Other >
UnsafePtroperator= (const UnsafePtr< Other > &p)
 
void swap (UnsafePtr &p)
 
template<typename Other >
UnsafePtr< Other > cast () const
 
template<typename Other >
UnsafePtr< Other > unsafeCast () const
 
T * operator-> ()
 
const T * operator-> () const
 
T & operator* ()
 
const T & operator* () const
 
T * get ()
 
const T * get () const
 
 operator T * ()
 
 operator const T * () const
 
bool isNull () const
 
bool operator! () const
 
bool operator== (const UnsafePtr &p) const
 
bool operator== (const T *p) const
 
bool operator== (T *p) const
 
bool operator!= (const UnsafePtr &p) const
 
bool operator!= (const T *p) const
 
bool operator!= (T *p) const
 
bool operator< (const UnsafePtr &p) const
 
bool operator< (const T *p) const
 
bool operator< (T *p) const
 
bool operator<= (const UnsafePtr &p) const
 
bool operator<= (const T *p) const
 
bool operator<= (T *p) const
 
bool operator> (const UnsafePtr &p) const
 
bool operator> (const T *p) const
 
bool operator> (T *p) const
 
bool operator>= (const UnsafePtr &p) const
 
bool operator>= (const T *p) const
 
bool operator>= (T *p) const
 

Protected Member Functions

T * deref () const
 

Detailed Description

template<typename T>
class BeeeOn::UnsafePtr< T >

Wrapper around plain pointers to avoid null-pointer access faults. It does NOT free the owning pointer.


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