File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed
Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -123,6 +123,8 @@ int TracksManager::NumShots() const { return tracks_per_shot_.size(); }
123123
124124int TracksManager::NumTracks () const { return shots_per_track_.size (); }
125125
126+ bool TracksManager::HasShotObservations (const ShotId& shot) const { return tracks_per_shot_.count (shot) > 0 ; }
127+
126128std::vector<ShotId> TracksManager::GetShotIds () const {
127129 std::vector<ShotId> shots;
128130 shots.reserve (tracks_per_shot_.size ());
Original file line number Diff line number Diff line change @@ -45,6 +45,8 @@ class TracksManager {
4545 static TracksManager InstanciateFromString (const std::string& str);
4646 std::string AsSring ()const ;
4747
48+ bool HasShotObservations (const ShotId& shot) const ;
49+
4850 static std::string TRACKS_HEADER;
4951 static int TRACKS_VERSION;
5052
You can’t perform that action at this time.
0 commit comments