NCBI C++ ToolKit
Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
CWeakObject Class Reference

Search Toolkit Book for CWeakObject

CWeakObject –. More...

#include <corelib/ncbiobj.hpp>

+ Inheritance diagram for CWeakObject:
+ Collaboration diagram for CWeakObject:

Public Member Functions

 CWeakObject (void)
virtual ~CWeakObject (void)
CPtrToObjectProxyGetPtrProxy (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< CPtrToObjectProxym_SelfPtrProxy
 Proxy object with pointer to this instance. More...


class CPtrToObjectProxy

Detailed Description

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.

See also

Definition at line 2442 of file ncbiobj.hpp.

The documentation for this class was generated from the following files:
Modified on Mon Jul 15 05:36:18 2024 by rev. 669887