Nui
Classes | Public Types | Public Member Functions | Static Public Member Functions | List of all members
Nui::GObjectReference< T > Class Template Reference

#include <gobject.hpp>

Classes

struct  AdoptFlag
 

Public Types

using value_type = T
 
using pointer_type = value_type *
 

Public Member Functions

 GObjectReference ()
 
 GObjectReference (pointer_type ptr)
 
 GObjectReference (GObjectReference const &other)
 
template<typename U >
 GObjectReference (GObjectReference< U > const &other)
 
 GObjectReference (GObjectReference &&other)
 
 ~GObjectReference ()
 
void clear ()
 
pointer_type release ()
 
T * get () const
 
T & operator* () const
 
T * operator-> () const
 
 operator bool () const
 
bool operator! () const
 
GObjectReferenceoperator= (GObjectReference const &other)
 
GObjectReferenceoperator= (GObjectReference &&other)
 
GObjectReferenceoperator= (pointer_type optr)
 
template<typename U >
GObjectReferenceoperator= (GObjectReference< U > const &other)
 
void swap (GObjectReference &other)
 

Static Public Member Functions

static GObjectReference< T > adoptReference (T *ptr)
 

Member Typedef Documentation

◆ pointer_type

template<typename T >
using Nui::GObjectReference< T >::pointer_type = value_type*

◆ value_type

template<typename T >
using Nui::GObjectReference< T >::value_type = T

Constructor & Destructor Documentation

◆ GObjectReference() [1/5]

template<typename T >
Nui::GObjectReference< T >::GObjectReference ( )
inline

◆ GObjectReference() [2/5]

template<typename T >
Nui::GObjectReference< T >::GObjectReference ( pointer_type  ptr)
inlineexplicit

◆ GObjectReference() [3/5]

template<typename T >
Nui::GObjectReference< T >::GObjectReference ( GObjectReference< T > const &  other)
inline

◆ GObjectReference() [4/5]

template<typename T >
template<typename U >
Nui::GObjectReference< T >::GObjectReference ( GObjectReference< U > const &  other)
inline

◆ GObjectReference() [5/5]

template<typename T >
Nui::GObjectReference< T >::GObjectReference ( GObjectReference< T > &&  other)
inline

◆ ~GObjectReference()

template<typename T >
Nui::GObjectReference< T >::~GObjectReference ( )
inline

Member Function Documentation

◆ adoptReference()

template<typename T >
static GObjectReference<T> Nui::GObjectReference< T >::adoptReference ( T *  ptr)
inlinestatic

◆ clear()

template<typename T >
void Nui::GObjectReference< T >::clear ( )
inline

◆ get()

template<typename T >
T* Nui::GObjectReference< T >::get ( ) const
inline

◆ operator bool()

template<typename T >
Nui::GObjectReference< T >::operator bool ( ) const
inlineexplicit

◆ operator!()

template<typename T >
bool Nui::GObjectReference< T >::operator! ( ) const
inline

◆ operator*()

template<typename T >
T& Nui::GObjectReference< T >::operator* ( ) const
inline

◆ operator->()

template<typename T >
T* Nui::GObjectReference< T >::operator-> ( ) const
inline

◆ operator=() [1/4]

template<typename T >
GObjectReference& Nui::GObjectReference< T >::operator= ( GObjectReference< T > &&  other)
inline

◆ operator=() [2/4]

template<typename T >
GObjectReference& Nui::GObjectReference< T >::operator= ( GObjectReference< T > const &  other)
inline

◆ operator=() [3/4]

template<typename T >
template<typename U >
GObjectReference& Nui::GObjectReference< T >::operator= ( GObjectReference< U > const &  other)
inline

◆ operator=() [4/4]

template<typename T >
GObjectReference& Nui::GObjectReference< T >::operator= ( pointer_type  optr)
inline

◆ release()

template<typename T >
pointer_type Nui::GObjectReference< T >::release ( )
inline

◆ swap()

template<typename T >
void Nui::GObjectReference< T >::swap ( GObjectReference< T > &  other)
inline

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