MCPcopy Create free account
hub / github.com/Smorodov/Multitarget-tracker / GetTracks

Method GetTracks

src/Tracker/Ctracker.cpp:127–137  ·  view source on GitHub ↗

\brief GetTracks \return

Source from the content-addressed store, hash-verified

125/// \return
126///
127void CTracker::GetTracks(std::vector<TrackingObject>& tracks) const
128{
129 tracks.clear();
130
131 if (m_tracks.size() > tracks.capacity())
132 tracks.reserve(m_tracks.size());
133 for (const auto& track : m_tracks)
134 {
135 tracks.emplace_back(track->ConstructObject(m_lastFrameTime));
136 }
137}
138
139///
140/// \brief GetRemovedTracks

Callers 5

mainFunction · 0.80
TrackingMethod · 0.80
MouseTrackingFunction · 0.80
TrackingThreadMethod · 0.80
mainFunction · 0.80

Calls 3

ConstructObjectMethod · 0.80
clearMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected