soui 5.0.0.1
Soui5 Doc
 
Loading...
Searching...
No Matches
IObjRef Struct Reference

Interface for reference counting. More...

#include <obj-ref-i.h>

Inheritance diagram for IObjRef:
TObjRefImpl< IObjRef > IImgDecoderFactory IImgFrame IImgX IMessageLoop IMsgLoopFactory INativeWnd IRealWndHandler IRenderFactory IRenderObj IRenderTarget IResProvider IToolTipFactory ITranslator ITranslatorMgr IUiDefInfo IXmlDoc

Public Member Functions

long AddRef () PURE
 Increases the reference count.
 
long Release () PURE
 Decreases the reference count.
 
void OnFinalRelease () PURE
 Called when the reference count reaches zero and the object is about to be released.
 

Detailed Description

Interface for reference counting.

This interface provides methods for increasing and decreasing the reference count of an object.

Definition at line 18 of file obj-ref-i.h.

Member Function Documentation

◆ AddRef()

long IObjRef::AddRef ( )

Increases the reference count.

Returns
The new reference count.

◆ OnFinalRelease()

void IObjRef::OnFinalRelease ( )

Called when the reference count reaches zero and the object is about to be released.

This method is intended to perform any necessary cleanup before the object is deleted.

◆ Release()

long IObjRef::Release ( )

Decreases the reference count.

Returns
The new reference count.

The documentation for this struct was generated from the following file: