dlvhex
2.5.0
|
Evaluation Graph builder that dumps its evaluation plan. More...
#include <include/dlvhex2/DumpingEvalGraphBuilder.h>
Public Member Functions | |
DumpingEvalGraphBuilder (ProgramCtx &ctx, ComponentGraph &cg, EvalGraphT &eg, ASPSolverManager::SoftwareConfigurationPtr externalEvalConfig, const std::string &outputfilename) | |
Constructor. | |
virtual | ~DumpingEvalGraphBuilder () |
Destructor. | |
virtual EvalUnit | createEvalUnit (const std::list< Component > &comps, const std::list< Component > &ccomps) |
This methods modifies the eval graph. | |
Protected Attributes | |
std::ofstream | output |
Stream where the EvaluationGraph is dumped to. | |
std::map < ComponentGraph::Component, unsigned > | componentidx |
Assignment of unique indexes to components. |
Evaluation Graph builder that dumps its evaluation plan.
Definition at line 43 of file DumpingEvalGraphBuilder.h.
DLVHEX_NAMESPACE_BEGIN DumpingEvalGraphBuilder::DumpingEvalGraphBuilder | ( | ProgramCtx & | ctx, |
ComponentGraph & | cg, | ||
EvalGraphT & | eg, | ||
ASPSolverManager::SoftwareConfigurationPtr | externalEvalConfig, | ||
const std::string & | outputfilename | ||
) |
Constructor.
ctx | See EvalGraphBuilder::ctx. |
cg | See EvalGraphBuilder::cg. |
eg | Evaluation graph to write the result to. |
externalEvalConfig | See ASPSolverManager::SoftwareConfiguration. |
outputfilename | Name of the file where the evaluation graph is written to. |
Definition at line 45 of file DumpingEvalGraphBuilder.cpp.
DumpingEvalGraphBuilder::~DumpingEvalGraphBuilder | ( | ) | [virtual] |
Destructor.
Definition at line 58 of file DumpingEvalGraphBuilder.cpp.
DumpingEvalGraphBuilder::EvalUnit DumpingEvalGraphBuilder::createEvalUnit | ( | const std::list< Component > & | comps, |
const std::list< Component > & | ccomps | ||
) | [virtual] |
This methods modifies the eval graph.
It asserts that all requirements for evaluation units are fulfilled it adds an evaluation unit created from given nodes, including dependencies.
add ordered unit dependencies
ComponentRange
comps | List of components to directly put into eval unit. |
ccomps | List of components to copy into eval unit (these copied components may only contain constraints, and these must obey the constraint pushing restrictions (this will be asserted by createEvalUnit)). |
Reimplemented from EvalGraphBuilder.
Definition at line 64 of file DumpingEvalGraphBuilder.cpp.
References EvalGraphBuilder::cg, EvalGraphBuilder::cgrest, componentidx, EvalGraphBuilder::createEvalUnit(), DBGLOG, DBGLOG_SCOPE, EvalGraphBuilder::getComponentGraphRest(), ComponentGraph::getComponents(), output, and printrange().
std::map<ComponentGraph::Component, unsigned> DumpingEvalGraphBuilder::componentidx [protected] |
Assignment of unique indexes to components.
Definition at line 50 of file DumpingEvalGraphBuilder.h.
Referenced by createEvalUnit().
std::ofstream DumpingEvalGraphBuilder::output [protected] |
Stream where the EvaluationGraph is dumped to.
Definition at line 48 of file DumpingEvalGraphBuilder.h.
Referenced by createEvalUnit().