App::DocumentObjectWeakPtrT Class Reference
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-> () 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 () | |
Detailed Description
The DocumentObjectWeakPtrT class.
Constructor & Destructor Documentation
◆ DocumentObjectWeakPtrT()
DocumentObjectWeakPtrT::DocumentObjectWeakPtrT | ( | App::DocumentObject * | obj | ) |
◆ ~DocumentObjectWeakPtrT()
DocumentObjectWeakPtrT::~DocumentObjectWeakPtrT | ( | ) |
Member Function Documentation
◆ expired()
|
noexcept |
expired
- Returns
- true if the managed object has already been deleted, false otherwise.
Referenced by ReverseEngineeringGui::Segmentation::accept().
◆ get()
template<typename T >
|
noexcept |
Get a pointer to the object or 0 if it doesn't exist any more or the type doesn't match.
References App::WeakPtrT< T >::reset().
Referenced by ReverseEngineeringGui::Segmentation::accept(), and draftguitools.gui_trackers.editTracker::move().
◆ operator!=()
|
noexcept |
operator !=
- Returns
- true if both objects are inequal, false otherwise
◆ operator->()
|
noexcept |
operator ->
- Returns
- pointer to the document
◆ operator=()
DocumentObjectWeakPtrT & DocumentObjectWeakPtrT::operator= | ( | App::DocumentObject * | p | ) |
operator = Assignment operator
◆ operator==()
|
noexcept |
operator ==
- Returns
- true if both objects are equal, false otherwise
◆ reset()
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().
The documentation for this class was generated from the following files:
- src/App/DocumentObserver.h
- src/App/DocumentObserver.cpp