![]() |
v8
4.5.103 (node 4.8.7)
V8 is Google's open source JavaScript engine
|
#include <v8.h>
Public Member Functions | |
V8_INLINE | Persistent () |
template<class S > | |
V8_INLINE | Persistent (Isolate *isolate, Local< S > that) |
template<class S , class M2 > | |
V8_INLINE | Persistent (Isolate *isolate, const Persistent< S, M2 > &that) |
V8_INLINE | Persistent (const Persistent &that) |
template<class S , class M2 > | |
V8_INLINE | Persistent (const Persistent< S, M2 > &that) |
V8_INLINE Persistent & | operator= (const Persistent &that) |
template<class S , class M2 > | |
V8_INLINE Persistent & | operator= (const Persistent< S, M2 > &that) |
V8_INLINE | ~Persistent () |
template<class S > | |
V8_INLINE Persistent< S > & | As () |
template<class S , class M2 > | |
void | Copy (const Persistent< S, M2 > &that) |
![]() | |
V8_INLINE void | Reset () |
template<class S > | |
V8_INLINE void | Reset (Isolate *isolate, const Local< 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 Local< S > &that) const |
template<class S > | |
V8_INLINE bool | operator!= (const PersistentBase< S > &that) const |
template<class S > | |
V8_INLINE bool | operator!= (const Local< 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 Local< 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) |
Static Public Member Functions | |
template<class S > | |
static V8_INLINE Persistent< T > & | Cast (Persistent< S > &that) |
Friends | |
class | Isolate |
class | Utils |
template<class F > | |
class | Local |
template<class F1 , class F2 > | |
class | Persistent |
template<class F > | |
class | ReturnValue |
A PersistentBase which allows copy and assignment.
Copy, assignment and destructor bevavior is controlled by the traits class M.
Note: Persistent class hierarchy is subject to future changes.
|
inline |
A Persistent with no storage cell.
Definition at line 697 of file v8.h.
References Local< T >::PersistentBase.
|
inline |
Construct a Persistent from a Local. When the Local is non-empty, a new storage cell is created pointing to the same object, and no flags are set.
Definition at line 704 of file v8.h.
References Local< T >::PersistentBase.
|
inline |
Construct a Persistent from a Persistent. When the Persistent is non-empty, a new storage cell is created pointing to the same object, and no flags are set.
Definition at line 714 of file v8.h.
References Local< T >::PersistentBase.
|
inline |
The copy constructors and assignment operator create a Persistent exactly as the Persistent constructor, but the Copy function from the traits class is called, allowing the setting of flags based on the copied Persistent.
Definition at line 724 of file v8.h.
References Local< T >::PersistentBase.
|
inline |
Definition at line 728 of file v8.h.
References Local< T >::PersistentBase.
|
inline |
The destructor will dispose the Persistent based on the kResetInDestructor flags in the traits class. Since not calling dispose can result in a memory leak, it is recommended to always set this flag.
|
inline |
Definition at line 761 of file v8.h.
References Local< T >::Persistent.
|
inlinestatic |
Definition at line 751 of file v8.h.
References Local< T >::Persistent.
void Copy | ( | const Persistent< S, M2 > & | that | ) |
|
inline |
|
inline |
|
friend |
|
friend |