class

FVisualScriptFrame

One call's parameters and locals, laid out by slot: the values in one vector, the names pointing at the function's own declarations. A call used to build an unordered_map — a node allocation and a string copy per local and parameter, a hash and a probe per GetParam / GetLocal / SetLocal. A node resolves its slot once per call (ForNode); the debugger, the DAP and a host that seeds a call scope by name still reach it by name.

Module
VisualScripting
Header
#include "VisualScripting/VisualScriptVM.h"
Namespace
Mowo

Constructors

SignatureNameDescription
FVisualScriptFrame() = defaultFVisualScriptFrame
FVisualScriptFrame(FVisualScriptFrame&&) noexcept = defaultFVisualScriptFrame
FVisualScriptFrame(const FVisualScriptFrame& other)FVisualScriptFrame

Public functions

ReturnsNameDescription
FVisualScriptFrame&operator=
FVisualScriptFrame&operator=
voidBindLocals at their declared defaults, then the parameters from args (a missing argument is a default value).
voidResetEmpties the frame and releases what its values hold, keeping the vectors' capacity for the next Bind (the per-thread frame pool).
int32_tSlotOf
VisualScriptValue*Find
const VisualScriptValue*Find
VisualScriptValue&FindOrAddA name with no declaration gets a slot of its own (SetLocal of an undeclared name, a debugger write).
VisualScriptValue*ForNodenodeIdx of graph resolved to its slot on first use and by index after; a different graph (a debugger expression run in this frame) starts a fresh resolution.
size_tSize
const std::string&NameAt
VisualScriptValue&ValueAt
const VisualScriptValue&ValueAt
voidForEach

Function details

FVisualScriptFrame

C++
FVisualScriptFrame() = default

FVisualScriptFrame

C++
FVisualScriptFrame(FVisualScriptFrame&&) noexcept = default

FVisualScriptFrame

C++
FVisualScriptFrame(const FVisualScriptFrame& other)

operator=

C++
FVisualScriptFrame& operator=(FVisualScriptFrame&&) noexcept = default

operator=

C++
FVisualScriptFrame& operator=(const FVisualScriptFrame& other)

Bind

C++
void Bind(const VisualScriptFunction& fn, const std::vector<VisualScriptValue>& args)

Locals at their declared defaults, then the parameters from args (a missing argument is a default value). A parameter named like a local takes that local's slot, which is what the map it replaced did.

Reset

C++
void Reset()

Empties the frame and releases what its values hold, keeping the vectors' capacity for the next Bind (the per-thread frame pool).

SlotOf

C++
int32_t SlotOf(const std::string& name) const

Find

C++
VisualScriptValue* Find(const std::string& name)

Find

C++
const VisualScriptValue* Find(const std::string& name) const

FindOrAdd

C++
VisualScriptValue& FindOrAdd(const std::string& name)

A name with no declaration gets a slot of its own (SetLocal of an undeclared name, a debugger write).

ForNode

C++
VisualScriptValue* ForNode(const VisualScriptGraph* graph, int nodeIdx, size_t nodeCount, const std::string& name)

nodeIdx of graph resolved to its slot on first use and by index after; a different graph (a debugger expression run in this frame) starts a fresh resolution. Null when the name is not in the frame.

Size

C++
size_t Size() const

NameAt

C++
const std::string& NameAt(size_t slot) const

ValueAt

C++
VisualScriptValue& ValueAt(size_t slot)

ValueAt

C++
const VisualScriptValue& ValueAt(size_t slot) const

ForEach

C++
template<typename Fn> void ForEach(Fn&& fn) const
Generated from VisualScripting/VisualScriptVM.h via visualscripting.json · Nov 5, 2026Version 1.0.0