|
WSF
|
#include <WsfUniqueId.hpp>

Public Member Functions | |
| WsfUniqueId () | |
| Construtor initializes the unique identifier to 0. | |
| WsfUniqueId (const WsfUniqueId &) | |
| Copy constructor initializes the unique identifier to 0. | |
| WsfUniqueId & | operator= (const WsfUniqueId &) |
| unsigned int | GetUniqueId () const |
| Get the unique identifier assigned to this object. | |
| template<typename T> | |
| void | Serialize (T &aBuff) |
| For XIO (de)serialization. | |
Protected Member Functions | |
| void | AssignUniqueId (WsfSimulation *aSimulationPtr) |
A class that maintains a unique identifier for an object.
It is sometimes beneficial for simulation objects to have the concept of a unique identifier that distinguishes it from all other objects. This provides such a capability. Unique identifiers are NEVER reused within a given simulation instance.
A unique identifier is an unsigned integer so it is very efficient key for a map or a hash_map.
To use this capability, a class must do two things:
Unique identifiers are valid ONLY within the context of a simulation. Objects that are not part of a simulation will return a value of 0.
|
inline |
Construtor initializes the unique identifier to 0.
Referenced by operator=(), WsfOrbitalEvent::WsfOrbitalEvent(), WsfOrbitalEvent::WsfOrbitalEvent(), WsfPlatform::WsfPlatform(), WsfPlatform::WsfPlatform(), and WsfUniqueId().
|
inline |
Copy constructor initializes the unique identifier to 0.
References WsfUniqueId().
|
protected |
Initialize the unique ID with the next unique ID from the simulation. This must be called by the Initialize method in the inheriting class.
| aSimulationPtr | The simulation in which this object exists. |
References WsfSimulation::AssignUniqueId().
Referenced by WsfPlatform::AssignToSimulation(), wsf::comm::Layer::Initialize(), WsfEM_XmtrRcvr::Initialize(), WsfOrbitalEvent::Initialize(), WsfOrbitalMissionSequence::Initialize(), WsfPlatformPart::Initialize(), wsf::comm::Layer::SetID(), and WsfChaffCloud::WsfChaffCloud().
|
inline |
Get the unique identifier assigned to this object.
Referenced by WsfEmitterTypeReporting::AddEmitterReportState(), WsfTargetTypeReporting::AddTargetReportState(), WsfPassiveSensor::PassiveMode::AttemptToDetect(), WsfRIPRProcessor::CommanderPlatform(), WsfRIPRProcessor::CommanderProcessor(), WsfFalseTarget::DropTracks(), WsfPlatform::GetArticulatedPart(), WsfEM_XmtrRcvr::Initialize(), WsfFalseTarget::Initialize(), WsfLOS_Manager::IsTargetVisible(), WsfLOS_Manager::IsTargetVisible(), WsfLOS_Manager::IsTargetVisible(), WsfLOS_Manager::IsTargetVisibleNow(), WsfLOS_Manager::IsTargetVisibleNow(), WsfLOS_Manager::IsTargetVisibleNow(), WsfPlatformPart::JoinGroup(), WsfPlatformPart::LeaveGroup(), WsfLOS_Manager::PartMoveCheck(), WsfLOS_Manager::PartMoved(), WsfLOS_Manager::PlatformDeleted(), WsfLOS_Manager::PlatformMoveCheck(), WsfLOS_Manager::PlatformMoved(), wsf::event::utils::PrintOrbitalManeuverData(), wsf::event::utilsCSV::PrintOrbitalManeuverData(), WsfFalseTarget::RemoveJammer(), WsfEW_SLB_Effect::RemoveJammerXmtr(), WsfEW_SLC_Effect::RemoveJammerXmtr(), WsfMilDisInterface::RemoveXmtrs(), WsfFalseTarget::Rescan(), WsfEventPipeInterface::SendModeActive(), WsfMilEventPipe::SendModeActive(), WsfEventPipeInterface::SendPartStatus(), WsfRF_Jammer::SetEA_DeltaGainTechnique(), WsfRF_Jammer::StartJamming(), WsfRF_Jammer::StopJamming(), WsfRIPRProcessor::SubordinatePlatforms(), WsfRIPRProcessor::SubordinateProcessors(), WsfFalseTarget::Update(), WsfEW_Effect::UpdateCurrentIds(), WsfEW_SimpleFT_Effect::UpdateEffects(), WsfEW_SensorComponent::EW_Mode::UpdateFalseTargetInteractors(), WsfMilDisPlatform::UpdateJammerSystem(), WsfRF_Jammer::UpdateJamming(), WsfEmitterTypeReporting::UpdateReportedEmitterType(), WsfDisEmission::UpdateSensor(), WsfMilDisInterface::UpdateWeapon(), WsfMilDisInterface::UpdateXmtrFromBeam(), UT_DEFINE_SCRIPT_METHOD(), WsfMilEventPipe::WeaponTurnedOff(), and WsfMilEventPipe::WeaponTurnedOn().
|
inline |
The assignment operator does nothing as it must preserve the unique identification of the target.
References WsfUniqueId().
|
inline |
For XIO (de)serialization.