MAK RTIspy API Documentation for HLA Evolved
fedHandleSet.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 1998 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: fedHandleSet.h,v $ $Revision: 1.17 $ $State: Exp $
7 *********************************************************************/
8 
11 
12 #ifndef DtFederateHandleSet_H_
13 #define DtFederateHandleSet_H_
14 
15 #include "rtiMsConfig.h"
16 
17 #ifdef DtIFSPEC1516
18 #include "RTI/RTI1516.h"
19 #include "internalTypes.h"
20 
22 {
23 public:
25  DtFederateHandleSet(unsigned long count=1);
27 
29  virtual ~DtFederateHandleSet();
30 
31  virtual unsigned long size() const;
32 
33  virtual rti1516::FederateHandleSet::const_iterator
34  getConstIterator(unsigned long i) const;
35  virtual rti1516::FederateHandleSet::iterator
36  getIterator(unsigned long i);
37 
38  virtual DtFederateHandle getHandle(unsigned long i) const;
39 
40  virtual void add(DtFederateHandle h);
41 
42  virtual void remove(DtFederateHandle h);
43 
44  virtual void empty();
45 
46  virtual bool isMember(DtFederateHandle h) const;
47 
48  virtual rti1516::FederateHandleSet const& getImplementation() const;
49 
50 protected:
52 };
53 
54 #elif defined(DtIFSPEC1516E)
55 #include "RTI/RTI1516.h"
56 #include "internalTypes.h"
57 
59 {
60 public:
62  DtFederateHandleSet(unsigned long count=1);
64 
66  virtual ~DtFederateHandleSet();
67 
68  virtual unsigned long size() const;
69 
70  virtual rti1516e::FederateHandleSet::const_iterator
71  getConstIterator(unsigned long i) const;
72  virtual rti1516e::FederateHandleSet::iterator
73  getIterator(unsigned long i);
74 
75  virtual DtFederateHandle getHandle(unsigned long i) const;
76 
77  virtual void add(DtFederateHandle h);
78 
79  virtual void remove(DtFederateHandle h);
80 
81  virtual void empty();
82 
83  virtual bool isMember(DtFederateHandle h) const;
84 
85  virtual rti1516e::FederateHandleSet const& getImplementation() const;
86 
87 protected:
89 };
90 
91 #else
92 
93 #ifdef DtIFSPEC13DLC
94 #include "RTI13.h"
95 #define RTI rti13
96 #else
97 #include "RTI.hh"
98 #endif
99 #include <vector>
100 
102 {
103 public:
105  DtFederateHandleSet(RTI::ULong count = 1, bool allowSetToGrow=true);
106 
108  virtual ~DtFederateHandleSet();
109 
110  virtual RTI::ULong size() const;
111 
112  virtual RTI::FederateHandle getHandle(RTI::ULong i) const
113  throw (
114  RTI::ArrayIndexOutOfBounds);
115 
116  virtual void add(RTI::FederateHandle h)
117  throw (
118  RTI::ValueCountExceeded);
119 
120  virtual void remove(RTI::FederateHandle h)
121  throw (
122  RTI::ArrayIndexOutOfBounds);
123 
124  virtual void empty();
125 
126  virtual RTI::Boolean isMember(RTI::FederateHandle h) const;
127 
128 protected:
129 
131 
132  std::vector< RTI::FederateHandle > myVals;
133 
135 };
136 
137 #endif
138 #endif
139 

Document ID: Generated on Tue May 7 16:26:47 EDT 2013 from SVN revision 126903
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)