Ultralight C++ API 1.3.0
Loading...
Searching...
No Matches
JSRetainPtr< T > Class Template Reference

#include <JavaScriptCore/JSRetainPtr.h>

Public Member Functions

 JSRetainPtr ()=default
 
 JSRetainPtr (T ptr)
 
 JSRetainPtr (const JSRetainPtr &)
 
 JSRetainPtr (JSRetainPtr &&)
 
 ~JSRetainPtr ()
 
get () const
 
void clear ()
 
leakRef () WARN_UNUSED_RETURN
 
operator-> () const
 
bool operator! () const
 
 operator bool () const
 
JSRetainPtroperator= (const JSRetainPtr &)
 
JSRetainPtroperator= (JSRetainPtr &&)
 
JSRetainPtroperator= (T)
 
void swap (JSRetainPtr &)
 
 JSRetainPtr (AdoptTag, T)
 

Friends

JSRetainPtr< JSStringRefadopt (JSStringRef)
 
JSRetainPtr< JSGlobalContextRefadopt (JSGlobalContextRef)
 

Constructor & Destructor Documentation

◆ JSRetainPtr() [1/5]

template<typename T >
JSRetainPtr< T >::JSRetainPtr ( )
default

◆ JSRetainPtr() [2/5]

template<typename T >
JSRetainPtr< T >::JSRetainPtr ( ptr)
inline

◆ JSRetainPtr() [3/5]

template<typename T >
JSRetainPtr< T >::JSRetainPtr ( const JSRetainPtr< T > &  o)
inline

◆ JSRetainPtr() [4/5]

template<typename T >
JSRetainPtr< T >::JSRetainPtr ( JSRetainPtr< T > &&  o)
inline

◆ ~JSRetainPtr()

template<typename T >
JSRetainPtr< T >::~JSRetainPtr
inline

◆ JSRetainPtr() [5/5]

template<typename T >
JSRetainPtr< T >::JSRetainPtr ( AdoptTag  ,
ptr 
)
inline

Member Function Documentation

◆ clear()

template<typename T >
void JSRetainPtr< T >::clear
inline

◆ get()

template<typename T >
T JSRetainPtr< T >::get ( ) const
inline

◆ leakRef()

template<typename T >
T JSRetainPtr< T >::leakRef
inline

◆ operator bool()

template<typename T >
JSRetainPtr< T >::operator bool ( ) const
inlineexplicit

◆ operator!()

template<typename T >
bool JSRetainPtr< T >::operator! ( ) const
inline

◆ operator->()

template<typename T >
T JSRetainPtr< T >::operator-> ( ) const
inline

◆ operator=() [1/3]

template<typename T >
JSRetainPtr< T > & JSRetainPtr< T >::operator= ( const JSRetainPtr< T > &  o)
inline

◆ operator=() [2/3]

template<typename T >
JSRetainPtr< T > & JSRetainPtr< T >::operator= ( JSRetainPtr< T > &&  o)
inline

◆ operator=() [3/3]

template<typename T >
JSRetainPtr< T > & JSRetainPtr< T >::operator= ( optr)
inline

◆ swap()

template<typename T >
void JSRetainPtr< T >::swap ( JSRetainPtr< T > &  o)
inline

Friends And Related Symbol Documentation

◆ adopt [1/2]

template<typename T >
JSRetainPtr< JSGlobalContextRef > adopt ( JSGlobalContextRef  o)
friend

◆ adopt [2/2]

template<typename T >
JSRetainPtr< JSStringRef > adopt ( JSStringRef  o)
friend

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