JUCE v8.0.9
JUCE API
 
Loading...
Searching...
No Matches
juce::detail::DynamicObjectWrapper Struct Reference

#include <juce_QuickJSHelpers.h>

Collaboration diagram for juce::detail::DynamicObjectWrapper:

Public Member Functions

 DynamicObjectWrapper (detail::QuickJSWrapper &engineIn, DynamicObject::Ptr objectIn)
 
void finalise ()
 
auto getIdentifier (int ordinal) const
 
int16_t getOrdinal (const Identifier &identifier)
 
NamedValueSetgetProperties () const
 

Static Public Member Functions

static qjs::JSValue callDispatcher (qjs::JSContext *ctx, qjs::JSValueConst thisValue, int numArgs, qjs::JSValueConst *args, int ordinal)
 
static void createClass (qjs::JSRuntime *runtime)
 
static void finaliser (qjs::JSRuntime *, qjs::JSValue val)
 
static qjs::JSClassID getClassId ()
 
static qjs::JSValue getDispatcher (qjs::JSContext *ctx, qjs::JSValueConst thisVal, int ordinal)
 
static std::set< void * > & getDynamicObjects ()
 
static qjs::JSValue setDispatcher (qjs::JSContext *ctx, qjs::JSValueConst thisVal, qjs::JSValueConst val, int ordinal)
 

Public Attributes

QuickJSWrapperengine
 
std::vector< Identifieridentifiers
 
DynamicObject::Ptr object
 
std::map< Identifier, int16_t > ordinals
 

Constructor & Destructor Documentation

◆ DynamicObjectWrapper()

juce::detail::DynamicObjectWrapper::DynamicObjectWrapper ( detail::QuickJSWrapper engineIn,
DynamicObject::Ptr  objectIn 
)
inline

References getDynamicObjects().

Member Function Documentation

◆ callDispatcher()

static qjs::JSValue juce::detail::DynamicObjectWrapper::callDispatcher ( qjs::JSContext *  ctx,
qjs::JSValueConst  thisValue,
int  numArgs,
qjs::JSValueConst *  args,
int  ordinal 
)
inlinestatic

◆ createClass()

static void juce::detail::DynamicObjectWrapper::createClass ( qjs::JSRuntime *  runtime)
inlinestatic

References finaliser(), and getClassId().

◆ finalise()

void juce::detail::DynamicObjectWrapper::finalise ( )
inline

References getDynamicObjects().

Referenced by finaliser().

◆ finaliser()

static void juce::detail::DynamicObjectWrapper::finaliser ( qjs::JSRuntime *  ,
qjs::JSValue  val 
)
inlinestatic

References finalise(), and getClassId().

Referenced by createClass().

◆ getClassId()

static qjs::JSClassID juce::detail::DynamicObjectWrapper::getClassId ( )
inlinestatic

◆ getDispatcher()

static qjs::JSValue juce::detail::DynamicObjectWrapper::getDispatcher ( qjs::JSContext *  ctx,
qjs::JSValueConst  thisVal,
int  ordinal 
)
inlinestatic

◆ getDynamicObjects()

static std::set< void * > & juce::detail::DynamicObjectWrapper::getDynamicObjects ( )
inlinestatic

Referenced by DynamicObjectWrapper(), and finalise().

◆ getIdentifier()

auto juce::detail::DynamicObjectWrapper::getIdentifier ( int  ordinal) const
inline

References identifiers, and jassert.

Referenced by callDispatcher().

◆ getOrdinal()

int16_t juce::detail::DynamicObjectWrapper::getOrdinal ( const Identifier identifier)
inline

References identifiers, jassert, and ordinals.

◆ getProperties()

NamedValueSet & juce::detail::DynamicObjectWrapper::getProperties ( ) const
inline

◆ setDispatcher()

static qjs::JSValue juce::detail::DynamicObjectWrapper::setDispatcher ( qjs::JSContext *  ctx,
qjs::JSValueConst  thisVal,
qjs::JSValueConst  val,
int  ordinal 
)
inlinestatic

Member Data Documentation

◆ engine

QuickJSWrapper& juce::detail::DynamicObjectWrapper::engine

◆ identifiers

std::vector<Identifier> juce::detail::DynamicObjectWrapper::identifiers

Referenced by getIdentifier(), and getOrdinal().

◆ object

DynamicObject::Ptr juce::detail::DynamicObjectWrapper::object

Referenced by setDispatcher().

◆ ordinals

std::map<Identifier, int16_t> juce::detail::DynamicObjectWrapper::ordinals

Referenced by getOrdinal().


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