v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
v8::DictionaryTemplate Class Referencefinal

#include <v8-template.h>

Collaboration diagram for v8::DictionaryTemplate:

Public Member Functions

V8_WARN_UNUSED_RESULT Local< ObjectNewInstance (Local< Context > context, MemorySpan< MaybeLocal< Value > > property_values)
 

Static Public Member Functions

static Local< DictionaryTemplateNew (Isolate *isolate, MemorySpan< const std::string_view > names)
 
static V8_INLINE DictionaryTemplateCast (Data *data)
 

Private Member Functions

 DictionaryTemplate ()
 

Static Private Member Functions

static void CheckCast (Data *that)
 

Detailed Description

A template to create dictionary objects at runtime.

Definition at line 1066 of file v8-template.h.

Constructor & Destructor Documentation

◆ DictionaryTemplate()

v8::DictionaryTemplate::DictionaryTemplate ( )
private

Member Function Documentation

◆ Cast()

DictionaryTemplate * v8::DictionaryTemplate::Cast ( Data * data)
static

Definition at line 1143 of file v8-template.h.

Here is the call graph for this function:

◆ CheckCast()

void v8::DictionaryTemplate::CheckCast ( Data * that)
staticprivate

Definition at line 7392 of file api.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ New()

Local< DictionaryTemplate > v8::DictionaryTemplate::New ( Isolate * isolate,
MemorySpan< const std::string_view > names )
static

Creates a new template. Also declares data properties that can be passed on instantiation of the template. Properties can only be declared on construction and are then immutable. The values are passed on creating the object via NewInstance().

Parameters
namesthe keys that can be passed on instantiation.

Definition at line 1710 of file api.cc.

Here is the call graph for this function:

◆ NewInstance()

Local< Object > v8::DictionaryTemplate::NewInstance ( Local< Context > context,
MemorySpan< MaybeLocal< Value > > property_values )

Creates a new instance of this template.

Parameters
contextThe context used to create the dictionary object.
property_valuesValues of properties that were declared using DeclareDataProperties(). The span only passes values and expectes the order to match the declaration. Non-existent properties are signaled via empty MaybeLocals.

Definition at line 1718 of file api.cc.

Here is the call graph for this function:

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