App::WeakPtrT< T > Class Template Reference
#include <DocumentObserver.h>
Public Member Functions | |
bool | expired () const |
expired More... | |
bool | operator!= (const WeakPtrT< T > &p) const |
operator != More... | |
T * | operator-> () |
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 App::WeakPtrT< T >
The WeakPtrT class.
Constructor & Destructor Documentation
◆ WeakPtrT()
template<class T >
App::WeakPtrT< T >::WeakPtrT | ( | T * | t | ) |
◆ ~WeakPtrT()
template<class T >
App::WeakPtrT< T >::~WeakPtrT | ( | ) |
Member Function Documentation
◆ expired()
template<class T >
bool App::WeakPtrT< T >::expired | ( | ) | const |
expired
- Returns
- true if the managed object has already been deleted, false otherwise.
◆ operator!=()
template<class T >
bool App::WeakPtrT< T >::operator!= | ( | const WeakPtrT< T > & | p | ) | const |
operator !=
- Returns
- true if both objects are inequal, false otherwise
◆ operator->()
template<class T >
T* App::WeakPtrT< T >::operator-> | ( | ) |
operator ->
- Returns
- pointer to the document
◆ operator=()
template<class T >
WeakPtrT<T>& App::WeakPtrT< T >::operator= | ( | T * | p | ) |
operator = Assignment operator
◆ operator==()
template<class T >
bool App::WeakPtrT< T >::operator== | ( | const WeakPtrT< T > & | p | ) | const |
operator ==
- Returns
- true if both objects are equal, false otherwise
◆ reset()
template<class T >
void App::WeakPtrT< T >::reset | ( | ) |
reset Releases the reference to the managed object. After the call *this manages no object.
Referenced by App::DocumentObjectWeakPtrT::get(), and draftguitools.gui_trackers.gridTracker::set().
The documentation for this class was generated from the following file:
- src/App/DocumentObserver.h