Skip to content

Commit 7c27b39

Browse files
committed
Remove the 'set_' members from 'preds' struct
1 parent b66a6cc commit 7c27b39

File tree

1 file changed

+5
-13
lines changed

1 file changed

+5
-13
lines changed

include/boost/graph/dominator_tree.hpp

+5-13
Original file line numberDiff line numberDiff line change
@@ -78,14 +78,6 @@ namespace detail
7878

7979
typedef typename graph_traits< Graph >::vertex_descriptor Vertex;
8080

81-
void set_ancestor(const preds& pr) { ancestor = pr.ancestor; }
82-
83-
void set_ancestor(const Vertex& v) { ancestor = v; }
84-
85-
void set_best(const Vertex& v) { best = v; }
86-
87-
void set_semi(const Vertex& v) { semi = v; }
88-
8981
Vertex semi, ancestor, best;
9082
};
9183

@@ -162,13 +154,13 @@ namespace detail
162154
s = s2;
163155
}
164156
preds< Graph >& preds_of_n = get(predsMap_, n);
165-
preds_of_n.set_semi(s);
157+
preds_of_n.semi = s;
166158

167159
// 2. Calculation of n's dominator is deferred until
168160
// the path from s to n has been linked into the forest
169161
get(bucketMap_, s).push_back(n);
170-
preds_of_n.set_ancestor(p);
171-
preds_of_n.set_best(n);
162+
preds_of_n.ancestor = p;
163+
preds_of_n.best = n;
172164

173165
// 3. Now that the path from p to v has been linked into
174166
// the spanning forest, these lines calculate the dominator of v,
@@ -212,11 +204,11 @@ namespace detail
212204
const Vertex b(ancestor_with_lowest_semi_(a, dfnumMap));
213205
const preds< Graph >& preds_of_b = get(predsMap_, b);
214206

215-
preds_of_v.set_ancestor(preds_of_a);
207+
preds_of_v.ancestor = preds_of_a.ancestor;
216208

217209
if (get(dfnumMap, preds_of_b.semi)
218210
< get(dfnumMap, get(predsMap_, preds_of_v.best).semi))
219-
preds_of_v.set_best(b);
211+
preds_of_v.best = b;
220212
}
221213

222214
return preds_of_v.best;

0 commit comments

Comments
 (0)