V8 Project
v8::CopyablePersistentTraits< T > Struct Template Reference

Helper class traits to allow copying and assignment of Persistent. More...

#include <v8.h>

+ Collaboration diagram for v8::CopyablePersistentTraits< T >:

Public Types

typedef Persistent< T, CopyablePersistentTraits< T > > CopyablePersistent
 

Static Public Member Functions

template<class S , class M >
static void Copy (const Persistent< S, M > &source, CopyablePersistent *dest)
 

Static Public Attributes

static const bool kResetInDestructor = true
 

Detailed Description

template<class T>
struct v8::CopyablePersistentTraits< T >

Helper class traits to allow copying and assignment of Persistent.

This will clone the contents of storage cell, but not any of the flags, etc.

Definition at line 608 of file v8.h.

Member Typedef Documentation

◆ CopyablePersistent

Definition at line 609 of file v8.h.

Member Function Documentation

◆ Copy()

template<class T >
template<class S , class M >
static void v8::CopyablePersistentTraits< T >::Copy ( const Persistent< S, M > &  source,
CopyablePersistent dest 
)
inlinestatic

Definition at line 612 of file v8.h.

613  {
614  // do nothing, just allow copy
615  }

Member Data Documentation

◆ kResetInDestructor

template<class T >
const bool v8::CopyablePersistentTraits< T >::kResetInDestructor = true
static

Definition at line 610 of file v8.h.


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