|
slot 0.0.1
A real time UI render framework
|
#include <slang-com-ptr.h>

Public 类型 | |
| typedef T | Type |
| typedef ComPtr | ThisType |
| typedef ISlangUnknown * | Ptr |
Public 成员函数 | |
| SLANG_FORCE_INLINE | ComPtr () |
| SLANG_FORCE_INLINE | ComPtr (std::nullptr_t) |
| SLANG_FORCE_INLINE | ComPtr (T *ptr) |
| Sets, and ref counts. | |
| SLANG_FORCE_INLINE | ComPtr (const ThisType &rhs) |
| The copy ctor | |
| SLANG_FORCE_INLINE | ComPtr (InitAttach, T *ptr) |
| Ctor without adding to ref count. | |
| SLANG_FORCE_INLINE | ComPtr (InitAttach, const ThisType &rhs) |
| Ctor without adding to ref count | |
| SLANG_FORCE_INLINE | ~ComPtr () |
| Destructor releases the pointer, assuming it is set | |
| SLANG_FORCE_INLINE | operator T* () const |
| Returns the dumb pointer | |
| SLANG_FORCE_INLINE T & | operator* () |
| SLANG_FORCE_INLINE T * | operator-> () const |
| For making method invocations through the smart pointer work through the dumb pointer | |
| SLANG_FORCE_INLINE const ThisType & | operator= (const ThisType &rhs) |
| Assign | |
| SLANG_FORCE_INLINE T * | operator= (T *in) |
| Assign from dumb ptr | |
| SLANG_FORCE_INLINE T * | get () const |
| Get the pointer and don't ref | |
| SLANG_FORCE_INLINE void | setNull () |
| Release a contained nullptr pointer if set | |
| SLANG_FORCE_INLINE T * | detach () |
| Detach | |
| SLANG_FORCE_INLINE void | attach (T *in) |
| Set to a pointer without changing the ref count | |
| SLANG_FORCE_INLINE T ** | writeRef () |
| Get ready for writing (nulls contents) | |
| SLANG_FORCE_INLINE T *const * | readRef () const |
| Get for read access | |
| void | swap (ThisType &rhs) |
| Swap | |
Protected 成员函数 | |
| SLANG_FORCE_INLINE T ** | operator& ()=delete |
| Gets the address of the dumb pointer. | |
Protected 属性 | |
| T * | m_ptr |
| typedef ISlangUnknown* Slang::ComPtr< T >::Ptr |
| typedef ComPtr Slang::ComPtr< T >::ThisType |
| typedef T Slang::ComPtr< T >::Type |
|
inline |
Constructors Default Ctor. Sets to nullptr
|
inline |
|
inlineexplicit |
Sets, and ref counts.
|
inline |
The copy ctor
|
inlineexplicit |
Ctor without adding to ref count.
|
inline |
Ctor without adding to ref count
|
inline |
Destructor releases the pointer, assuming it is set
|
inline |
Set to a pointer without changing the ref count
|
inline |
Detach
|
inline |
Get the pointer and don't ref
|
inline |
Returns the dumb pointer
|
protecteddelete |
Gets the address of the dumb pointer.
|
inline |
|
inline |
For making method invocations through the smart pointer work through the dumb pointer
| const ComPtr< T > & Slang::ComPtr< T >::operator= | ( | const ThisType & | rhs | ) |
Assign
| T * Slang::ComPtr< T >::operator= | ( | T * | in | ) |
Assign from dumb ptr
|
inline |
Get for read access
| void Slang::ComPtr< T >::setNull | ( | ) |
Release a contained nullptr pointer if set

| void Slang::ComPtr< T >::swap | ( | ThisType & | rhs | ) |
Swap
|
inline |
Get ready for writing (nulls contents)


|
protected |