Ultralight
1.0.0
A fast, lightweight, HTML UI engine for native apps.
|
A nullable smart pointer. More...
#include <RefPtr.h>
Public Member Functions | |
RefPtr () | |
Construct a NULL ref-pointer. | |
RefPtr (std::nullptr_t) | |
Construct a NULL ref-pointer. | |
RefPtr (T *other) | |
Construct from a pointer. More... | |
RefPtr (const RefPtr &other) | |
Copy constructor. | |
template<typename U > | |
RefPtr (const RefPtr< U > &other) | |
Copy constructor with internal type conversion. | |
RefPtr (RefPtr &&other) | |
Move constructor. | |
template<typename U > | |
RefPtr (RefPtr< U > &&other) | |
Move constructor. | |
template<typename U > | |
RefPtr (const Ref< U > &other) | |
Construct from a Ref. | |
template<typename U > | |
RefPtr (Ref< U > &&other) | |
Construct by moving from a Ref. | |
~RefPtr () | |
Destroy RefPtr (wll decrement ref-count by one) | |
T * | get () const |
Get a pointer to wrapped object. | |
A nullable smart pointer.
This smart pointer automatically manages the lifetime of a RefCounted object. The managed instance may be NULL.
|
inline |