IADLXInterface
The IADLXInterface is the fundamental interface of ADLX because it is inherited by the majority of the ADLX interfaces. IADLXInterface provides methods to control the lifetime of self-destructing ADLX objects, using the reference-counting technique.
In C++, ADLX provides smart pointer definitions for the IADLXInterface and for all the interfaces that inherit from it. Smart pointers are named identically to their base interface and add the Ptr suffix. Example: The smart pointer of IADLXInterface is named IADLXInterfacePtr.
Smart pointers remove the need to call the methods of IADLXInterface (Acquire , Release , and QueryInterface ), as they provide automatic reference counting in the constructor and destructor.
For C++, the use of smart pointers is highly recommended and encouraged because they reduce the incidence of memory and resource leaks while maintaining coding efficiency.
Methods
Method |
Description |
---|---|
Increments the reference count for an ADLX interface. |
|
Retrieves reference counted interfaces to an object. |
|
Decrements the reference count for an ADLX interface. |
Requirements
Header |
include “ADLXDefines.h” |
Minimum version |
1.0 |