| cartobase
    5.1.2
    | 
Base class for weakly referenced objects. More...
#include "cartobase/smart/weakobject.h"

| Public Member Functions | |
| template<typename T > | |
| void | attachWeakPtr (weak_ptr< T > &) const | 
| template<typename T > | |
| void | detachWeakPtr (weak_ptr< T > &) const | 
| template<typename T > | |
| void | attachWeakPtr (weak_shared_ptr< T > &) const | 
| template<typename T > | |
| void | detachWeakPtr (weak_shared_ptr< T > &) const | 
| virtual | ~WeakObject () | 
| Protected Member Functions | |
| WeakObject () | |
| WeakObject (const WeakObject &) | |
| WeakObject & | operator= (const WeakObject &) | 
Base class for weakly referenced objects.
WeakObject implements a specialized observer/subject pattern where weak_ptr is the observer.
When destroyed, observers are notified and point to null
Definition at line 48 of file weakobject.h.
| 
 | virtual | 
| 
 | protected | 
| 
 | protected | 
| 
 | inline | 
Definition at line 83 of file weakobject.h.
Referenced by attachWeakPtr().
| 
 | inline | 
Definition at line 99 of file weakobject.h.
References attachWeakPtr().
| 
 | inline | 
Definition at line 91 of file weakobject.h.
Referenced by detachWeakPtr().
| 
 | inline | 
Definition at line 107 of file weakobject.h.
References detachWeakPtr().
| 
 | protected |