The DocumentObjectWeakPtrT class. More...
#include <DocumentObserver.h>
Classes | |
class | Private |
Public Member Functions | |
DocumentObjectWeakPtrT (App::DocumentObject *) | |
bool | expired () const noexcept |
expired More... | |
template<typename T > | |
T * | get () const noexcept |
bool | operator!= (const DocumentObjectWeakPtrT &p) const noexcept |
operator != More... | |
App::DocumentObject * | operator* () const noexcept |
operator * More... | |
App::DocumentObject * | operator-> () const noexcept |
operator -> More... | |
DocumentObjectWeakPtrT & | operator= (App::DocumentObject *p) |
operator = Assignment operator More... | |
bool | operator== (const DocumentObjectWeakPtrT &p) const noexcept |
operator == More... | |
void | reset () |
reset Releases the reference to the managed object. After the call *this manages no object. More... | |
~DocumentObjectWeakPtrT () | |
The DocumentObjectWeakPtrT class.
DocumentObjectWeakPtrT::DocumentObjectWeakPtrT | ( | App::DocumentObject * | obj | ) |
DocumentObjectWeakPtrT::~DocumentObjectWeakPtrT | ( | ) |
|
noexcept |
expired
Referenced by ReverseEngineeringGui::Segmentation::accept(), PartGui::DlgPrimitives::accept(), PartGui::DlgPrimitives::reject(), PartDesignGui::TaskDlgFeatureParameters::reject(), and PartDesignGui::TaskDlgSketchBasedParameters::reject().
|
noexcept |
Get a pointer to the object or 0 if it doesn't exist any more or the type doesn't match.
Referenced by ReverseEngineeringGui::Segmentation::accept(), FemGui::TaskPostBox::getTypedObject(), and draftguitools.gui_trackers.editTracker::move().
|
noexcept |
operator !=
|
noexcept |
operator *
|
noexcept |
operator ->
DocumentObjectWeakPtrT & DocumentObjectWeakPtrT::operator= | ( | App::DocumentObject * | p | ) |
operator = Assignment operator
|
noexcept |
operator ==
void DocumentObjectWeakPtrT::reset | ( | ) |
reset Releases the reference to the managed object. After the call *this manages no object.
Referenced by draftguitools.gui_trackers.gridTracker::set().