Ark Server API (ASA) - Wiki
|
#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 () | |
FORCEINLINE PointerType ** | operator& () |
FORCEINLINE PointerType * | operator-> () const |
FORCEINLINE bool | operator== (PointerType *const Object) const |
FORCEINLINE bool | operator!= (PointerType *const Object) const |
FORCEINLINE | operator PointerType * () const |
void | Attach (PointerType *Object) |
void | Detach () |
HRESULT | FromQueryInterface (REFIID Riid, IUnknown *Unknown) |
FORCEINLINE PointerType * | Get () const |
FORCEINLINE const bool | IsValid () const |
void | Reset () |
Private Attributes | |
PointerType * | RawPointer |
Friends | |
FORCEINLINE uint32 | GetTypeHash (const TComPtr< T > &InObjectPtr) |
Smart COM object pointer.
Definition at line 18 of file COMPointer.h.
Definition at line 22 of file COMPointer.h.
Default constructor (initialized to null).
Definition at line 27 of file COMPointer.h.
Create and initialize a new instance.
Object | The object to point to. |
Definition at line 36 of file COMPointer.h.
Destructor.
Definition at line 142 of file COMPointer.h.
Set the pointer without adding a reference.
InRawPointer | The object to point to. |
Definition at line 186 of file COMPointer.h.
Reset the pointer without releasing a reference.
Definition at line 201 of file COMPointer.h.
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. |
Definition at line 213 of file COMPointer.h.
|
inline |
Get raw pointer to the object pointed to.
Definition at line 230 of file COMPointer.h.
Whether this pointer is pointing to an actual object.
Definition at line 241 of file COMPointer.h.
|
inline |
Definition at line 173 of file COMPointer.h.
|
inline |
Definition at line 168 of file COMPointer.h.
|
inline |
Definition at line 152 of file COMPointer.h.
|
inline |
Definition at line 157 of file COMPointer.h.
|
inline |
Copy assignment operator.
Other | The instance to copy. |
Definition at line 100 of file COMPointer.h.
|
inline |
Assignment operator.
Object | The object to point to. |
Definition at line 75 of file COMPointer.h.
|
inline |
Move assignment operator.
Other | The instance to move. |
Definition at line 125 of file COMPointer.h.
|
inline |
Definition at line 163 of file COMPointer.h.
Reset this pointer to null.
Definition at line 247 of file COMPointer.h.
Definition at line 261 of file COMPointer.h.
|
private |
Pointer to the actual object, if any.
Definition at line 259 of file COMPointer.h.