Ultralight  1.0.0
A fast, lightweight, HTML UI engine for native apps.
ultralight::RefPtr< T > Class Template Reference

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.
 

Detailed Description

template<typename T>
class ultralight::RefPtr< T >

A nullable smart pointer.

This smart pointer automatically manages the lifetime of a RefCounted object. The managed instance may be NULL.

Definition at line 281 of file RefPtr.h.

Constructor & Destructor Documentation

◆ RefPtr()

template<typename T>
ultralight::RefPtr< T >::RefPtr ( T *  other)
inline

Construct from a pointer.

(Will increment ref-count by one)

Definition at line 302 of file RefPtr.h.


The documentation for this class was generated from the following file: