#include <aggregates.hh>
|
| TupleBodyAggregate (NAF naf, AggregateFunction fun, BoundVec &&bounds, BodyAggrElemVec &&elems) |
|
virtual bool | rewriteAggregates (UBodyAggrVec &aggr) |
|
virtual bool | isAssignment () const |
|
virtual void | removeAssignment () |
|
virtual void | collect (VarTermBoundVec &vars) const |
|
virtual bool | operator== (BodyAggregate const &other) const |
|
virtual void | print (std::ostream &out) const |
|
virtual size_t | hash () const |
|
virtual TupleBodyAggregate * | clone () const |
|
virtual void | unpool (UBodyAggrVec &x, bool beforeRewrite) |
| Unpool the aggregate and aggregate elements. More...
|
|
virtual void | simplify (Projections &project, Term::DotsMap &dots, Term::ScriptMap &scripts, unsigned &auxNum) |
|
virtual void | assignLevels (AssignLevel &lvl) |
|
virtual void | rewriteArithmetics (Term::ArithmeticsMap &arith, Literal::AssignVec &assign, unsigned &auxNum) |
|
virtual bool | hasPool (bool beforeRewrite) const |
|
virtual bool | check (ChkLvlVec &lvl) const |
|
virtual void | replace (Defines &dx) |
|
virtual CreateBody | toGround (ToGroundArg &x, Ground::UStmVec &stms) const |
|
virtual | ~TupleBodyAggregate () |
|
Public Member Functions inherited from Gringo::Input::BodyAggregate |
virtual | ~BodyAggregate () |
|
virtual | ~Printable () |
|
virtual | ~Hashable () |
|
virtual Location const & | loc () const =0 |
|
virtual void | loc (Location const &loc)=0 |
|
virtual | ~Locatable () |
|
virtual | ~Clonable () |
|
virtual bool | operator== (BodyAggregateconst &other) const =0 |
|
virtual bool | operator!= (BodyAggregateconst &other) const |
|
virtual | ~Comparable () |
|
Gringo::Input::TupleBodyAggregate::~TupleBodyAggregate |
( |
| ) |
|
|
virtual |
void Gringo::Input::TupleBodyAggregate::assignLevels |
( |
AssignLevel & |
lvl | ) |
|
|
virtual |
bool Gringo::Input::TupleBodyAggregate::check |
( |
ChkLvlVec & |
lvl | ) |
const |
|
virtual |
void Gringo::Input::TupleBodyAggregate::collect |
( |
VarTermBoundVec & |
vars | ) |
const |
|
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).
Implements Gringo::Input::BodyAggregate.
size_t Gringo::Input::TupleBodyAggregate::hash |
( |
| ) |
const |
|
virtual |
bool Gringo::Input::TupleBodyAggregate::hasPool |
( |
bool |
beforeRewrite | ) |
const |
|
virtual |
bool Gringo::Input::TupleBodyAggregate::isAssignment |
( |
| ) |
const |
|
virtual |
bool Gringo::Input::TupleBodyAggregate::operator== |
( |
BodyAggregate const & |
other | ) |
const |
|
virtual |
void Gringo::Input::TupleBodyAggregate::print |
( |
std::ostream & |
out | ) |
const |
|
virtual |
void Gringo::Input::TupleBodyAggregate::removeAssignment |
( |
| ) |
|
|
virtual |
void Gringo::Input::TupleBodyAggregate::replace |
( |
Defines & |
dx | ) |
|
|
virtual |
bool Gringo::Input::TupleBodyAggregate::rewriteAggregates |
( |
UBodyAggrVec & |
aggr | ) |
|
|
virtual |
Rewrite aggregates. Separates assignment aggregates from ordinary bounds, and transforms literal aggregates into tuple aggregates. Returns false iff the aggregates must be removed. Argument aggr contains the rewritten aggregates.
Implements Gringo::Input::BodyAggregate.
void Gringo::Input::TupleBodyAggregate::unpool |
( |
UBodyAggrVec & |
x, |
|
|
bool |
beforeRewrite |
|
) |
| |
|
virtual |
BoundVec Gringo::Input::TupleBodyAggregate::bounds |
NAF Gringo::Input::TupleBodyAggregate::naf |
The documentation for this struct was generated from the following files:
- /Users/danielbaeck/Dropbox/Uni Klagenfurt/Diplomarbeit/gringo44/libgringo/gringo/input/aggregates.hh
- /Users/danielbaeck/Dropbox/Uni Klagenfurt/Diplomarbeit/gringo44/libgringo/src/input/aggregates.cc