nsIWeakReference Interface Reference
List of all members.
An instance of |nsIWeakReference| is a proxy object that cooperates with its referent to give clients a non-owning, non-dangling reference. Clients own the proxy, and should generally manage it with an |nsCOMPtr| (see the type |nsWeakPtr| for a |typedef| name that stands out) as they would any other XPCOM object. The |QueryReferent| member function provides a (hopefully short-lived) owning reference on demand, through which clients can get useful access to the referent, while it still exists.
- See also:
Definition at line 59 of file nsIWeakReference.idl.
Public Member Functions
|void ||QueryReferent (in nsIIDRef uuid,[iid_is(uuid), retval] out nsQIResult result)|
| ||NS_IMETHOD_ (nsrefcnt) Release(void)=0|
| ||NS_IMETHOD_ (nsrefcnt) AddRef(void)=0|
|NS_IMETHOD ||QueryInterface (REFNSIID aIID, void **aInstancePtr)=0|
The documentation for this interface was generated from the following file: