v8  3.14.5(node0.10.28)
V8 is Google's open source JavaScript engine
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Template Class Reference

#include <v8.h>

Inheritance diagram for Template:
Collaboration diagram for Template:

Public Member Functions

void Set (Handle< String > name, Handle< Data > value, PropertyAttribute attributes=None)
 
void Set (const char *name, Handle< Data > value)
 

Friends

class ObjectTemplate
 
class FunctionTemplate
 

Detailed Description

The superclass of object and function templates.

Definition at line 1980 of file v8.h.

Member Function Documentation

void Set ( v8::Handle< String name,
v8::Handle< Data value,
v8::PropertyAttribute  attribute = None 
)

Adds a property to each instance created by this template.

Definition at line 902 of file api.cc.

References NeanderArray::add(), ENTER_V8, Integer::New(), and NeanderArray::value().

Referenced by Shell::AddOSMethods(), CreateGlobalTemplate(), CreateShellContext(), JsHttpRequestProcessor::Initialize(), RunMain(), Template::Set(), TEST(), and THREADED_TEST().

void Set ( const char *  name,
v8::Handle< Data value 
)
inline

Definition at line 4350 of file v8.h.

References String::New(), and Template::Set().

Friends And Related Function Documentation

friend class FunctionTemplate
friend

Definition at line 1990 of file v8.h.

friend class ObjectTemplate
friend

Definition at line 1989 of file v8.h.


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