VR-Forces 5.0.3 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
simComponentList.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2014 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 /*******************************************************************************
6 ** $RCSfile: cmpntList.h,v $ $Revision: 1.13 $ $State: Exp $
7 *******************************************************************************/
8 
11 
17 
18 
19 #ifndef DtSimComponentList_H_
20 #define DtSimComponentList_H_
21 
22 #include <vlutil/vlString.h>
23 #include <vlutil/vlList.h>
24 #include <map>
25 #include <list>
26 #include <vector>
28 
29 class DtSimComponent;
31 
40 {
41 public:
43  DtSimComponentList(const DtString & name,
44  DtReaderWriterRegistry * const parentRegistry = 0);
45 
47  virtual ~DtSimComponentList();
48 
49  typedef std::vector<DtSimComponent*> ComponentListType;
50 
51  typedef ComponentListType::iterator iterator;
52  typedef ComponentListType::const_iterator const_iterator;
53 
57  virtual void tick(bool hostEntityDestroyed);
58 
59  virtual DtSimComponent * lookupComponent(const DtString & name);
60  virtual std::list<DtSimComponent*> lookupComponentsByType(const DtString & typeString);
61 
62  virtual void addComponent(DtSimComponent * component);
63  virtual void removeComponent(DtSimComponent * component);
64 
65  virtual iterator begin();
66  virtual iterator end();
67  virtual size_t count() const;
68 
69 protected:
72 
75  virtual void emptyList();
76 
77 protected:
78 
79  typedef std::map<DtString, DtSimComponent*> DtSimComponentMap;
82 };
83 
84 #endif
85 
ComponentListType::const_iterator const_iterator
Definition: simComponentList.h:52
Definition: readerWriterRegistry.h:39
std::map< DtString, DtSimComponent * > DtSimComponentMap
Definition: simComponentList.h:79
Class Description: DtSimComponentList.
Definition: simComponentList.h:39
DtSimComponentMap myIndex
Definition: simComponentList.h:81
#define DT_DLL_vrfobjcore
This file is used to determine how to build.
Definition: vrfobjcoreDefines.h:24
std::vector< DtSimComponent * > ComponentListType
Definition: simComponentList.h:49
ComponentListType myComponentList
Definition: simComponentList.h:80
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:70
ComponentListType::iterator iterator
Definition: simComponentList.h:51

Document ID: Generated on Thu Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)