![]() |
Virtual Belgium
2.0
A micro-simulation platform for the Belgian population
|
Aggregate output data class. More...
#include <Data.hpp>
Public Member Functions | |
| AggregateSum () | |
| Constructor. More... | |
| virtual | ~AggregateSum () |
| Destructor. More... | |
| void | increment () |
| Increment sum. More... | |
| void | reset () |
| Reset sum to 0. More... | |
| int | getData () |
| Return the current state of sum. More... | |
Private Attributes | |
| int | _sum |
| the aggregate sum computed over all processes used to run the simulation More... | |
Aggregate output data class.
This class is responsible for gathering aggregate data from the simulation.
| AggregateSum::AggregateSum | ( | ) |
Constructor.
|
inlinevirtual |
Destructor.
| int AggregateSum::getData | ( | ) |
Return the current state of sum.
| void AggregateSum::increment | ( | ) |
Increment sum.
| void AggregateSum::reset | ( | ) |
Reset sum to 0.
|
private |
the aggregate sum computed over all processes used to run the simulation