NCBI C++ ToolKit
|
Search Toolkit Book for CWeakObject
#include <corelib/ncbiobj.hpp>
Public Member Functions | |
CWeakObject (void) | |
virtual | ~CWeakObject (void) |
CPtrToObjectProxy * | GetPtrProxy (void) const |
Get pointer to proxy object containing pointer to this object. More... | |
Protected Member Functions | |
void | CleanWeakRefs (void) const |
Method cleaning all CWeakRefs referencing at this moment to the object After calling to this method all existing CWeakRefs referencing to the object will return NULL, so it effectively will be equal to deleting the object. More... | |
Private Member Functions | |
bool | x_AddWeakReference (CObject *obj) |
Add reference to the object in "weak" manner. More... | |
Private Attributes | |
CRef< CPtrToObjectProxy > | m_SelfPtrProxy |
Proxy object with pointer to this instance. More... | |
Friends | |
class | CPtrToObjectProxy |
CWeakObject –.
The class contains additional information to allow weak references to it.
Note: If you want to have your class weak referenced you should derive from both CObject and CWeakObject.
Definition at line 2442 of file ncbiobj.hpp.