dlvhex  2.5.0
BaseModelGenerator::ExternalAnswerTupleMultiCallback Struct Reference

Callback function object for handling external atom answer tuples by multiple callbacks. More...

#include <include/dlvhex2/BaseModelGenerator.h>

Inheritance diagram for BaseModelGenerator::ExternalAnswerTupleMultiCallback:
Collaboration diagram for BaseModelGenerator::ExternalAnswerTupleMultiCallback:

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.

Detailed Description

Callback function object for handling external atom answer tuples by multiple callbacks.

Definition at line 170 of file BaseModelGenerator.h.


Constructor & Destructor Documentation


Member Function Documentation

Is called when the next eatom is encountered.

Parameters:
eatomThe external atom currently encountered.
Returns:
True if enumeration shall be continued als false to abort.

Implements BaseModelGenerator::ExternalAnswerTupleCallback.

Definition at line 118 of file BaseModelGenerator.cpp.

References BaseModelGenerator::ExternalAnswerTupleCallback::eatom().

Is called when the next input tuple is encountered.

Preceded by eatom(...).

Parameters:
inputThe input tuple currently encountered.
Returns:
True if enumeration shall be continued als false to abort.

Implements BaseModelGenerator::ExternalAnswerTupleCallback.

Definition at line 126 of file BaseModelGenerator.cpp.

References BaseModelGenerator::ExternalAnswerTupleCallback::input().

Is called when the next output tuple is encountered.

Preceded by eatom(...) even for empty input tuples.

Parameters:
eatomThe output tuple currently encountered.
Returns:
True if enumeration shall be continued als false to abort.

Implements BaseModelGenerator::ExternalAnswerTupleCallback.

Definition at line 134 of file BaseModelGenerator.cpp.

References BaseModelGenerator::ExternalAnswerTupleCallback::output().


Field Documentation


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