IAtari
Genetic algorithm generating AI capable to play Atari2600 games.
message::result< T > Struct Template Reference

Represent the score performed by a freshly tested agent, can be (un)serialized. More...

#include <message.hpp>

Public Member Functions

void serialize (Archive &ar, const unsigned int)
 Save/Load agent with archive. More...
 

Public Attributes

int id
 
std::list< T > results
 

Detailed Description

template<typename T>
struct message::result< T >

Represent the score performed by a freshly tested agent, can be (un)serialized.

Member Function Documentation

◆ serialize()

template<typename T>
message::result< Archive >::serialize ( Archive &  ar,
const unsigned int   
)
inline

Save/Load agent with archive.

Parameters
[in,out]arArchived agent
Remarks
The second parameter is unused, as we don't ensure retrocompatibility.
Warning
Don't use it. This function is automatically called when (un)serializing with boost.

Member Data Documentation

◆ id

template<typename T>
int message::result< T >::id

Identifier of this agent

◆ results

template<typename T>
std::list<T> message::result< T >::results

List of score performed by this agent during testing


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