|
WSF
|
A component list that stores only components of a specified type. More...
#include <WsfComponentList.hpp>


Classes | |
| class | Iterator |
Public Types | |
| using | ComponentType = COMPONENT_TYPE |
| using | ParentType = typename COMPONENT_TYPE::ParentType |
| Public Types inherited from WsfComponentList | |
| using | NameAndComponent = std::pair<WsfStringId, WsfComponent*> |
| using | ComponentList = std::vector<NameAndComponent> |
Iterator support. | |
The platform list provides a limited capability to iterate sequential over the list. | |
| Iterator | Begin () const |
| Return an iterator for the beginning of the component list. | |
| Iterator | End () const |
| Return an iterator for the end of the component list. | |
| WsfComponentListT () | |
| WsfComponentListT (const WsfComponentListT &aSrc) | |
| WsfComponentListT (WsfComponentListT &&)=default | |
| ~WsfComponentListT () override | |
| WsfComponentListT & | operator= (const WsfComponentListT &aRhs) |
| WsfComponentListT & | operator= (WsfComponentListT &&aRhs) |
| ParentType * | GetParentOfComponents () const |
| void | SetParentOfComponents (ParentType *aComponentParentPtr) |
| bool | AddComponent (ComponentType *aComponentPtr) |
| ComponentType * | FindComponent (WsfStringId aName) const |
| ComponentType * | FindComponent (WsfStringId aName, int aRole) const |
| ComponentType * | FindComponentByRole (int aRole) const |
| ComponentType * | GetComponentEntryByRole (int aRole, unsigned int aEntry) const |
| std::vector< ComponentType * > | GetComponentsByInitializationOrder () const |
| Return a vector of components in the order in which they should be initialized. | |
| bool | RemoveComponent (ComponentType *aComponentPtr) |
| bool | ProcessComponentInput (UtInput &aInput) |
Additional Inherited Members | |
| Public Member Functions inherited from WsfComponentList | |
| WsfComponentList () | |
| WsfComponentList (const WsfComponentList &aSrc) | |
| WsfComponentList (WsfComponentList &&)=default | |
| virtual | ~WsfComponentList () |
| WsfComponentList & | operator= (const WsfComponentList &aRhs) |
| WsfComponentList & | operator= (WsfComponentList &&) |
| bool | HasComponents () const |
| Returns true if the component list has at least one component. | |
| void | DeleteAllComponents () |
| Delete all of the components maintained by the list. | |
| bool | DeleteComponent (WsfStringId aName, int aRole) |
| unsigned int | GetComponentCount (int aRole) const |
| template<class T> | |
| bool | DeleteComponent (WsfStringId aName) |
| template<class T> | |
| bool | DeleteComponent () |
| template<class T> | |
| T * | GetComponent () const |
| template<class T> | |
| T * | GetComponent (WsfStringId aName) const |
| template<class T> | |
| unsigned int | GetComponentCount () const |
| template<class T> | |
| T * | GetComponentEntry (unsigned int aEntry) const |
| template<class T> | |
| bool | FindByRole (T *&aPtr) const |
| template<typename T> | |
| RoleRange< T > | GetComponentRange () |
| virtual void | ComponentAdded (WsfComponent *aComponentPtr) |
| virtual void | ComponentDeleted (WsfComponent *aComponentPtr) |
| bool | AddComponentP (WsfComponent *aComponentPtr, bool aDoNotify) |
| void | CopyAllP (const WsfComponentList &aSrc, bool aDoNotify) |
| Base class implementation of copying a component list. | |
| void | DeleteAllP (bool aDoNotify) |
| Base class implementation of deleting all components in the list. | |
| bool | DeleteComponentP (WsfStringId aName, int aRole, bool aDoNotify) |
| WsfComponent * | FindComponentP (WsfStringId aName, int aRole) const |
| WsfComponent * | FindComponentP (WsfStringId aName) const |
| WsfComponent * | FindComponentByRoleP (int aRole) const |
| WsfComponent * | GetComponentEntryByRoleP (int aRole, unsigned int aEntry) const |
| bool | RemoveComponentP (WsfStringId aName, int aRole, bool aDelete, bool aDoNotify) |
| ComponentList | mComponentsByName |
A component list that stores only components of a specified type.
| using WsfComponentListT< COMPONENT_TYPE >::ComponentType = COMPONENT_TYPE |
| using WsfComponentListT< COMPONENT_TYPE >::ParentType = typename COMPONENT_TYPE::ParentType |
|
inline |
|
inline |
|
default |
|
inlineoverride |
|
inline |
Referenced by WsfExtEmission::AddSensor(), WsfMilExtInterface::AddWeapon(), WsfChaffWeapon::AddWeaponToSimulation(), WsfPerceptionProcessor::CreatePerceptionProcessor(), WsfSA_Processor::CreateSA_Processor(), wsf::comm::ComponentHW::FindOrCreate(), wsf::comm::ComponentHW_JTIDS::FindOrCreate(), wsf::comm::ComponentHW_LASER::FindOrCreate(), wsf::comm::ComponentHW_Subsurface::FindOrCreate(), wsf::comm::ProtocolIGMP::FindOrCreate(), wsf::comm::router::ProtocolAdHoc::FindOrCreate(), wsf::comm::router::ProtocolLegacy::FindOrCreate(), wsf::comm::router::ProtocolMulticast::FindOrCreate(), wsf::comm::router::ProtocolOSPF::FindOrCreate(), wsf::xio::CommComponent::FindOrCreate(), WsfCTD_SensorComponent::FindOrCreate(), WsfEW_CommComponent::FindOrCreate(), WsfEW_RcvrComponent::FindOrCreate(), WsfEW_SensorComponent::FindOrCreate(), WsfEW_XmtrComponent::FindOrCreate(), WsfExclusionSensorComponent::FindOrCreate(), WsfLaunchHandoffData::FindOrCreate(), WsfMoonLOS_SensorComponent::FindOrCreate(), WsfSolarElevationAtTargetSensorComponent::FindOrCreate(), WsfSolarIlluminationComponent::FindOrCreate(), WsfTRIMSIM_SensorComponent::FindOrCreate(), WsfWeaponPlatformExtension::FindOrCreate(), WsfWeaponTaskManager::FindOrCreate(), WsfUplinkProcessor::GetUplinkProcessor(), WsfExplicitWeapon::InitializeCommandChains(), WsfDisWeaponEvents::InitiateWeaponTransfer(), wsf::UCI_AMTI_Component::InjectConditionally(), wsf::UCI_ESM_Component::InjectConditionally(), wsf::UCI_IRST_Component::InjectConditionally(), WsfObjectTypeListBase::LoadComponentP(), WsfCallbackTypes::LoadInstance(), WsfZoneTypes::LoadInstance(), wsf::comm::ProtocolTypes::LoadProtocolComponent(), wsf::comm::router::ProtocolTypes::LoadProtocolComponent(), WsfLaserWeapon::PreInitialize(), and WsfWeaponServer::ProcessCommand().
|
inline |
Return an iterator for the beginning of the component list.
Referenced by begin(), begin(), WsfXIO_PlatformInfoService::FillPartState(), WsfXIO_PlatformInfoService::FindObjectType(), WsfXIO_TaskService::HandleCommand(), WsfXIO_ObjectInfoLoad::Load_EM_Rcvr(), WsfXIO_ObjectInfoLoad::Load_EM_Xmtr(), WsfXIO_ObjectInfoLoad::Load_Platform(), wsf::event::utils::PrintEM_Interaction(), and wsf::event::utilsCSV::PrintEM_Interaction().
|
inline |
Return an iterator for the end of the component list.
Referenced by end(), end(), WsfXIO_PlatformInfoService::FillPartState(), WsfXIO_PlatformInfoService::FindObjectType(), WsfXIO_TaskService::HandleCommand(), WsfXIO_ObjectInfoLoad::Load_EM_Rcvr(), WsfXIO_ObjectInfoLoad::Load_EM_Xmtr(), WsfXIO_ObjectInfoLoad::Load_Platform(), wsf::event::utils::PrintEM_Interaction(), wsf::event::utilsCSV::PrintEM_Interaction(), and Fires::Observer::WeaponTerminated().
|
inline |
|
inline |
|
inline |
Referenced by WsfBeamDirector::WsfBeamDirectorMode::AttemptToDetect(), WsfSensorTracker::DropTrackP(), wsf::cyber::Constraint::Find(), wsf::cyber::Protect::Find(), WsfNavigationErrors::Find(), WsfSensorTracker::InitializeTrackP(), WsfHighEnergyLaser::UpdateEngagementGeometry(), and WsfSensorTracker::UpdateTrackP().
|
inline |
Referenced by wsf::UCI_AMTI_Component::Initialize2(), wsf::UCI_ESM_Component::Initialize2(), wsf::UCI_IRST_Component::Initialize2(), wsf::UCI_AMTI_Component::InjectConditionally(), wsf::UCI_ESM_Component::InjectConditionally(), wsf::UCI_IRST_Component::InjectConditionally(), wsf::UCI_SensorComponent::PreInitialize(), and wsf::comm::Comm::SetMulticastLevel().
|
inline |
Return a vector of components in the order in which they should be initialized.
|
inline |
Retrieve the pointer to the parent/owner of the components owned by this list.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Set the pointer to the parent/owner of the components owned by this list.
The only explicit call should be in the body of the copy constructor of the object that owns the list. It CANNOT be done in the initializer list of the copy constructor because the owning object is in an indeterminate state. The methods SetComponentParent and ComponentListUpdated are not guaranteed to be safe, so they must be deferred to the body of the copy constructor.
Referenced by WsfComponentListT< WsfComponentT< Comm > >::operator=(), and WsfComponentListT< WsfComponentT< Comm > >::operator=().