|
Grail (C++)
1.3.0
A multi-platform, modular, universal engine for embedding advanced AI in games.
|
3 #ifndef GRAIL_UTILITY_EVALUATOR_SNAPSHOT_H
4 #define GRAIL_UTILITY_EVALUATOR_SNAPSHOT_H
6 #include "EvaluationDebugData.h"
7 #include "Flatbuffers/UtilityEvaluatorSnapshot_generated.h"
15 template <
typename DataType>
49 unsigned int AddNode(
const void* nodePointer);
82 std::vector<EvaluationDebugData> evaluations{};
83 std::map<const void*, unsigned int> nodeMapping{};
84 unsigned int nextIndex{0};
85 std::string evaluatedObjectName{};
86 std::string evaluatedObjectMetadata{};
90 flatbuffers::Offset<generated::UtilityEvaluatorSnapshot> Pack(flatbuffers::FlatBufferBuilder& builder,
const UtilityEvaluatorSnapshot& snapshot);
The EvaluationDebugData class - debug data describing singular evaluator.
Definition: EvaluationDebugData.h:24
const std::string & GetEvaluatedObjectMetadata() const
GetEvaluatedObjectMetadata.
Definition: UtilityEvaluatorSnapshot.cpp:30
unsigned int AddNode(const void *nodePointer)
AddNode - assign index indicating position in debug tree to the given node pointer.
Definition: UtilityEvaluatorSnapshot.cpp:21
const std::string & GetEvaluatedObjectName() const
GetEvaluatedObjectName.
Definition: UtilityEvaluatorSnapshot.cpp:29
const std::map< const void *, unsigned int > & GetNodeMapping() const
GetNodeMapping.
Definition: UtilityEvaluatorSnapshot.cpp:32
void AddEvaluation(EvaluationDebugData &&debugData)
AddEvaluation - add debug data describing singular evaluator node to this snapshot.
Definition: UtilityEvaluatorSnapshot.cpp:16
The UtilityEvaluatorSnapshot class - debug snapshot of whole evaluator tree assigned to evaluated obj...
Definition: UtilityEvaluatorSnapshot.h:26
const int & GetRank() const
GetRank.
Definition: UtilityEvaluatorSnapshot.cpp:31
const std::vector< EvaluationDebugData > & GetEvaluations() const
GetEvaluations.
Definition: UtilityEvaluatorSnapshot.cpp:28