dlvhex
2.5.0
|
Callback function object for handling external atom answer tuples by multiple callbacks. More...
#include <include/dlvhex2/BaseModelGenerator.h>
Public Member Functions | |
virtual | ~ExternalAnswerTupleMultiCallback () |
virtual bool | eatom (const ExternalAtom &eatom) |
Is called when the next eatom is encountered. | |
virtual bool | input (const Tuple &input) |
Is called when the next input tuple is encountered. | |
virtual bool | output (const Tuple &output) |
Is called when the next output tuple is encountered. | |
Data Fields | |
std::vector < ExternalAnswerTupleCallback * > | callbacks |
List of atomic callbacks. |
Callback function object for handling external atom answer tuples by multiple callbacks.
Definition at line 170 of file BaseModelGenerator.h.
BaseModelGenerator::ExternalAnswerTupleMultiCallback::~ExternalAnswerTupleMultiCallback | ( | ) | [virtual] |
Definition at line 113 of file BaseModelGenerator.cpp.
bool BaseModelGenerator::ExternalAnswerTupleMultiCallback::eatom | ( | const ExternalAtom & | eatom | ) | [virtual] |
Is called when the next eatom is encountered.
eatom | The external atom currently encountered. |
Implements BaseModelGenerator::ExternalAnswerTupleCallback.
Definition at line 118 of file BaseModelGenerator.cpp.
References BaseModelGenerator::ExternalAnswerTupleCallback::eatom().
bool BaseModelGenerator::ExternalAnswerTupleMultiCallback::input | ( | const Tuple & | input | ) | [virtual] |
Is called when the next input tuple is encountered.
Preceded by eatom(...).
input | The input tuple currently encountered. |
Implements BaseModelGenerator::ExternalAnswerTupleCallback.
Definition at line 126 of file BaseModelGenerator.cpp.
References BaseModelGenerator::ExternalAnswerTupleCallback::input().
bool BaseModelGenerator::ExternalAnswerTupleMultiCallback::output | ( | const Tuple & | output | ) | [virtual] |
Is called when the next output tuple is encountered.
Preceded by eatom(...) even for empty input tuples.
eatom | The output tuple currently encountered. |
Implements BaseModelGenerator::ExternalAnswerTupleCallback.
Definition at line 134 of file BaseModelGenerator.cpp.
References BaseModelGenerator::ExternalAnswerTupleCallback::output().
std::vector<ExternalAnswerTupleCallback*> BaseModelGenerator::ExternalAnswerTupleMultiCallback::callbacks |
List of atomic callbacks.
Definition at line 174 of file BaseModelGenerator.h.