soui 5.0.0.1
Soui5 Doc
 
Loading...
Searching...
No Matches
TObjRefImpl2< T, T2 > Class Template Reference

Template class extending TObjRefImpl with a specific final release behavior. More...

#include <obj-ref-impl.hpp>

Inheritance diagram for TObjRefImpl2< T, T2 >:
TObjRefImpl< T >

Public Member Functions

void OnFinalRelease () override
 Deletes the object as the derived type T2.
 
- Public Member Functions inherited from TObjRefImpl< T >
 TObjRefImpl ()
 Constructor that initializes the reference count to 1.
 
virtual ~TObjRefImpl ()
 Virtual destructor.
 
long AddRef () override
 Increments the reference count.
 
long Release () override
 Decrements the reference count and deletes the object if the count reaches zero.
 
void OnFinalRelease () override
 Deletes the object.
 

Additional Inherited Members

- Protected Attributes inherited from TObjRefImpl< T >
LONG m_cRef
 Reference count.
 

Detailed Description

template<class T, class T2>
class TObjRefImpl2< T, T2 >

Template class extending TObjRefImpl with a specific final release behavior.

Template Parameters
TThe base class that implements the IObjRef interface.
T2The derived class that should be deleted in OnFinalRelease.

Definition at line 61 of file obj-ref-impl.hpp.

Member Function Documentation

◆ OnFinalRelease()

template<class T, class T2>
void TObjRefImpl2< T, T2 >::OnFinalRelease ( )
inlineoverride

Deletes the object as the derived type T2.

Definition at line 65 of file obj-ref-impl.hpp.


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