载入中...
搜索中...
未找到
ReloadSession.cpp
浏览该文件的文档.
bool mergeDefaults(const StateValue &defaults)
Fill missing members from defaults; object members merge recursively, existing values are never overw...
Definition StateValue.cpp:170
const StateValue * find(const std::string &key) const
Look up key; nullptr when absent.
Definition StateValue.cpp:74
One state hot-reload transaction: capture → reload → restore.
Definition ReloadSession.h:28
bool commit(HSQUIRRELVM vm, std::string *err=nullptr)
Restore captured state over the new definitions.
Definition ReloadSession.cpp:32
bool abort(HSQUIRRELVM vm, std::string *err=nullptr)
End the session, rolling back to the captured state.
Definition ReloadSession.cpp:70
bool begin(HSQUIRRELVM vm, std::string *err=nullptr)
Start a session: capture current script + native state.
Definition ReloadSession.cpp:12
bool restoreState(HSQUIRRELVM vm, const StateValue &state, std::string *error=nullptr) const
Restore a captured state; v1-shaped values restore roots only.
Definition Snapshot.cpp:455
std::vector< std::string > roots() const
Return the explicit persistent roots.
Definition Snapshot.cpp:328
std::vector< std::string > transientRoots() const
Return the explicit transient roots.
Definition Snapshot.cpp:330
void setRootPolicies(std::vector< std::string > persistent, std::vector< std::string > transient)
Atomically replace explicit persistent/transient root policy.
Definition Snapshot.cpp:332
bool saveFile(HSQUIRRELVM vm, const std::string &path, std::string *error=nullptr) const
Definition Snapshot.cpp:526
Definition AgentDevelopmentMcp.cpp:12