Node.js  v8.x
Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine
ObjectWrap Class Reference

#include <node_object_wrap.h>

Public Member Functions

 ObjectWrap ()
 
virtual ~ObjectWrap ()
 
v8::Local< v8::Object > handle ()
 
v8::Local< v8::Object > handle (v8::Isolate *isolate)
 
v8::Persistent< v8::Object > & persistent ()
 

Static Public Member Functions

template<class T >
static T * Unwrap (v8::Local< v8::Object > handle)
 

Protected Member Functions

void Wrap (v8::Local< v8::Object > handle)
 
void MakeWeak (void)
 
virtual void Ref ()
 
virtual void Unref ()
 

Protected Attributes

int refs_
 

Detailed Description

Definition at line 31 of file node_object_wrap.h.

Constructor & Destructor Documentation

◆ ObjectWrap()

ObjectWrap ( )
inline

Definition at line 33 of file node_object_wrap.h.

References ObjectWrap::refs_.

◆ ~ObjectWrap()

virtual ~ObjectWrap ( )
inlinevirtual

Definition at line 38 of file node_object_wrap.h.

References ObjectWrap::persistent().

Member Function Documentation

◆ handle() [1/2]

v8::Local<v8::Object> handle ( )
inline

Definition at line 59 of file node_object_wrap.h.

◆ handle() [2/2]

v8::Local<v8::Object> handle ( v8::Isolate *  isolate)
inline

Definition at line 64 of file node_object_wrap.h.

References node::Buffer::New(), and ObjectWrap::persistent().

◆ MakeWeak()

void MakeWeak ( void  )
inlineprotected

Definition at line 84 of file node_object_wrap.h.

References ObjectWrap::persistent().

Referenced by ObjectWrap::Unref(), and ObjectWrap::Wrap().

◆ persistent()

v8::Persistent<v8::Object>& persistent ( )
inline

◆ Ref()

virtual void Ref ( )
inlineprotectedvirtual

Definition at line 93 of file node_object_wrap.h.

References ObjectWrap::persistent(), and ObjectWrap::refs_.

◆ Unref()

virtual void Unref ( )
inlineprotectedvirtual

◆ Unwrap()

static T* Unwrap ( v8::Local< v8::Object >  handle)
inlinestatic

Definition at line 48 of file node_object_wrap.h.

References wrap.

◆ Wrap()

void Wrap ( v8::Local< v8::Object >  handle)
inlineprotected

Definition at line 75 of file node_object_wrap.h.

References ObjectWrap::MakeWeak(), and ObjectWrap::persistent().

Field Documentation

◆ refs_

int refs_
protected

Definition at line 116 of file node_object_wrap.h.

Referenced by ObjectWrap::ObjectWrap(), ObjectWrap::Ref(), and ObjectWrap::Unref().


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