dlvhex
2.5.0
|
Base class for customized answer set printers. More...
#include <include/dlvhex2/AnswerSetPrinterCallback.h>
Public Member Functions | |
AnswerSetPrinterCallback (ProgramCtx &ctx) | |
Constructor. | |
virtual bool | operator() (AnswerSetPtr model) |
Method called for each answer set of the program. | |
Protected Attributes | |
PredicateMaskPtr | filterpm |
Mask representing the set of all atoms to be included in the output; might be NULL to represent that all atoms shall be output. | |
ProgramCtx & | ctx |
ProgramCtx. |
Base class for customized answer set printers.
Definition at line 44 of file AnswerSetPrinterCallback.h.
Constructor.
ctx | ProgramCtx. |
Definition at line 50 of file AnswerSetPrinterCallback.cpp.
References ProgramCtx::config, filterpm, Configuration::getFilters(), and ProgramCtx::registry().
bool AnswerSetPrinterCallback::operator() | ( | AnswerSetPtr | model | ) | [virtual] |
Method called for each answer set of the program.
model | Pointer to the current answer set. |
Implements ModelCallback.
Definition at line 72 of file AnswerSetPrinterCallback.cpp.
References ProgramCtx::config, ctx, DLVHEX_BENCHMARK_REGISTER_AND_SCOPE, bm::bvector< Alloc >::end(), filterpm, bm::bvector< Alloc >::first(), Configuration::getOption(), and WARNING().
ProgramCtx& AnswerSetPrinterCallback::ctx [protected] |
PredicateMaskPtr AnswerSetPrinterCallback::filterpm [protected] |
Mask representing the set of all atoms to be included in the output; might be NULL to represent that all atoms shall be output.
Definition at line 61 of file AnswerSetPrinterCallback.h.
Referenced by AnswerSetPrinterCallback(), and operator()().