v8
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | Friends | List of all members
v8::Global< T > Class Template Reference

#include <v8.h>

Inheritance diagram for v8::Global< T >:
v8::PersistentBase< T >

Public Types

typedef void MoveOnlyTypeForCPP03
 

Public Member Functions

V8_INLINE Global ()
 
template<class S >
V8_INLINE Global (Isolate *isolate, Handle< S > that)
 
template<class S >
V8_INLINE Global (Isolate *isolate, const PersistentBase< S > &that)
 
V8_INLINE Global (Global &&other)
 
V8_INLINE ~Global ()
 
template<class S >
V8_INLINE Globaloperator= (Global< S > &&rhs)
 
Global Pass ()
 
- Public Member Functions inherited from v8::PersistentBase< T >
V8_INLINE void Reset ()
 
template<class S >
V8_INLINE void Reset (Isolate *isolate, const Handle< S > &other)
 
template<class S >
V8_INLINE void Reset (Isolate *isolate, const PersistentBase< S > &other)
 
V8_INLINE bool IsEmpty () const
 
V8_INLINE void Empty ()
 
template<class S >
V8_INLINE bool operator== (const PersistentBase< S > &that) const
 
template<class S >
V8_INLINE bool operator== (const Handle< S > &that) const
 
template<class S >
V8_INLINE bool operator!= (const PersistentBase< S > &that) const
 
template<class S >
V8_INLINE bool operator!= (const Handle< S > &that) const
 
template<typename P >
V8_INLINE V8_DEPRECATE_SOON ("use WeakCallbackInfo version", void SetWeak(P *parameter, typename WeakCallbackData< T, P >::Callback callback))
 
template<typename S , typename P >
V8_INLINE V8_DEPRECATE_SOON ("use WeakCallbackInfo version", void SetWeak(P *parameter, typename WeakCallbackData< S, P >::Callback callback))
 
template<typename P >
V8_INLINE V8_DEPRECATE_SOON ("use SetWeak", void SetPhantom(P *parameter, typename WeakCallbackInfo< P >::Callback callback, int internal_field_index1=-1, int internal_field_index2=-1))
 
template<typename P >
V8_INLINE void SetWeak (P *parameter, typename WeakCallbackInfo< P >::Callback callback, WeakCallbackType type)
 
template<typename P >
V8_INLINE P * ClearWeak ()
 
V8_INLINE void ClearWeak ()
 
V8_INLINE void MarkIndependent ()
 
V8_INLINE void MarkPartiallyDependent ()
 
V8_INLINE bool IsIndependent () const
 
V8_INLINE bool IsNearDeath () const
 
V8_INLINE bool IsWeak () const
 
V8_INLINE void SetWrapperClassId (uint16_t class_id)
 
V8_INLINE uint16_t WrapperClassId () const
 
template<class S >
void Reset (Isolate *isolate, const Handle< S > &other)
 
template<class S >
void Reset (Isolate *isolate, const PersistentBase< S > &other)
 
template<typename P >
void SetWeak (P *parameter, typename WeakCallbackData< T, P >::Callback callback)
 

Friends

template<class F >
class ReturnValue
 

Detailed Description

template<class T>
class v8::Global< T >

A PersistentBase which has move semantics.

Note: Persistent class hierarchy is subject to future changes.

Member Typedef Documentation

template<class T >
typedef void v8::Global< T >::MoveOnlyTypeForCPP03

Constructor & Destructor Documentation

template<class T >
V8_INLINE v8::Global< T >::Global ( )
inline

A Global with no storage cell.

template<class T >
template<class S >
V8_INLINE v8::Global< T >::Global ( Isolate isolate,
Handle< S >  that 
)
inline

Construct a Global from a Handle. When the Handle is non-empty, a new storage cell is created pointing to the same object, and no flags are set.

template<class T >
template<class S >
V8_INLINE v8::Global< T >::Global ( Isolate isolate,
const PersistentBase< S > &  that 
)
inline

Construct a Global from a PersistentBase. When the Persistent is non-empty, a new storage cell is created pointing to the same object, and no flags are set.

template<class T >
V8_INLINE v8::Global< T >::Global ( Global< T > &&  other)
inline

Move constructor.

template<class T >
V8_INLINE v8::Global< T >::~Global ( )
inline

Member Function Documentation

template<class T >
template<class S >
V8_INLINE Global& v8::Global< T >::operator= ( Global< S > &&  rhs)
inline

Move via assignment.

template<class T >
Global v8::Global< T >::Pass ( )
inline

Pass allows returning uniques from functions, etc.

Friends And Related Function Documentation

template<class T >
template<class F >
friend class ReturnValue
friend

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