WSF
TrackList.hpp
Go to the documentation of this file.
1// ****************************************************************************
2// CUI//REL TO USA ONLY
3//
4// The Advanced Framework for Simulation, Integration, and Modeling (AFSIM)
5//
6// Copyright 2003-2015 The Boeing Company. All rights reserved.
7//
8// The use, dissemination or disclosure of data in this file is subject to
9// limitation or restriction. See accompanying README and LICENSE for details.
10// ****************************************************************************
11#ifndef L16_TRACKLIST_HPP
12#define L16_TRACKLIST_HPP
13
14#include <map>
15
16class WsfTrack;
17
18namespace WsfL16
19{
25{
26public:
27 TrackId(unsigned aSourceTrackNumber, unsigned aTrackNumber);
28
30 unsigned mTrackNumber;
31
32 bool operator<(const TrackId& aRhs) const;
33};
34
38{
39public:
40 typedef std::map<TrackId, WsfTrack*> TrackMap;
41 TrackList();
42 ~TrackList();
43
44 void Add(TrackId aTrackId, WsfTrack* aTrack);
45
46 WsfTrack* Find(TrackId aTrackId);
47
48 TrackMap::const_iterator Begin() const { return mTracks.begin(); }
49 TrackMap::const_iterator End() const { return mTracks.end(); }
50
51protected:
53};
54} // namespace WsfL16
55
56#endif
Definition TrackList.hpp:25
TrackId(unsigned aSourceTrackNumber, unsigned aTrackNumber)
Definition TrackList.cpp:44
unsigned mSourceTrackNumber
Definition TrackList.hpp:29
bool operator<(const TrackId &aRhs) const
Definition TrackList.cpp:50
unsigned mTrackNumber
Definition TrackList.hpp:30
~TrackList()
Definition TrackList.cpp:20
TrackMap::const_iterator End() const
Definition TrackList.hpp:49
TrackMap::const_iterator Begin() const
Definition TrackList.hpp:48
TrackList()
Definition TrackList.cpp:18
std::map< TrackId, WsfTrack * > TrackMap
Definition TrackList.hpp:40
TrackMap mTracks
Definition TrackList.hpp:52
WsfTrack * Find(TrackId aTrackId)
Definition TrackList.cpp:33
void Add(TrackId aTrackId, WsfTrack *aTrack)
Definition TrackList.cpp:28
An object that represents an 'track' (perception) of something.
Definition WsfTrack.hpp:120
This file should be included prior to defining a message. Currently there is a limit of 32 fields per...
Definition AllMessages.hpp:55
Copyrights Multiple, All Rights Reserved