prefix is better than postfix

This commit is contained in:
Tiago Gomes
2012-05-28 14:12:18 +01:00
parent a9c369aac1
commit 250d122fc8
8 changed files with 19 additions and 19 deletions

View File

@@ -64,7 +64,7 @@ BayesBall::scheduleParents (const DAGraphNode* n, Scheduling& sch) const
{
const vector<DAGraphNode*>& ps = n->parents();
for (vector<DAGraphNode*>::const_iterator it = ps.begin();
it != ps.end(); it++) {
it != ps.end(); ++it) {
sch.push (ScheduleInfo (*it, false, true));
}
}
@@ -76,7 +76,7 @@ BayesBall::scheduleChilds (const DAGraphNode* n, Scheduling& sch) const
{
const vector<DAGraphNode*>& cs = n->childs();
for (vector<DAGraphNode*>::const_iterator it = cs.begin();
it != cs.end(); it++) {
it != cs.end(); ++it) {
sch.push (ScheduleInfo (*it, true, false));
}
}