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

Function tutorial_hello_cgraph

tutorial/T00-HelloCGraph.cpp:13–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11using namespace CGraph;
12
13void tutorial_hello_cgraph() {
14 GPipelinePtr pipeline = GPipelineFactory::create(); // 创建一个pipeline,用于执行图框架信息
15 GElementPtr hcg = nullptr;
16
17 pipeline->registerGElement<HelloCGraphNode>(&hcg); // 注册一个HelloCGraphNode节点,功能就是打印 "Hello, CGraph." 信息
18 pipeline->process(); // 运行pipeline
19 GPipelineFactory::remove(pipeline);
20}
21
22
23int main() {

Callers 1

mainFunction · 0.70

Calls 3

createFunction · 0.85
removeFunction · 0.85
processMethod · 0.45

Tested by

no test coverage detected