NX Open C++ 参考指南 2406 v1.1
载入中...
搜索中...
未找到
Mechatronics_ExternalConnectionCollection.hxx
1//--------------------------------------------------------------------------
2// Copyright 2024 Siemens
3//--------------------------------------------------------------------------
4// JA API的C++接口头文件
5//--------------------------------------------------------------------------
6//
7// 源文件:
8// Mechatronics_ExternalConnectionCollection.ja
9//
10// 生成工具:
11// apiwrap
12//
13// 警告:
14// 本文件由工具自动生成 - 请勿手动编辑
15//
16#pragma once
17#include <NXOpen/NXDeprecation.hxx>
18#include <iterator>
19#include <vector>
20#include <NXOpen/NXString.hxx>
21#include <NXOpen/Callback.hxx>
22#include <NXOpen/Mechatronics_ExternalConnection.hxx>
23#include <NXOpen/Mechatronics_ExternalConnectionBuilder.hxx>
24#include <NXOpen/Mechatronics_ExternalConnectionElement.hxx>
25#include <NXOpen/TaggedObjectCollection.hxx>
26#include <NXOpen/TaggedObject.hxx>
27#include <NXOpen/libnxopencpp_mechatronics_exports.hxx>
28#ifdef _MSC_VER
29#pragma warning(push)
30#pragma warning(disable:4996)
31#endif
32#ifdef __GNUC__
33#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
34#endif
35namespace NXOpen
36{
37 namespace Mechatronics
38 {
40 }
41 namespace Mechatronics
42 {
43 class PhysicsManager;
44 }
45 namespace Mechatronics
46 {
47 class ExternalConnection;
48 }
49 namespace Mechatronics
50 {
51 class ExternalConnectionBuilder;
52 }
53 namespace Mechatronics
54 {
55 class ExternalConnectionElement;
56 }
57 namespace Mechatronics
58 {
59 class ExternalConnectionElementBuilder;
60 }
61 namespace Mechatronics
62 {
63 class ExternalConnectionCollectionImpl;
67 class NXOPENCPP_MECHATRONICSEXPORT ExternalConnectionCollection : public NXOpen::TaggedObjectCollection
68 {
69 private: ExternalConnectionCollectionImpl * m_externalconnectioncollection_impl;
74 public:
76 tag_t Tag() const;
79 //lint -sem(NXOpen::Mechatronics::ExternalConnectionCollection::iterator::copy,initializer)
80 class iterator : public std::iterator<std::forward_iterator_tag, NXOpen::Mechatronics::ExternalConnection *>
81 {
82 public:
84 iterator() : m_context(nullptr), m_current(NULL_TAG)
85 {
86 // coverity[uninit_member]
87 } //lint !e1401 m_state 未初始化
88
89 explicit iterator(NXOpen::Mechatronics::ExternalConnectionCollection *context) : m_context(context), m_current(NULL_TAG)
90 {
91 // coverity[uninit_member]
92 }//lint !e1401 m_state 未初始化
94
95 iterator(const iterator &other): m_context(nullptr), m_current(NULL_TAG)
96 {
97 copy(other);
98 }
99
100 iterator &operator =(const iterator &other)
101 {
102 if (&other != this)
103 copy(other);
104 return *this;
105 }
106
107 bool operator ==(const iterator &other) const
108 {
109 return m_current == other.m_current && m_context == other.m_context;
110 }
111
112 bool operator !=(const iterator &other) const
113 {
114 return !operator == (other);
115 }
116
117 NXOPENCPP_MECHATRONICSEXPORT value_type operator * () const;
119 iterator & operator ++()
120 {
121 next();
122 return *this;
123 }
124
125 iterator operator ++(int)
126 {
127 iterator tmp(*this);
128 ++*this;
129 return tmp;
130 }
131 private:
132 void copy(const iterator &other)
133 {
134 m_context = other.m_context;
135 m_current = other.m_current;
136 for (int i = 0; i < sizeof(m_state)/sizeof(m_state[0]); i++)
137 m_state[i] = other.m_state[i];
138 }
139 NXOPENCPP_MECHATRONICSEXPORT void next();
141 tag_t m_current;
142 unsigned int m_state[8];
143 };
144
148 {
149 return iterator(this);
150 }
151
155 public: NX_DEPRECATED("在 NX1899.0.0 中已废弃。此方法无替代方案,不再受支持。") NXOpen::Mechatronics::ExternalConnectionBuilder * CreateExternalConnectionBuilder
156 (
158 );
164 public: NX_DEPRECATED("在 NX1899.0.0 中已废弃。此方法无替代方案,不再受支持。") NXOpen::Mechatronics::ExternalConnection * FindObject
165 (
166 const NXString & name
167 );
174 (
175 const char * name
176 );
181 public: NX_DEPRECATED("在 NX1899.0.0 中已废弃。此方法无替代方案,不再受支持。") NXOpen::Mechatronics::ExternalConnectionElementBuilder * CreateExternalConnectionElementBuilder
182 (
184 );
185 }; //lint !e1712 类未定义默认构造函数
186 }
187}
188#ifdef _MSC_VER
189#pragma warning(pop)
190#endif
191#ifdef __GNUC__
192#ifndef NX_NO_GCC_DEPRECATION_WARNINGS
193#pragma GCC diagnostic warning "-Wdeprecated-declarations"
194#endif
195#endif
196#undef EXPORTLIBRARY