|
| void | Attach (PointerType *Object) |
| | Set the pointer without adding a reference. 更多...
|
| |
| void | Detach () |
| | Reset the pointer without releasing a reference. 更多...
|
| |
| HRESULT | FromQueryInterface (REFIID Riid, IUnknown *Unknown) |
| | Initialize this pointer from a COM interface to be queried. 更多...
|
| |
| FORCEINLINE PointerType * | Get () const |
| | Get raw pointer to the object pointed to. 更多...
|
| |
| FORCEINLINE const bool | IsValid () const |
| | Whether this pointer is pointing to an actual object. 更多...
|
| |
| TComPtr< PointerType > & | operator= (const TComPtr< PointerType > &Other) |
| | Copy assignment operator. 更多...
|
| |
| TComPtr< PointerType > & | operator= (PointerType *const Object) |
| | Assignment operator. 更多...
|
| |
| TComPtr< PointerType > & | operator= (TComPtr< PointerType > &&Other) |
| | Move assignment operator. 更多...
|
| |
|
void | Reset () |
| | Reset this pointer to null.
|
| |
|
| TComPtr () |
| | Default constructor (initialized to null).
|
| |
| | TComPtr (const TComPtr< PointerType > &Other) |
| | Copy constructor. 更多...
|
| |
| | TComPtr (PointerType *const Object) |
| | Create and initialize a new instance. 更多...
|
| |
| | TComPtr (TComPtr< PointerType > &&Other) |
| | Move constructor. 更多...
|
| |
|
| ~TComPtr () |
| | Destructor.
|
| |
template<typename T>
class TComPtr< T >
Smart COM object pointer.