LeviLamina
Loading...
Searching...
No Matches
ScriptObjRef.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/scripting/lifetime_registry/IScriptRef.h"
7
8// auto generated forward declare list
9// clang-format off
10struct JSValue;
11// clang-format on
12
13namespace Scripting::QuickJS {
14
16public:
17 // ScriptObjRef inner types declare
18 // clang-format off
19 struct GeneratorData;
20 struct PromiseData;
21 // clang-format on
22
23 // ScriptObjRef inner types define
25 public:
26 // member variables
27 // NOLINTBEGIN
29 // NOLINTEND
30
31 public:
32 // prevent constructor by default
33 GeneratorData& operator=(GeneratorData const&);
36 };
37
38 struct PromiseData {
39 public:
40 // member variables
41 // NOLINTBEGIN
44 // NOLINTEND
45
46 public:
47 // prevent constructor by default
48 PromiseData& operator=(PromiseData const&);
51 };
52
53public:
54 // member variables
55 // NOLINTBEGIN
61 // NOLINTEND
62
63public:
64 // prevent constructor by default
65 ScriptObjRef& operator=(ScriptObjRef const&);
68
69public:
70 // virtual functions
71 // NOLINTBEGIN
72 // vIndex: 0
73 virtual ~ScriptObjRef() /*override*/ = default;
74
75 // vIndex: 1
76 virtual void onReduceToSingleOwner() /*override*/;
77
78 // vIndex: 2
79 virtual void onPromoteToMultipleOwners() /*override*/;
80
81 // vIndex: 3
82 virtual void onFinalize() /*override*/;
83 // NOLINTEND
84
85public:
86 // member functions
87 // NOLINTBEGIN
88 MCAPI void pin();
89
90 MCAPI ::std::array<::JSValue, 3> release();
91
92 MCAPI void unpin();
93 // NOLINTEND
94
95public:
96 // destructor thunk
97 // NOLINTBEGIN
98
99 // NOLINTEND
100
101public:
102 // virtual function thunks
103 // NOLINTBEGIN
104 MCAPI void $onReduceToSingleOwner();
105
106 MCAPI void $onPromoteToMultipleOwners();
107
108 MCAPI void $onFinalize();
109 // NOLINTEND
110
111public:
112 // vftables
113 // NOLINTBEGIN
114 MCAPI static void** $vftable();
115 // NOLINTEND
116};
117
118} // namespace Scripting::QuickJS
Definition IScriptRef.h:7
Definition ScriptObjRef.h:15
Definition JSValue.h:5
Definition Alias.h:14