Gui::ViewProviderWeakPtrT Class Reference

The ViewProviderWeakPtrT class. More...

#include <DocumentObserver.h>

Classes

class  Private
 

Public Member Functions

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

Detailed Description

Constructor & Destructor Documentation

◆ ViewProviderWeakPtrT()

ViewProviderWeakPtrT::ViewProviderWeakPtrT ( ViewProviderDocumentObject obj)

◆ ~ViewProviderWeakPtrT()

ViewProviderWeakPtrT::~ViewProviderWeakPtrT ( )

Member Function Documentation

◆ expired()

bool ViewProviderWeakPtrT::expired ( ) const
noexcept

expired

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

◆ get()

template<typename T >
T * Gui::ViewProviderWeakPtrT::get ( ) const
noexcept

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

Referenced by FemGui::TaskPostBox::getTypedView(), and draftguitools.gui_trackers.editTracker::move().

◆ operator!=()

bool ViewProviderWeakPtrT::operator!= ( const ViewProviderWeakPtrT p) const
noexcept

operator !=

Returns
true if both objects are inequal, false otherwise

◆ operator*()

ViewProviderDocumentObject * ViewProviderWeakPtrT::operator* ( ) const
noexcept

operator *

Returns
pointer to the document

◆ operator->()

ViewProviderDocumentObject * ViewProviderWeakPtrT::operator-> ( ) const
noexcept

operator ->

Returns
pointer to the document

◆ operator=()

ViewProviderWeakPtrT & ViewProviderWeakPtrT::operator= ( ViewProviderDocumentObject p)

operator = Assignment operator

◆ operator==()

bool ViewProviderWeakPtrT::operator== ( const ViewProviderWeakPtrT p) const
noexcept

operator ==

Returns
true if both objects are equal, false otherwise

◆ reset()

void ViewProviderWeakPtrT::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 files: