![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <COMPointer.h>
Public Types | |
| typedef T | PointerType |
Public Member Functions | |
| TComPtr () | |
| TComPtr (PointerType *const Object) | |
| TComPtr (const TComPtr< PointerType > &Other) | |
| TComPtr (TComPtr< PointerType > &&Other) | |
| TComPtr< PointerType > & | operator= (PointerType *const Object) |
| TComPtr< PointerType > & | operator= (const TComPtr< PointerType > &Other) |
| TComPtr< PointerType > & | operator= (TComPtr< PointerType > &&Other) |
| ~TComPtr () | |
| UE_FORCEINLINE_HINT PointerType ** | operator& () |
| PointerType * | operator-> () const |
| UE_FORCEINLINE_HINT bool | operator== (PointerType *const Object) const |
| UE_FORCEINLINE_HINT bool | operator!= (PointerType *const Object) const |
| UE_FORCEINLINE_HINT | operator PointerType * () const |
| void | Attach (PointerType *Object) |
| void | Detach () |
| HRESULT | FromQueryInterface (REFIID Riid, IUnknown *Unknown) |
| UE_FORCEINLINE_HINT PointerType * | Get () const |
| UE_FORCEINLINE_HINT const bool | IsValid () const |
| void | Reset () |
Friends | |
| UE_FORCEINLINE_HINT uint32 | GetTypeHash (const TComPtr< T > &InObjectPtr) |
Smart COM object pointer.
|
inline |
Create and initialize a new instance.
| Object | The object to point to. |
|
inline |
Copy constructor.
| Other | The instance to copy. |
|
inline |
Move constructor.
| Other | The instance to move. |
|
inline |
Set the pointer without adding a reference.
| InRawPointer | The object to point to. |
Reset the pointer without releasing a reference.
|
inline |
Initialize this pointer from a COM interface to be queried.
| Riid | The ID of the interface to be queried. |
| Unknown | The object to query the interface from. |
|
inline |
Get raw pointer to the object pointed to.
|
inline |
Whether this pointer is pointing to an actual object.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Copy assignment operator.
| Other | The instance to copy. |
|
inline |
Assignment operator.
| Object | The object to point to. |
|
inline |
Move assignment operator.
| Other | The instance to move. |
|
inline |
|
friend |