Gui::WeakPtrT< T > Class Template Reference

The WeakPtrT class. More...

#include <DocumentObserver.h>

Public Member Functions

bool expired () const
 expired More...
 
T * get () const noexcept
 
bool operator!= (const WeakPtrT< T > &p) const
 operator != More...
 
T * operator* () const
 operator * More...
 
T * operator-> () const
 operator -> More...
 
WeakPtrT< T > & operator= (T *p)
 operator = Assignment operator More...
 
bool operator== (const WeakPtrT< T > &p) const
 operator == More...
 
void reset ()
 reset Releases the reference to the managed object. After the call *this manages no object. More...
 
 WeakPtrT (T *t)
 
 ~WeakPtrT ()
 

Detailed Description

template<class T>
class Gui::WeakPtrT< T >

The WeakPtrT class.

Constructor & Destructor Documentation

◆ WeakPtrT()

template<class T >
Gui::WeakPtrT< T >::WeakPtrT ( T *  t)

◆ ~WeakPtrT()

template<class T >
Gui::WeakPtrT< T >::~WeakPtrT ( )

Member Function Documentation

◆ expired()

template<class T >
bool Gui::WeakPtrT< T >::expired ( ) const

expired

Returns
true if the managed object has already been deleted, false otherwise.

◆ get()

template<class T >
T * Gui::WeakPtrT< T >::get ( ) const
noexcept

Get a pointer to the object or 0 if it doesn't exist any more.

Referenced by draftguitools.gui_trackers.editTracker::move().

◆ operator!=()

template<class T >
bool Gui::WeakPtrT< T >::operator!= ( const WeakPtrT< T > &  p) const

operator !=

Returns
true if both objects are inequal, false otherwise

◆ operator*()

template<class T >
T * Gui::WeakPtrT< T >::operator* ( ) const

operator *

Returns
pointer to the view provider

◆ operator->()

template<class T >
T * Gui::WeakPtrT< T >::operator-> ( ) const

operator ->

Returns
pointer to the view provider

◆ operator=()

template<class T >
WeakPtrT< T > & Gui::WeakPtrT< T >::operator= ( T *  p)

operator = Assignment operator

◆ operator==()

template<class T >
bool Gui::WeakPtrT< T >::operator== ( const WeakPtrT< T > &  p) const

operator ==

Returns
true if both objects are equal, false otherwise

◆ reset()

template<class T >
void Gui::WeakPtrT< T >::reset ( )

reset Releases the reference to the managed object. After the call *this manages no object.

Referenced by draftguitools.gui_trackers.gridTracker::set().


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