App::DocumentWeakPtrT Class Reference

The DocumentWeakPtrT class. More...

#include <DocumentObserver.h>

Public Member Functions

 DocumentWeakPtrT (App::Document *) noexcept
 
bool expired () const noexcept
 expired More...
 
App::Documentoperator* () const noexcept
 operator * More...
 
App::Documentoperator-> () const noexcept
 operator -> More...
 
void reset () noexcept
 reset Releases the reference to the managed object. After the call *this manages no object. More...
 
 ~DocumentWeakPtrT ()
 

Detailed Description

The DocumentWeakPtrT class.

Constructor & Destructor Documentation

◆ DocumentWeakPtrT()

DocumentWeakPtrT::DocumentWeakPtrT ( App::Document doc)
noexcept

◆ ~DocumentWeakPtrT()

DocumentWeakPtrT::~DocumentWeakPtrT ( )

Member Function Documentation

◆ expired()

bool DocumentWeakPtrT::expired ( ) const
noexcept

expired

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

◆ operator*()

App::Document * DocumentWeakPtrT::operator* ( ) const
noexcept

operator *

Returns
pointer to the document

◆ operator->()

App::Document * DocumentWeakPtrT::operator-> ( ) const
noexcept

operator ->

Returns
pointer to the document

◆ reset()

void DocumentWeakPtrT::reset ( )
noexcept

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

Referenced by Gui::DocumentWeakPtrT::Private::deletedDocument(), and draftguitools.gui_trackers.gridTracker::set().


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