|
Enzo
|
Everything one node carries, held apart from the network so it can be rebuilt. More...
#include <NodeSnapshot.h>
Public Member Functions | |
| void | restore (NodeId nodeId) const |
| Rebuilds the node under the given id with the path, position, and parameters it had. | |
| const Path & | getPath () const |
| Returns the path the node sat at, whose leaf is the node name. | |
Static Public Member Functions | |
| static NodeSnapshot | capture (Node &node) |
| Returns a snapshot of the node as it stands. | |
Friends | |
| class | cereal::access |
Everything one node carries, held apart from the network so it can be rebuilt.
A node's type, where it sits, and the full state of its parameters, taken at one moment. Undo captures a snapshot before a node goes away and rebuilds the node from it later, and a saved file is a list of these plus the wiring between them.
| void enzo::nt::NodeSnapshot::restore | ( | nt::NodeId | nodeId | ) | const |
Rebuilds the node under the given id with the path, position, and parameters it had.