blob: 1a90d6b230d9f37a0150a23d617d41302d53b460 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#include "generation_tracker.hpp"
GenerationTracker::GenerationTracker(bool is_paused) noexcept : _is_paused(is_paused) {}
auto GenerationTracker::get_current_generation() const noexcept -> std::uint32_t
{
return _current_generation;
}
void GenerationTracker::set_current_generation(std::uint32_t current_generation) noexcept
{
_current_generation = current_generation;
}
auto GenerationTracker::get_is_paused() const noexcept -> bool
{
return _is_paused;
}
void GenerationTracker::set_is_paused(bool is_paused) noexcept
{
_is_paused = is_paused;
}
|