|
|
typedef T | ValueType |
| |
|
typedef T * | PointerType |
| |
|
typedef T & | ReferenceType |
| |
|
|
| DisposablePtr (PointerType o, DisposeAfterUse::Flag dispose) |
| |
|
| DisposablePtr (SharedPtr< T > o) |
| |
|
| DisposablePtr (DisposablePtr< T, DL > &&o) |
| |
|
ReferenceType | operator* () const |
| |
|
PointerType | operator-> () const |
| |
| bool | operator_bool () const |
| |
| void | reset (PointerType o, DisposeAfterUse::Flag dispose) |
| |
| void | reset () |
| |
|
template<class T2 > |
| bool | isDynamicallyCastable () |
| |
|
template<class T2 , class DL2 = DefaultDeleter<T2>> |
| DisposablePtr< T2, DL2 > | moveAndDynamicCast () |
| |
| PointerType | get () const |
| |
|
| operator bool_type () const |
| |
|
| operator bool_type () |
| |
◆ operator_bool()
template<typename T, class DL = DefaultDeleter<T>>
Implicit conversion operator to bool for convenience, to make checks like "if (scopedPtr) ..." possible.
◆ reset() [1/2]
template<typename T, class DL = DefaultDeleter<T>>
Resets the pointer with the new value. Old object will be destroyed if flagged as disposable.
◆ reset() [2/2]
template<typename T, class DL = DefaultDeleter<T>>
Clears the pointer. Old object will be destroyed if flagged as disposable.
◆ get()
template<typename T, class DL = DefaultDeleter<T>>
Returns the plain pointer value.
- Returns
- the pointer the DisposablePtr manages
The documentation for this class was generated from the following file: