|
WSF
|
A 'Track List' is a container for a list of 'Track' objects. More...
#include <WsfTrackList.hpp>
Public Member Functions | |
| WsfTrackListT ()=default | |
| WsfTrackListT (const WsfTrackListT< T > &aSrc) | |
| WsfTrackListT< T > & | operator= (const WsfTrackListT< T > &aRhs)=delete |
| virtual | ~WsfTrackListT ()=default |
| void | AddTrack (std::unique_ptr< T > aTrackPtr) |
| Add a track to the track list. | |
| unsigned int | GetTrackCount () const |
| T * | GetTrackEntry (unsigned int aEntryIndex) |
| const T * | GetTrackEntry (unsigned int aEntryIndex) const |
| WsfTrackListT< T > * | Clone () const |
| Clone this object. | |
| bool | DeleteTrack (const WsfTrackId &aTrackId) |
| Delete the indicated track from the track list and delete the track object. | |
| unsigned int | DeleteTrackEntry (unsigned int aEntryIndex) |
| void | DeleteAllTracks () |
| Delete all the tracks in the track list. | |
| T * | FindTrack (const WsfTrackId &aTrackId) |
| Find the requested track. | |
| const T * | FindTrack (const WsfTrackId &aTrackId) const |
| Find the requested track. | |
| std::unique_ptr< T > | RemoveTrack (const WsfTrackId &aTrackId) |
| Remove the indicated track from the track list but don't delete the track object itself. | |
A 'Track List' is a container for a list of 'Track' objects.
This class is templatized; WsfTrackListFwd.hpp includes the following standard track lists (typedefs):
Please "#include" this file (WsfTrackListFwd.hpp) in header files where you only need pointers or references to either of these track list types. "#include" this file (WsfTrackList.hpp) wherever the track lists themselves are declared or defined.
|
default |
Referenced by WsfTrackListT< WsfTrack >::Clone(), FindTrack(), and WsfTrackListT().
| WsfTrackListT< T >::WsfTrackListT | ( | const WsfTrackListT< T > & | aSrc | ) |
References AddTrack(), trackPtr, and WsfTrackListT().
|
virtualdefault |
| void WsfTrackListT< T >::AddTrack | ( | std::unique_ptr< T > | aTrackPtr | ) |
Add a track to the track list.
| aTrackPtr | Pointer to the track to be added. This class takes ownership of the track object. |
Referenced by WsfDefaultSensorTracker::GetActiveTrackList(), WsfCorrelationStrategy::TestCorrelation(), WsfCompositeSensor::UpdateCompositeTrack(), and WsfTrackListT().
|
inline |
Clone this object.
Referenced by WsfScriptLocalTrackListClass::Clone(), and WsfClusterCorrelation::ClusterRawTracksIntoLocalTracks().
| void WsfTrackListT< T >::DeleteAllTracks | ( | ) |
Delete all the tracks in the track list.
| bool WsfTrackListT< T >::DeleteTrack | ( | const WsfTrackId & | aTrackId | ) |
Delete the indicated track from the track list and delete the track object.
| aTrackId | The track ID of the track to be deleted. |
Referenced by DeleteTrackEntry(), WsfCompositeSensor::DropContributorTrack(), and WsfPerfectTracker::NullTrack().
| unsigned int WsfTrackListT< T >::DeleteTrackEntry | ( | unsigned int | aEntryIndex | ) |
Delete a track entry from the track list, returning the next valid entry. If there is no next valid entry, or if the entry to be deleted is out-of-bounds, the value of GetTrackCount() will be returned.
References DeleteTrack().
| T * WsfTrackListT< T >::FindTrack | ( | const WsfTrackId & | aTrackId | ) |
Find the requested track.
This version returns a non-const pointer to the track so it can be modified.
| aTrackId | The track ID of the track to be located. |
Referenced by WsfFusionCenter::AdjustTrackQuantities(), WsfXIO_ScriptService::CheckParams(), WsfNearestNeighborCorrelation::CorrelateImpl(), WsfPerfectCorrelation::CorrelateImpl(), FindTrack(), WsfThreatProcessor::GetNearestThreat(), WsfWeaponTrackProcessor::Initialize2(), WsfBMHEFIRMOELogger::RegisterScriptObservers(), WsfCompositeSensor::UpdateCompositeTrack(), WsfFusionCenter::UpdateFalseTargetTracks(), WsfSA_Perceive::UpdatePerceivedItemsCalculation(), WsfFusionCenter::UpdateRealTargetTracks(), and WsfRIPRProcessor::WeaponsIncoming().
| const T * WsfTrackListT< T >::FindTrack | ( | const WsfTrackId & | aTrackId | ) | const |
Find the requested track.
This version returns a const pointer to the track.
| aTrackId | The track ID of the track to be located. |
References FindTrack(), and WsfTrackListT().
|
inline |
Get the number of tracks in the track list. This method, along with GetTrackEntry() can be used to iterate through the track list.
Referenced by WsfClusterCorrelation::ClusterRawTracksIntoLocalTracks(), WsfConvexHull::ConvexHull(), WsfLink16Correlation::CorrelateImpl(), WsfPerfectCorrelation::CorrelateImpl(), WsfTruthCorrelation::CorrelateImpl(), WsfBayesClassification::CreateClassifier(), WsfWeaponThreatProcessor::CreateThreatList(), WsfCompositeSensor::DropContributorTrack(), WsfScriptLocalTrackListClass::Enumerate(), WsfScriptTrackListClass::Enumerate(), WsfScriptLocalTrackListClass::EnumerateSize(), WsfScriptTrackListClass::EnumerateSize(), WsfTrackManager::FindCorrelatedTrack(), WsfTrackClusterObject::GetObjects(), WsfTrackClusterObject::GetObjects(), WsfSA_Assess::GetPerceivedTrackedPlatformWithTarget(), WsfXIO_TaskService::HandleCommand(), WsfSA_Processor::PlatformInTrackListMWS(), WsfBatchTrackReporting::ReportRawTracks(), WsfCompositeSensor::SensorDetectionChanged(), WsfCompositeSensor::SensorTurnedOff(), WsfRIPRProcessor::TargetTrack(), WsfP6DOF_Mover::Update(), WsfCompositeSensor::UpdateCompositeTrack(), WsfSA_Perceive::UpdatePerceivedItemsCalculation(), WsfPerceptionProcessor::UpdateThreats(), WsfImageProcessor::UpdateTrack(), and WsfSA_Processor::UpdateTrackData().
|
inline |
Get a track from the track list by its entry index (offset) into the list. This version returns a non-const pointer to a track so the track can be modified.
| aEntryIndex | Index of the desired entry. The index must be in the range 0 <= aEntryIndex < GetTrackCount(). |
Referenced by WsfClusterCorrelation::ClusterRawTracksIntoLocalTracks(), WsfConvexHull::ConvexHull(), WsfLink16Correlation::CorrelateImpl(), WsfPerfectCorrelation::CorrelateImpl(), WsfTruthCorrelation::CorrelateImpl(), WsfBayesClassification::CreateClassifier(), WsfWeaponThreatProcessor::CreateThreatList(), WsfCompositeSensor::DropContributorTrack(), WsfScriptLocalTrackListClass::Enumerate(), WsfScriptTrackListClass::Enumerate(), WsfTrackManager::FindCorrelatedTrack(), WsfTrackClusterObject::GetObjects(), WsfTrackClusterObject::GetObjects(), WsfSA_Assess::GetPerceivedTrackedPlatformWithTarget(), WsfXIO_TaskService::HandleCommand(), WsfSA_Processor::PlatformInTrackListMWS(), WsfBatchTrackReporting::ReportRawTracks(), WsfCompositeSensor::SensorDetectionChanged(), WsfCompositeSensor::SensorTurnedOff(), WsfRIPRProcessor::TargetTrack(), WsfP6DOF_Mover::Update(), WsfCompositeSensor::UpdateCompositeTrack(), WsfSA_Perceive::UpdatePerceivedItemsCalculation(), WsfPerceptionProcessor::UpdateThreats(), WsfImageProcessor::UpdateTrack(), and WsfSA_Processor::UpdateTrackData().
|
inline |
Get a track from the track list by its entry index (offset) into the list. This version returns a const-pointer to the track.
| aEntryIndex | Index of the desired entry. The index must be in the range 0 <= aEntryIndex < GetTrackCount(). |
|
delete |
| std::unique_ptr< T > WsfTrackListT< T >::RemoveTrack | ( | const WsfTrackId & | aTrackId | ) |
Remove the indicated track from the track list but don't delete the track object itself.
| aTrackId | The track ID of the track to be removed. |
References trackPtr.
Referenced by WsfWeaponTrackProcessor::ProcessTrackDrop().