FVisualScriptSlotCache
One instance's resolution of graph nodes to entries in its variable store: by node index, the GetVar / SetVar / container-mutator variable, latch state or Timeline state the node reads and writes, null until the node first runs. A name-keyed store costs a string hash and probe per node per run, and an unnamed latch also built its key string on every hit; resolved once, a node reaches its entry through one pointer. The entries point into the unordered_map that VisualScriptContext::vars names, which keeps element addresses across insertion and rehash, so the owner must Clear() whenever it erases, clears, moves or reassigns that map, or when the graphs it was resolved against may have been freed (a definition hot swap).
- Module
- VisualScripting
- Header
#include "VisualScripting/VisualScriptVM.h"- Namespace
Mowo
Public functions
| Returns | Name | Description |
|---|---|---|
std::vector<VisualScriptValue*>& | For | |
void | Clear | Drops every row. |
void | Invalidate | Forgets every resolution but keeps the rows, so it is safe while a run on this instance is in progress (a nested run can reach it). |
size_t | GraphCount |
Function details
For
std::vector<VisualScriptValue*>& For(const VisualScriptGraph& graph, size_t nodeCount)Clear
void Clear()Drops every row. Only between runs: a run in progress holds its row.
Invalidate
void Invalidate()Forgets every resolution but keeps the rows, so it is safe while a run on this instance is in progress (a nested run can reach it).
GraphCount
size_t GraphCount() const