dlvhex
2.5.0
|
Base class for grounder implementations. More...
#include <include/dlvhex2/GenuineSolver.h>
Public Types | |
typedef boost::shared_ptr < GenuineGrounder > | Ptr |
typedef boost::shared_ptr < const GenuineGrounder > | ConstPtr |
Public Member Functions | |
virtual const OrdinaryASPProgram & | getGroundProgram ()=0 |
Static Public Member Functions | |
static Ptr | getInstance (ProgramCtx &ctx, const OrdinaryASPProgram &program, InterpretationConstPtr frozen=InterpretationConstPtr()) |
Interprets the settings in ctx and creates an instance of a concrete subclass of this class, which implements a specific grounder. |
Base class for grounder implementations.
Definition at line 77 of file GenuineSolver.h.
typedef boost::shared_ptr<const GenuineGrounder> GenuineGrounder::ConstPtr |
Reimplemented in InternalGrounder, and GenuineSolver.
Definition at line 83 of file GenuineSolver.h.
typedef boost::shared_ptr<GenuineGrounder> GenuineGrounder::Ptr |
Reimplemented in InternalGrounder, and GenuineSolver.
Definition at line 82 of file GenuineSolver.h.
virtual const OrdinaryASPProgram& GenuineGrounder::getGroundProgram | ( | ) | [pure virtual] |
Implemented in InternalGrounder, and GenuineSolver.
DLVHEX_NAMESPACE_BEGIN GenuineGrounderPtr GenuineGrounder::getInstance | ( | ProgramCtx & | ctx, |
const OrdinaryASPProgram & | program, | ||
InterpretationConstPtr | frozen = InterpretationConstPtr() |
||
) | [static] |
Interprets the settings in ctx
and creates an instance of a concrete subclass of this class, which implements a specific grounder.
ctx | ProgramCtx. |
program | OrdinaryASPProgram to be grounded. |
frozen | A set of atoms which occur in ns and are saved from being optimized away (e.g. because their truth values are relevant); if NULL, then all variables are frozen. |
Definition at line 69 of file GenuineSolver.cpp.
References ProgramCtx::config, DBGLOG, and Configuration::getOption().
Referenced by BaseModelGenerator::computeExtensionOfDomainPredicates(), GenuineGuessAndCheckModelGenerator::GenuineGuessAndCheckModelGenerator(), and GenuineGuessAndCheckModelGenerator::inlineExternalAtoms().