NX Open C++ 参考指南 2406 v1.1
载入中...
搜索中...
未找到
Features_SynchronousCurveCollection.hxx
1//--------------------------------------------------------------------------
2// 版权所有 2024 Siemens
3//--------------------------------------------------------------------------
4// JA API的C++接口头文件
5//--------------------------------------------------------------------------
6//
7// 源文件:
8// Features_SynchronousCurveCollection.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/TaggedObjectCollection.hxx>
23#include <NXOpen/TaggedObject.hxx>
24#include <NXOpen/libnxopencpp_features_exports.hxx>
25#ifdef _MSC_VER
26#pragma warning(push)
27#pragma warning(disable:4996)
28#endif
29#ifdef __GNUC__
30#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
31#endif
32namespace NXOpen
33{
34 namespace Features
35 {
37 }
38 namespace Features
39 {
41 }
42 namespace Features
43 {
44 class Feature;
45 }
46 namespace Features
47 {
48 class DeleteCurve;
49 }
50 namespace Features
51 {
53 }
54 namespace Features
55 {
56 class LocalScaleCurve;
57 }
58 namespace Features
59 {
61 }
62 namespace Features
63 {
64 class MoveCurve;
65 }
66 namespace Features
67 {
68 class MoveCurveBuilder;
69 }
70 namespace Features
71 {
72 class OffsetMoveCurve;
73 }
74 namespace Features
75 {
77 }
78 namespace Features
79 {
81 }
82 namespace Features
83 {
85 }
86 namespace Features
87 {
88 class ResizeCurve;
89 }
90 namespace Features
91 {
93 }
94 namespace Features
95 {
96 class SynchronousCurveCollectionImpl;
100 class NXOPENCPP_FEATURESEXPORT SynchronousCurveCollection : public NXOpen::TaggedObjectCollection
101 {
102 private: SynchronousCurveCollectionImpl * m_synchronouscurvecollection_impl;
103 private: NXOpen::Features::FeatureCollection* m_owner;
107 public:
109 tag_t Tag() const;
112 //lint -sem(NXOpen::Features::SynchronousCurveCollection::iterator::copy,initializer)
113 class iterator : public std::iterator<std::forward_iterator_tag, NXOpen::Features::Feature *>
114 {
115 public:
117 iterator() : m_context(nullptr), m_current(NULL_TAG)
118 {
119 // coverity[uninit_member]
120 } //lint !e1401 m_state is not initialized
121
122 explicit iterator(NXOpen::Features::SynchronousCurveCollection *context) : m_context(context), m_current(NULL_TAG)
123 {
124 // coverity[uninit_member]
125 }//lint !e1401 m_state is not initialized
127
128 iterator(const iterator &other): m_context(nullptr), m_current(NULL_TAG)
129 {
130 copy(other);
131 }
132
133 iterator &operator =(const iterator &other)
134 {
135 if (&other != this)
136 copy(other);
137 return *this;
138 }
139
140 bool operator ==(const iterator &other) const
141 {
142 return m_current == other.m_current && m_context == other.m_context;
143 }
144
145 bool operator !=(const iterator &other) const
146 {
147 return !operator == (other);
148 }
149
150 NXOPENCPP_FEATURESEXPORT value_type operator * () const;
152 iterator & operator ++()
153 {
154 next();
155 return *this;
156 }
157
158 iterator operator ++(int)
159 {
160 iterator tmp(*this);
161 ++*this;
162 return tmp;
163 }
164 private:
165 void copy(const iterator &other)
166 {
167 m_context = other.m_context;
168 m_current = other.m_current;
169 for (int i = 0; i < sizeof(m_state)/sizeof(m_state[0]); i++)
170 m_state[i] = other.m_state[i];
171 }
172 NXOPENCPP_FEATURESEXPORT void next();
174 tag_t m_current;
175 unsigned int m_state[8];
176 };
177
181 {
182 return iterator(this);
183 }
184
188 (
189 NXOpen::Features::MoveCurve * moveCurve
190 );
195 (
196 NXOpen::Features::DeleteCurve * deleteCurve
197 );
202 (
203 NXOpen::Features::OffsetMoveCurve * offsetMoveCurve
204 );
209 (
211 );
216 (
217 NXOpen::Features::ResizeCurve * resizeCurve
218 );
223 (
224 NXOpen::Features::ResizeChamferCurve * resizeChamferCurve
225 );
226 }; //lint !e1712 类未定义默认构造函数
227 }
228}
229#ifdef _MSC_VER
230#pragma warning(pop)
231#endif
232#ifdef __GNUC__
233#ifndef NX_NO_GCC_DEPRECATION_WARNINGS
234#pragma GCC diagnostic warning "-Wdeprecated-declarations"
235#endif
236#endif
237#undef EXPORTLIBRARY