Darwin Neuroevolution Framework
Public Types | Public Member Functions | List of all members
darwin::EvolutionStage Class Reference

Tracks the execution of an execution (sub)stage. More...

#include <evolution.h>

Public Types

enum  Annotation : uint32_t {
  Paused = 1,
  Canceled = 2,
  Generation = 4
}
 Stage bit flags. More...
 

Public Member Functions

 EvolutionStage (const string &name_, size_t size_, uint32_t annotations)
 Constructs an stage object.
 
void start ()
 Marks the start of the stage.
 
void finish ()
 Marks the finish of the stage.
 
const string & name () const
 Stage name.
 
double elapsed () const
 Stage elapsed time in seconds.
 
int progressPercent () const
 Progress percent [0..100].
 
const vector< EvolutionStage > & subStages () const
 List of sub-stages, if any.
 

Detailed Description

Tracks the execution of an execution (sub)stage.

Member Enumeration Documentation

◆ Annotation

Stage bit flags.

Enumerator
Paused 

The stage was paused (and resumed)

Canceled 

The stage was canceled while running.

Generation 

Generation top stage.


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