clingo
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups
Public Member Functions | Public Attributes | List of all members
Gringo::Ground::PredicateLiteral Struct Reference

#include <literals.hh>

Inheritance diagram for Gringo::Ground::PredicateLiteral:
Inheritance graph
Collaboration diagram for Gringo::Ground::PredicateLiteral:
Collaboration graph

Public Member Functions

 PredicateLiteral (PredicateDomain &dom, NAF naf, UTerm &&repr)
 
virtual void print (std::ostream &out) const
 
virtual UGTerm getRepr () const
 
virtual bool isPositive () const
 
virtual bool isNegative () const
 
virtual void setType (OccurrenceType x)
 
virtual OccurrenceType getType () const
 
virtual bool isRecursive () const
 
virtual BodyOccoccurrence ()
 
virtual void collect (VarTermBoundVec &vars) const
 
virtual DefinedBydefinedBy ()
 
virtual UIdx index (Scripts &scripts, BinderType type, Term::VarSet &bound)
 
virtual Output::LiteraltoOutput ()
 
virtual Score score (Term::VarSet const &bound)
 
virtual void checkDefined (LocSet &done, SigSet const &edb, UndefVec &undef) const
 
virtual ~PredicateLiteral ()
 
- Public Member Functions inherited from Gringo::Ground::Literal
virtual void collectImportant (Term::VarSet &vars)
 
virtual ~Literal ()
 
- Public Member Functions inherited from Gringo::Printable
virtual ~Printable ()
 
- Public Member Functions inherited from Gringo::Ground::BodyOccurrence< HeadOcc >
virtual ~BodyOccurrence ()
 

Public Attributes

OccurrenceType type = OccurrenceType::POSITIVELY_STRATIFIED
 
UTerm repr
 
DefinedBy defs
 
PredicateDomaindomain
 
Output::PredicateLiteral gLit
 

Additional Inherited Members

- Public Types inherited from Gringo::Ground::Literal
using SValVec = Instantiator::SValVec
 
using Score = double
 
- Public Types inherited from Gringo::Ground::BodyOccurrence< HeadOcc >
typedef std::vector
< std::reference_wrapper
< HeadOcc > > 
DefinedBy
 

Constructor & Destructor Documentation

Gringo::Ground::PredicateLiteral::PredicateLiteral ( PredicateDomain dom,
NAF  naf,
UTerm &&  repr 
)
Gringo::Ground::PredicateLiteral::~PredicateLiteral ( )
virtual

Member Function Documentation

void Gringo::Ground::PredicateLiteral::checkDefined ( LocSet done,
SigSet const &  edb,
UndefVec undef 
) const
virtual

Implements Gringo::Ground::BodyOccurrence< HeadOcc >.

Here is the call graph for this function:

void Gringo::Ground::PredicateLiteral::collect ( VarTermBoundVec vars) const
virtual
BodyOcc::DefinedBy & Gringo::Ground::PredicateLiteral::definedBy ( )
virtual
UGTerm Gringo::Ground::PredicateLiteral::getRepr ( ) const
virtual
OccurrenceType Gringo::Ground::PredicateLiteral::getType ( ) const
virtual
UIdx Gringo::Ground::PredicateLiteral::index ( Scripts scripts,
BinderType  type,
Term::VarSet bound 
)
virtual

Implements Gringo::Ground::Literal.

Reimplemented in Gringo::Ground::ProjectionLiteral.

Here is the call graph for this function:

bool Gringo::Ground::PredicateLiteral::isNegative ( ) const
virtual
bool Gringo::Ground::PredicateLiteral::isPositive ( ) const
virtual
bool Gringo::Ground::PredicateLiteral::isRecursive ( ) const
virtual
BodyOcc * Gringo::Ground::PredicateLiteral::occurrence ( )
virtual
void Gringo::Ground::PredicateLiteral::print ( std::ostream &  out) const
virtual

Implements Gringo::Printable.

Literal::Score Gringo::Ground::PredicateLiteral::score ( Term::VarSet const &  bound)
virtual

Implements Gringo::Ground::Literal.

Here is the call graph for this function:

void Gringo::Ground::PredicateLiteral::setType ( OccurrenceType  x)
virtual
Output::Literal * Gringo::Ground::PredicateLiteral::toOutput ( )
virtual

Implements Gringo::Ground::Literal.

Here is the call graph for this function:

Member Data Documentation

DefinedBy Gringo::Ground::PredicateLiteral::defs
PredicateDomain& Gringo::Ground::PredicateLiteral::domain
Output::PredicateLiteral Gringo::Ground::PredicateLiteral::gLit
UTerm Gringo::Ground::PredicateLiteral::repr
OccurrenceType Gringo::Ground::PredicateLiteral::type = OccurrenceType::POSITIVELY_STRATIFIED

The documentation for this struct was generated from the following files: