载入中...
搜索中...
未找到
eve::editing::GraphDocument类 参考
Generic mutable graph model with one authoritative revision clock. 更多...
#include <EditingGraph.h>
Public 成员函数 | |
| Result< void > | createNode (GraphNodeRecord node) |
| Creates node. | |
| Result< void > | deleteNode (const GraphNodeId &node) |
| Deletes node. | |
| Result< void > | connect (GraphEdgeRecord edge, const GraphConnectionDecision &decision) |
| Connect. | |
| Result< void > | disconnect (const StableId &edge) |
| Disconnect. | |
| Result< void > | setNodeProperties (const GraphNodeId &node, Value properties) |
| Sets the node properties. | |
| Result< void > | setParameters (Value parameters) |
| Sets the parameters. | |
| GraphDocumentData | snapshot (std::string domain) const |
| Snapshot. | |
| Revision | revision () const |
| Revision. | |
| const GraphPinRecord * | findPin (const GraphPinId &pin) const |
| Finds pin. | |
详细描述
Generic mutable graph model with one authoritative revision clock.
在文件 EditingGraph.h 第 56 行定义.
成员函数说明
◆ connect()
| Result< void > eve::editing::GraphDocument::connect | ( | GraphEdgeRecord | edge, |
| const GraphConnectionDecision & | decision | ||
| ) |
◆ createNode()
| Result< void > eve::editing::GraphDocument::createNode | ( | GraphNodeRecord | node | ) |
◆ deleteNode()
| Result< void > eve::editing::GraphDocument::deleteNode | ( | const GraphNodeId & | node | ) |
◆ disconnect()
◆ findPin()
| const GraphPinRecord * eve::editing::GraphDocument::findPin | ( | const GraphPinId & | pin | ) | const |
Finds pin.
- 返回
- Borrowed non-owning pin pointer, or null. @lifetime Valid until this document is mutated or destroyed.
在文件 EditingGraph.cpp 第 108 行定义.
被这些函数引用 connect() , 以及 createNode().
◆ revision()
|
inline |
Revision.
在文件 EditingGraph.h 第 73 行定义.
◆ setNodeProperties()
| Result< void > eve::editing::GraphDocument::setNodeProperties | ( | const GraphNodeId & | node, |
| Value | properties | ||
| ) |
Sets the node properties.
在文件 EditingGraph.cpp 第 67 行定义.
引用了 found, node, eve::editing::Value::Object , 以及 properties.
◆ setParameters()
Sets the parameters.
在文件 EditingGraph.cpp 第 80 行定义.
引用了 eve::editing::Value::isWithinLimits(), eve::editing::Value::Object , 以及 eve::editing::Value::type().
◆ snapshot()
| GraphDocumentData eve::editing::GraphDocument::snapshot | ( | std::string | domain | ) | const |
该类的文档由以下文件生成:
- src/modules/editing/EditingGraph.h
- src/modules/editing/EditingGraph.cpp