MAK RTIspy API Documentation for HLA 1.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 #include <rtiApiTypes.h>
17 
18 #if defined(DtIFSPEC13)
19 
20 #include <vector>
21 
22 class DT_DLL_LRC DtFederateHandleSet : public RTI::FederateHandleSet
23 {
24 public:
26  DtFederateHandleSet(RTI::ULong count = 1, bool allowSetToGrow = true);
27 
29  virtual ~DtFederateHandleSet();
30 
31  virtual RTI::ULong size() const;
32 
33  virtual RTI::FederateHandle getHandle(RTI::ULong i) const
34  throw (RTI::ArrayIndexOutOfBounds);
35 
36  virtual void add(RTI::FederateHandle h)
37  throw (RTI::ValueCountExceeded);
38 
39  virtual void remove(RTI::FederateHandle h)
40  throw (RTI::ArrayIndexOutOfBounds);
41 
42  virtual void empty();
43 
44  virtual RTI::Boolean isMember(RTI::FederateHandle h) const;
45 
46 protected:
47 
48  RTI::ULong myMaxSize;
49 
50  std::vector< RTI::FederateHandle > myVals;
51 
52  bool myAllowSetToGrow;
53 };
54 
55 
56 #else
57 
58 #include <RTI/RTI1516.h>
59 #include <internalTypes.h>
60 
62 {
63 public:
65 #if defined(DtIFSPEC1516)
66  DtFederateHandleSet(unsigned long count=1);
67  DtFederateHandleSet(RTI_API::FederateHandleSet const& handleSet);
68 #else
69  DtFederateHandleSet(DtFederationHandle fedexHandle = 0, unsigned long count = 1);
70  DtFederateHandleSet(DtFederationHandle fedexHandle, RTI_API::FederateHandleSet const& handleSet);
71 #endif
72 
74  virtual ~DtFederateHandleSet();
75 
76  virtual unsigned long size() const;
77 
78  virtual RTI_API::FederateHandleSet::const_iterator getConstIterator(unsigned long i) const;
79  virtual RTI_API::FederateHandleSet::iterator getIterator(unsigned long i);
80 
81  virtual DtFederateHandle getHandle(unsigned long i) const;
82 
83  virtual void add(DtFederateHandle h);
84 
85  virtual void remove(DtFederateHandle h);
86 
87  virtual void empty();
88 
89  virtual bool isMember(DtFederateHandle h) const;
90 
91  virtual RTI_API::FederateHandleSet const& getImplementation() const;
92 
93 protected:
94  RTI_API::FederateHandleSet mySet;
95 #if !defined(DtIFSPEC1516)
97 #endif
98 };
99 
100 #endif
101 #endif
102 
DtHandle DtFederationHandle
Definition: internalTypes.h:44
Definition: fedHandleSet.h:61
DtHandle DtFederateHandle
Definition: internalTypes.h:46
unsigned long ULong
Definition: baseTypes13.h:20
RTI_API::FederateHandleSet mySet
Definition: fedHandleSet.h:94
DtFederationHandle myShiftedFedexHandle
Definition: fedHandleSet.h:96
Boolean
Definition: baseTypes13.h:26
ULong FederateHandle
Definition: RTItypes13.h:120
#define DT_DLL_LRC
Definition: rtiMsConfig.h:155
The declaration of internal types.

Document ID: Generated on Wed Jul 8 16:20:32 EDT 2026 from SVN revision 291616
Copyright © 2005-2025 MAK Technologies Inc. All Rights Reserved (www.mak.com)