Public Member Functions

js::AutoRefCount< RefCountable > Class Template Reference

#include <jscntxt.h>

Collaboration diagram for js::AutoRefCount< RefCountable >:

List of all members.

Public Member Functions

 AutoRefCount (JSContext *cx)
 AutoRefCount (JSContext *cx, NeedsIncRef< RefCountable > aobj)
 AutoRefCount (JSContext *cx, AlreadyIncRefed< RefCountable > aobj)
 ~AutoRefCount ()
void reset (NeedsIncRef< RefCountable > aobj)
void reset (AlreadyIncRefed< RefCountable > aobj)
bool null () const
 operator ConvertibleToBool () const
RefCountable * operator-> () const
RefCountable & operator* () const
RefCountable * get () const

template<class RefCountable>
class js::AutoRefCount< RefCountable >


Constructor & Destructor Documentation

template<class RefCountable >
js::AutoRefCount< RefCountable >::AutoRefCount ( JSContext cx  )  [inline, explicit]
template<class RefCountable >
js::AutoRefCount< RefCountable >::AutoRefCount ( JSContext cx,
NeedsIncRef< RefCountable >  aobj 
) [inline]
template<class RefCountable >
js::AutoRefCount< RefCountable >::AutoRefCount ( JSContext cx,
AlreadyIncRefed< RefCountable >  aobj 
) [inline]
template<class RefCountable >
js::AutoRefCount< RefCountable >::~AutoRefCount (  )  [inline]

Member Function Documentation

template<class RefCountable >
RefCountable* js::AutoRefCount< RefCountable >::get (  )  const [inline]
template<class RefCountable >
bool js::AutoRefCount< RefCountable >::null (  )  const [inline]
template<class RefCountable >
js::AutoRefCount< RefCountable >::operator ConvertibleToBool (  )  const [inline]
template<class RefCountable >
RefCountable& js::AutoRefCount< RefCountable >::operator* (  )  const [inline]
template<class RefCountable >
RefCountable* js::AutoRefCount< RefCountable >::operator-> (  )  const [inline]
template<class RefCountable >
void js::AutoRefCount< RefCountable >::reset ( NeedsIncRef< RefCountable >  aobj  )  [inline]
template<class RefCountable >
void js::AutoRefCount< RefCountable >::reset ( AlreadyIncRefed< RefCountable >  aobj  )  [inline]

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