V8 Project
v8::NonCopyablePersistentTraits< T > Class Template Reference

Default traits for Persistent. More...

#include <v8.h>

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

Public Types

typedef Persistent< T, NonCopyablePersistentTraits< T > > NonCopyablePersistent
 

Static Public Member Functions

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

Static Public Attributes

static const bool kResetInDestructor = false
 

Detailed Description

template<class T>
class v8::NonCopyablePersistentTraits< T >

Default traits for Persistent.

This class does not allow use of the copy constructor or assignment operator. At present kResetInDestructor is not set, but that will change in a future version.

Definition at line 587 of file v8.h.

Member Typedef Documentation

◆ NonCopyablePersistent

Definition at line 589 of file v8.h.

Member Function Documentation

◆ Copy()

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

Definition at line 592 of file v8.h.

593  {
594  Uncompilable<Object>();
595  }

◆ Uncompilable()

template<class T >
template<class O >
static void v8::NonCopyablePersistentTraits< T >::Uncompilable ( )
inlinestatic

Definition at line 597 of file v8.h.

597  {
598  TYPE_CHECK(O, Primitive);
599  }
#define TYPE_CHECK(T, S)
Definition: v8.h:167

References TYPE_CHECK.

Member Data Documentation

◆ kResetInDestructor

template<class T >
const bool v8::NonCopyablePersistentTraits< T >::kResetInDestructor = false
static

Definition at line 590 of file v8.h.


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