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

Method fetchAll

src/GraphCtrl/GraphElement/GElementRepository.cpp:80–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78
79
80CVoid GElementRepository::fetchAll(GElementManagerCPtr em) {
81 CGRAPH_ASSERT_NOT_NULL_THROW_ERROR(em)
82 for (GElementPtr cur : em->manager_elements_) {
83 /**
84 * 从 pipeline 的 element manager 中,逐层添加查询
85 * 查询到如果pipeline中,存在没有注册到 repo 中element,则写入 repo中
86 * 主要针对 python 注册场景中 直接创建 element 放入group 的场景
87 */
88 fetch(cur);
89 }
90}
91
92
93CVoid GElementRepository::fetch(GElementPtr element) {

Callers 1

initEnvMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected