personal_rng.h Source File
|
CPP API
|
personal_rng.h
Go to the documentation of this file.
49 class PersonalRandomNumberGenerator : public mio::RandomNumberGeneratorBase<PersonalRandomNumberGenerator>
58 PersonalRandomNumberGenerator(mio::Key<uint64_t> key, uint32_t index, mio::Counter<uint32_t>& counter);
Agents in the simulated Model that can carry and spread the Infection.
Definition: person.h:51
Random number generator of individual persons.
Definition: personal_rng.h:50
mio::Key< uint64_t > m_key
Global RNG Key.
Definition: personal_rng.h:91
uint32_t m_person_index
Index of the Person.
Definition: personal_rng.h:92
mio::Counter< uint32_t > & m_counter
Reference to the Person's rng counter.
Definition: personal_rng.h:93
mio::Key< uint64_t > get_key() const
Definition: personal_rng.h:69
mio::Counter< uint64_t > get_counter() const
Definition: personal_rng.h:77
void increment_counter()
Increment the counter.
Definition: personal_rng.h:85
PersonalRandomNumberGenerator(mio::Key< uint64_t > key, uint32_t index, mio::Counter< uint32_t > &counter)
Creates a RandomNumberGenerator for a person.
Definition: personal_rng.cpp:30
A collection of classes to simplify handling of matrix shapes in meta programming.
Definition: models/abm/analyze_result.h:30
Generated by