1 #ifndef GRAIL_AGGREGATOR_H
2 #define GRAIL_AGGREGATOR_H
4 #include "../Evaluator.hh"
15 template <
typename ContextType>
28 : childEvaluators{childEvaluators}
43 for(
const auto& childEvaluator : childEvaluators)
45 debugData.
AddChildNode(nodeMapping.at(childEvaluator.get()));
49 std::vector<std::shared_ptr<Evaluator<ContextType>>> childEvaluators{};
The EvaluationDebugData class - debug data describing singular evaluator.
Definition: EvaluationDebugData.h:20
void AddChildNode(std::size_t childNodeIndex)
AddChildNode - add node as leaf/child to this data node.
Definition: EvaluationDebugData.cpp:11
The Aggregator class - Base class for an Evaluator aggregating multiple other Evaluators' scores into...
Definition: Aggregator.hh:21
Aggregator(const std::vector< std::shared_ptr< Evaluator< ContextType >>> &childEvaluators)
Aggregator - Constructor.
Definition: Aggregator.hh:27
virtual void DebugDump(const std::map< const void *, std::size_t > &nodeMapping, EvaluationDebugData &debugData) const override
DebugDump - Called from EvaluateContext, which generates additional debug data for each evaluator....
Definition: Aggregator.hh:41
The Evaluator class - base class being able to evaluate given context and output the result.
Definition: Evaluator.hh:21