MCPcopy Create free account
hub / github.com/ChunelFeng/CGraph / init

Method init

tutorial/MyGNode/MyWriteParamNode.h:17–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15class MyWriteParamNode : public CGraph::GNode {
16public:
17 CStatus init() override {
18 CStatus status;
19 /**
20 * 推荐在init()中,将可能用到的参数创建好。也支持在run的时候创建
21 * 支持在任意节点创建,任意节点读取同类型(MyParam)同名("param1")参数
22 */
23 status = CGRAPH_CREATE_GPARAM(MyParam, "param1")
24 return status;
25 }
26
27 CStatus run() override {
28 /**

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected