Chatterino
Public Member Functions | List of all members
chatterino::NullablePtr< T > Class Template Reference

#include <NullablePtr.hpp>

Public Member Functions

 NullablePtr ()
 
 NullablePtr (T *element)
 
T * operator-> () const
 
std::add_lvalue_reference< T >::type operator* () const
 
T * get () const
 
bool isNull () const
 
bool hasElement () const
 
 operator bool () const
 
bool operator! () const
 
template<typename X = T, typename = std::enable_if_t<!std::is_const<X>::value>>
 operator NullablePtr< const T > () const
 

Constructor & Destructor Documentation

◆ NullablePtr() [1/2]

template<typename T>
chatterino::NullablePtr< T >::NullablePtr ( )
inline

◆ NullablePtr() [2/2]

template<typename T>
chatterino::NullablePtr< T >::NullablePtr ( T *  element)
inline

Member Function Documentation

◆ get()

template<typename T>
T* chatterino::NullablePtr< T >::get ( ) const
inline

◆ hasElement()

template<typename T>
bool chatterino::NullablePtr< T >::hasElement ( ) const
inline
Here is the caller graph for this function:

◆ isNull()

template<typename T>
bool chatterino::NullablePtr< T >::isNull ( ) const
inline

◆ operator bool()

template<typename T>
chatterino::NullablePtr< T >::operator bool ( ) const
inline

◆ operator NullablePtr< const T >()

template<typename T>
template<typename X = T, typename = std::enable_if_t<!std::is_const<X>::value>>
chatterino::NullablePtr< T >::operator NullablePtr< const T > ( ) const
inline

◆ operator!()

template<typename T>
bool chatterino::NullablePtr< T >::operator! ( ) const
inline

◆ operator*()

template<typename T>
std::add_lvalue_reference<T>::type chatterino::NullablePtr< T >::operator* ( ) const
inline

◆ operator->()

template<typename T>
T* chatterino::NullablePtr< T >::operator-> ( ) const
inline

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