26{
27
29
31
32
33
34 TestCircularDependency cd_fuse("component \'is-excluded\' status", root);
35 std::vector<const ExcludableEntitySet*> sets;
36 std::set<const ExcludableEntity*> simple_entities;
37 fill(*root, sets, simple_entities, cd_fuse);
38
39 for (auto& comp : initial_list) {
41 TLOG_DEBUG(6) << comp->UID() <<
" is excluded in session";
42 if (const ExcludableEntitySet* rs = comp->cast<ExcludableEntitySet>()) {
44 }
45 }
46
47 for (unsigned long count = 1; true; ++count) {
48 const unsigned long num(
size());
49
50 TLOG_DEBUG(6) <<
"before auto-exclusion iteration " << count <<
" the number of excluded components is " << num;
51 for (const auto& set : sets) {
54 TLOG_DEBUG(6) <<
"Exclude custom entity-set- " <<
set->UID() <<
" because children are excluded";
57 }
58 }
59 }
60
61 for (auto& en : simple_entities) {
63 TLOG_DEBUG(6) <<
"Marking " << en->UID() <<
" as excluded\n";
65 }
66 }
67
70 << " iteration(s) auto-exclusion algorithm found no newly excluded sets, exiting loop ...";
71 break;
72 }
73
74 unsigned int iLimit(1000);
75 if (count > iLimit) {
77 break;
78 }
79 }
80}
bool is_included(const ExcludableEntity *component) const
std::unordered_set< std::string > set
void error(const Issue &issue)