载入中...
搜索中...
未找到
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()

◆ createNode()

Result< void > eve::editing::GraphDocument::createNode ( GraphNodeRecord  node)

Creates node.

在文件 EditingGraph.cpp 第 9 行定义.

引用了 findPin() , 以及 node.

◆ deleteNode()

Result< void > eve::editing::GraphDocument::deleteNode ( const GraphNodeId &  node)

Deletes node.

在文件 EditingGraph.cpp 第 27 行定义.

引用了 edge , 以及 node.

◆ disconnect()

Result< void > eve::editing::GraphDocument::disconnect ( const StableId &  edge)

Disconnect.

在文件 EditingGraph.cpp 第 59 行定义.

引用了 edge.

◆ 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 行定义.

引用了 found , 以及 node.

被这些函数引用 connect() , 以及 createNode().

◆ revision()

Revision eve::editing::GraphDocument::revision ( ) const
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()

Result< void > eve::editing::GraphDocument::setParameters ( Value  parameters)

Sets the parameters.

在文件 EditingGraph.cpp 第 80 行定义.

引用了 eve::editing::Value::isWithinLimits(), eve::editing::Value::Object , 以及 eve::editing::Value::type().

◆ snapshot()


该类的文档由以下文件生成: