Loading...
Searching...
No Matches
JSRetainPtr< T >

#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 o)
 
JSRetainPtr< JSGlobalContextRefadopt (JSGlobalContextRef o)
 

Constructor & Destructor Documentation

◆ JSRetainPtr() [1/5]

template<typename T >
JSRetainPtr ( )
default

◆ JSRetainPtr() [2/5]

template<typename T >
JSRetainPtr ( T ptr)
inline

◆ JSRetainPtr() [3/5]

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

◆ JSRetainPtr() [4/5]

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

◆ ~JSRetainPtr()

template<typename T >
~JSRetainPtr ( )
inline

◆ JSRetainPtr() [5/5]

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

Member Function Documentation

◆ clear()

template<typename T >
void clear ( )
inline

◆ get()

template<typename T >
T get ( ) const
inline

◆ leakRef()

template<typename T >
T leakRef ( )
inline

◆ operator bool()

template<typename T >
operator bool ( ) const
inlineexplicit

◆ operator!()

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

◆ operator->()

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

◆ operator=() [1/3]

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

◆ operator=() [2/3]

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

◆ operator=() [3/3]

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

◆ swap()

template<typename T >
void 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: