clingo
|
#include <aggregate.hh>
Public Member Functions | |
virtual void | unpool (UHeadAggrVec &x, bool beforeRewrite)=0 |
Unpool the aggregate and aggregate elements. More... | |
virtual void | simplify (Projections &project, Term::DotsMap &dots, Term::ScriptMap &scripts, unsigned &auxNum)=0 |
virtual void | assignLevels (AssignLevel &lvl)=0 |
virtual bool | check (ChkLvlVec &lvl) const =0 |
virtual void | rewriteArithmetics (Term::ArithmeticsMap &arith, unsigned &auxNum)=0 |
virtual UHeadAggr | rewriteAggregates (UBodyAggrVec &aggr)=0 |
virtual UHeadAggr | shiftHead (UBodyAggrVec &aggr)=0 |
virtual void | collect (VarTermBoundVec &vars) const =0 |
virtual bool | hasPool (bool beforeRewrite) const =0 |
virtual void | replace (Defines &dx)=0 |
virtual CreateHead | toGround (ToGroundArg &x, bool external) const =0 |
virtual Value | isEDB () const |
virtual | ~HeadAggregate () |
Public Member Functions inherited from Gringo::Printable | |
virtual void | print (std::ostream &out) const =0 |
virtual | ~Printable () |
Public Member Functions inherited from Gringo::Hashable | |
virtual size_t | hash () const =0 |
virtual | ~Hashable () |
Public Member Functions inherited from Gringo::Locatable | |
virtual Location const & | loc () const =0 |
virtual void | loc (Location const &loc)=0 |
virtual | ~Locatable () |
Public Member Functions inherited from Gringo::Clonable< HeadAggregate > | |
virtual HeadAggregate * | clone () const =0 |
virtual | ~Clonable () |
Public Member Functions inherited from Gringo::Comparable< HeadAggregate > | |
virtual bool | operator== (HeadAggregateconst &other) const =0 |
virtual bool | operator!= (HeadAggregateconst &other) const |
virtual | ~Comparable () |
|
inlinevirtual |
|
pure virtual |
Assign levels to variables using the VarCollector.
Implemented in Gringo::Input::SimpleHeadLiteral, Gringo::Input::Disjunction, Gringo::Input::LitHeadAggregate, and Gringo::Input::TupleHeadAggregate.
|
pure virtual |
|
pure virtual |
Collects all variables occuring in the aggregate. Occurrences bound by the aggregate are marked as such (occurrences bound in nested scopes are not marked).
Implemented in Gringo::Input::SimpleHeadLiteral, Gringo::Input::Disjunction, Gringo::Input::LitHeadAggregate, and Gringo::Input::TupleHeadAggregate.
|
pure virtual |
|
virtual |
Reimplemented in Gringo::Input::SimpleHeadLiteral.
|
pure virtual |
|
pure virtual |
|
pure virtual |
Rewrite arithmetics.
Implemented in Gringo::Input::SimpleHeadLiteral, Gringo::Input::Disjunction, Gringo::Input::LitHeadAggregate, and Gringo::Input::TupleHeadAggregate.
|
pure virtual |
|
pure virtual |
Simplify the aggregate and aggregate elements.
Implemented in Gringo::Input::SimpleHeadLiteral, Gringo::Input::Disjunction, Gringo::Input::LitHeadAggregate, and Gringo::Input::TupleHeadAggregate.
|
pure virtual |
|
pure virtual |
Unpool the aggregate and aggregate elements.
Implemented in Gringo::Input::SimpleHeadLiteral, Gringo::Input::Disjunction, Gringo::Input::LitHeadAggregate, and Gringo::Input::TupleHeadAggregate.