void Display::normalize(Grounder *g) { HeadExpander headExp(g, *this); BodyExpander bodyExp(*this); head_->normalize(g, &headExp); for(LitPtrVec::size_type i = 0; i < body_.size(); i++) body_[i].normalize(g, &bodyExp); }
void GlobalConstraint::normalize(Grounder *g) { for (size_t i = 0; i < heads_.size(); ++i) { heads_[i].normalize(g, boost::bind(&GlobalConstraint::expandHead,*this,g,_1,_2)); } Lit::Expander bodyExp(boost::bind(&GlobalConstraint::append, this, _1)); for (size_t i = 0; i < body_.size(); ++i) { body_[i].normalize(g,bodyExp); } }