docs
Loading...
Searching...
No Matches
RefPtr.h

Classes

class  RefCounted
 Interface for all ref-counted objects that will be managed using the RefPtr<> smart pointer. More...
class  WeakRefCounted
 Interface for ref-counted objects that can additionally be observed via the WeakPtr<> smart pointer. More...
class  RefPtr< T >
 A nullable smart pointer. More...
class  WeakPtr< T >
 A weak (non-owning) smart pointer that observes a WeakRefCounted object. More...

Functions

template<typename T>
RefPtr< T > AdoptRef (T &reference)
 Helper for wrapping new objects with the RefPtr smart pointer.
template<typename T, typename... Args>
RefPtr< T > MakeRefPtr (Args &&... args)
 Construct a new object of type T and wrap it in a RefPtr.
template<class T>
void swap (RefPtr< T > &a, RefPtr< T > &b)
template<class T>
void swap (WeakPtr< T > &a, WeakPtr< T > &b)
template<typename T, typename U>
bool operator== (const RefPtr< T > &a, const RefPtr< U > &b)
template<typename T, typename U>
bool operator== (const RefPtr< T > &a, const U *b)
template<typename T, typename U>
bool operator== (const T *a, const RefPtr< U > &b)
template<typename T, typename U>
bool operator!= (const RefPtr< T > &a, const RefPtr< U > &b)
template<typename T, typename U>
bool operator!= (const RefPtr< T > &a, const U *b)
template<typename T, typename U>
bool operator!= (const T *a, const RefPtr< U > &b)

Namespaces

namespace  ultralight
 Root namespace for every public Ultralight type, function, and enumeration.

Go to the source code of this file.