11 #include <vlutil/vlString.h>
12 #include <vlutil/vlList.h>
46 virtual void tick(
bool hostEntityDestroyed);
49 virtual std::list<DtSimComponent*> lookupComponentsByType(
const DtString & typeString);
52 template <
typename T_ComponentType>
55 std::list<DtSimComponent*> comps;
57 DtSimComponentMap::const_iterator itr = this->myIndex.begin();
58 DtSimComponentMap::const_iterator mapEnd = this->myIndex.end();
61 if(dynamic_cast<T_ComponentType*>(itr->second) !=
nullptr)
63 comps.push_back(itr->second);
74 virtual iterator begin();
75 virtual iterator end();
76 virtual size_t count()
const;
84 virtual void emptyList();
ComponentListType::const_iterator const_iterator
Definition: simComponentList.h:41
Definition: readerWriterRegistry.h:39
std::map< DtString, DtSimComponent * > DtSimComponentMap
Definition: simComponentList.h:88
Class Description: DtSimComponentList.
Definition: simComponentList.h:28
std::list< DtSimComponent * > lookupComponentsByDynamicCast() const
Returns a list of DtSimComponents that can cast to the particular component type. ...
Definition: simComponentList.h:53
DtSimComponentMap myIndex
Definition: simComponentList.h:90
#define DT_DLL_vrfobjcore
This file is used to determine how to build.
Definition: vrfobjcoreDefines.h:24
std::vector< DtSimComponent * > ComponentListType
Definition: simComponentList.h:38
ComponentListType myComponentList
Definition: simComponentList.h:89
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:89
ComponentListType::iterator iterator
Definition: simComponentList.h:40