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

Method fetch

src/GraphCtrl/GraphElement/GElementRepository.cpp:93–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91
92
93CVoid GElementRepository::fetch(GElementPtr element) {
94 elements_.insert(element);
95 if (element->isGGroup()) {
96 auto group = dynamic_cast<GGroupPtr>(element);
97 CGRAPH_ASSERT_NOT_NULL_THROW_ERROR(group)
98 for (auto* cur : group->children_) {
99 fetch(cur);
100 }
101 }
102}
103
104
105CBool GElementRepository::isCancelState() const {

Callers

nothing calls this directly

Calls 2

insertMethod · 0.80
isGGroupMethod · 0.80

Tested by

no test coverage detected