Ultralight C API 1.3.0
Loading...
Searching...
No Matches
JSRetainPtr.h File Reference

Go to the source code of this file.

Data Structures

class  JSRetainPtr< T >
 

Functions

void JSRetain (JSStringRef string)
 
void JSRelease (JSStringRef string)
 
void JSRetain (JSGlobalContextRef context)
 
void JSRelease (JSGlobalContextRef context)
 
JSRetainPtr< JSStringRefadopt (JSStringRef)
 
JSRetainPtr< JSGlobalContextRefadopt (JSGlobalContextRef)
 
template<typename T >
void swap (JSRetainPtr< T > &a, JSRetainPtr< T > &b)
 
template<typename T , typename U >
bool operator== (const JSRetainPtr< T > &a, const JSRetainPtr< U > &b)
 
template<typename T , typename U >
bool operator== (const JSRetainPtr< T > &a, U *b)
 
template<typename T , typename U >
bool operator== (T *a, const JSRetainPtr< U > &b)
 
template<typename T , typename U >
bool operator!= (const JSRetainPtr< T > &a, const JSRetainPtr< U > &b)
 
template<typename T , typename U >
bool operator!= (const JSRetainPtr< T > &a, U *b)
 
template<typename T , typename U >
bool operator!= (T *a, const JSRetainPtr< U > &b)
 

Macros

#define WARN_UNUSED_RETURN
 

Enumerations

enum  AdoptTag { Adopt }
 

Function Documentation

◆ adopt() [1/2]

◆ adopt() [2/2]

JSRetainPtr< JSStringRef > adopt ( JSStringRef  o)
inline

◆ JSRelease() [1/2]

void JSRelease ( JSGlobalContextRef  context)
inline

◆ JSRelease() [2/2]

void JSRelease ( JSStringRef  string)
inline

◆ JSRetain() [1/2]

void JSRetain ( JSGlobalContextRef  context)
inline

◆ JSRetain() [2/2]

void JSRetain ( JSStringRef  string)
inline

◆ operator!=() [1/3]

template<typename T , typename U >
bool operator!= ( const JSRetainPtr< T > &  a,
const JSRetainPtr< U > &  b 
)
inline

◆ operator!=() [2/3]

template<typename T , typename U >
bool operator!= ( const JSRetainPtr< T > &  a,
U *  b 
)
inline

◆ operator!=() [3/3]

template<typename T , typename U >
bool operator!= ( T *  a,
const JSRetainPtr< U > &  b 
)
inline

◆ operator==() [1/3]

template<typename T , typename U >
bool operator== ( const JSRetainPtr< T > &  a,
const JSRetainPtr< U > &  b 
)
inline

◆ operator==() [2/3]

template<typename T , typename U >
bool operator== ( const JSRetainPtr< T > &  a,
U *  b 
)
inline

◆ operator==() [3/3]

template<typename T , typename U >
bool operator== ( T *  a,
const JSRetainPtr< U > &  b 
)
inline

◆ swap()

template<typename T >
void swap ( JSRetainPtr< T > &  a,
JSRetainPtr< T > &  b 
)
inline

Macro Definition Documentation

◆ WARN_UNUSED_RETURN

#define WARN_UNUSED_RETURN

Enumeration Type Documentation

◆ AdoptTag

enum AdoptTag
Enumerator
Adopt