ComPtrRef Class
Supports the WRL infrastructure and is not intended to be used directly from your code.
template <
typename T
>
class ComPtrRef : public ComPtrRefBase<T>;
Parameters
- T
A ComPtr<T> type or a type derived from it, not merely the interface represented by the ComPtr.
Remarks
Represents a reference to an object of type ComPtr<T>.
Members
Public Constructors
Name |
Description |
---|---|
Initializes a new instance of the ComPtrRef class from the specified pointer to another ComPtrRef object. |
Public Methods
Name |
Description |
---|---|
Retrieves the address of a pointer to the interface represented by the current ComPtrRef object. |
|
Deletes the current ComPtrRef object and returns a pointer-to-a-pointer to the interface that was represented by the ComPtrRef object. |
Public Operators
Name |
Description |
---|---|
Deletes the current ComPtrRef object and returns a pointer-to-a-pointer to the interface that was represented by the ComPtrRef object. |
|
Returns the value of the ptr_ data member of the current ComPtrRef object. |
|
Deletes the current ComPtrRef object, casts the pointer to the interface that was represented by the ComPtrRef object as a pointer-to-pointer-to void, and then returns the cast pointer. |
|
Retrieves the pointer to the interface represented by the current ComPtrRef object. |
|
Indicates whether two ComPtrRef objects are equal. |
|
Indicates whether two ComPtrRef objects are not equal. |
Inheritance Hierarchy
ComPtrRefBase
ComPtrRef
Requirements
Header: client.h
Namespace: Microsoft::WRL::Details