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
8namespace Scripting::QuickJS {
9
10class ScriptObjRef : public ::Scripting::IScriptRef {
11public:
12 // ScriptObjRef inner types declare
13 // clang-format off
14 struct GeneratorData;
15 struct PromiseData;
16 // clang-format on
17
18 // ScriptObjRef inner types define
19 struct GeneratorData {
20 public:
21 // member variables
22 // NOLINTBEGIN
24 // NOLINTEND
25
26 public:
27 // prevent constructor by default
28 GeneratorData& operator=(GeneratorData const&);
29 GeneratorData(GeneratorData const&);
30 GeneratorData();
31 };
32
33 struct PromiseData {
34 public:
35 // member variables
36 // NOLINTBEGIN
39 // NOLINTEND
40
41 public:
42 // prevent constructor by default
43 PromiseData& operator=(PromiseData const&);
44 PromiseData(PromiseData const&);
45 PromiseData();
46 };
47
48public:
49 // member variables
50 // NOLINTBEGIN
56 // NOLINTEND
57
58public:
59 // prevent constructor by default
60 ScriptObjRef& operator=(ScriptObjRef const&);
61 ScriptObjRef(ScriptObjRef const&);
62 ScriptObjRef();
63
64public:
65 // virtual functions
66 // NOLINTBEGIN
67 virtual ~ScriptObjRef() /*override*/ = default;
68
69 virtual void onReduceToSingleOwner() /*override*/;
70
71 virtual void onPromoteToMultipleOwners() /*override*/;
72
73 virtual void onFinalize() /*override*/;
74 // NOLINTEND
75
76public:
77 // member functions
78 // NOLINTBEGIN
79 MCNAPI void pin();
80
81 MCNAPI void unpin();
82 // NOLINTEND
83
84public:
85 // virtual function thunks
86 // NOLINTBEGIN
88
90
91 MCNAPI void $onFinalize();
92
93
94 // NOLINTEND
95
96public:
97 // vftables
98 // NOLINTBEGIN
99 MCNAPI static void** $vftable();
100 // NOLINTEND
101};
102
103} // namespace Scripting::QuickJS
Definition IScriptRef.h:7
static MCAPI void ** $vftable()
Definition Alias.h:14