| 78 | |
| 79 | |
| 80 | CVoid 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 | |
| 93 | CVoid GElementRepository::fetch(GElementPtr element) { |