diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2023-05-05 16:35:09 -0400 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2023-05-05 16:35:09 -0400 |
commit | d7212d755dca7f4fd99cf4b775cd0d372d7bcbb2 (patch) | |
tree | a4ca0258eda334c4aa68073355b9f4ccd8a7bdef /src/tracker_state.h | |
parent | 017df1397ace9ab8c3f152362d07871dcb6858be (diff) | |
download | lingo-ap-tracker-d7212d755dca7f4fd99cf4b775cd0d372d7bcbb2.tar.gz lingo-ap-tracker-d7212d755dca7f4fd99cf4b775cd0d372d7bcbb2.tar.bz2 lingo-ap-tracker-d7212d755dca7f4fd99cf4b775cd0d372d7bcbb2.zip |
Refactored away singletons
(Except TrackerConfig, for now at least)
Diffstat (limited to 'src/tracker_state.h')
-rw-r--r-- | src/tracker_state.h | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/src/tracker_state.h b/src/tracker_state.h index 879e6f2..d8256e2 100644 --- a/src/tracker_state.h +++ b/src/tracker_state.h | |||
@@ -1,19 +1,8 @@ | |||
1 | #ifndef TRACKER_STATE_H_8639BC90 | 1 | #ifndef TRACKER_STATE_H_8639BC90 |
2 | #define TRACKER_STATE_H_8639BC90 | 2 | #define TRACKER_STATE_H_8639BC90 |
3 | 3 | ||
4 | #include <map> | 4 | void RecalculateReachability(); |
5 | #include <tuple> | ||
6 | 5 | ||
7 | class TrackerState { | 6 | bool IsLocationReachable(int area_id, int section_id); |
8 | public: | ||
9 | void CalculateState(); | ||
10 | |||
11 | bool IsLocationReachable(int area_id, int section_id); | ||
12 | |||
13 | private: | ||
14 | std::map<std::tuple<int, int>, bool> reachability_; | ||
15 | }; | ||
16 | |||
17 | TrackerState& GetTrackerState(); | ||
18 | 7 | ||
19 | #endif /* end of include guard: TRACKER_STATE_H_8639BC90 */ | 8 | #endif /* end of include guard: TRACKER_STATE_H_8639BC90 */ |