NX Open C++ 参考指南 2406 v1.1
载入中...
搜索中...
未找到
Features_SelectionProgramCollection.hxx
1//--------------------------------------------------------------------------
2// Copyright 2024 Siemens
3//--------------------------------------------------------------------------
4// C++接口JA API的头文件
5//--------------------------------------------------------------------------
6//
7// 源文件:
8// Features_SelectionProgramCollection.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 class BasePart;
40 namespace Features
41 {
43 }
44 namespace Features
45 {
47 }
48 namespace Features
49 {
51 }
52 namespace Features
53 {
55 }
56 namespace Features
57 {
59 }
60 namespace Features
61 {
63 }
64 namespace Features
65 {
67 }
68 namespace Features
69 {
71 }
72 namespace Features
73 {
75 }
76 namespace Features
77 {
79 }
80 namespace Features
81 {
83 }
84 namespace Features
85 {
87 }
88 namespace Features
89 {
91 }
92 class TaggedObject;
93 namespace Features
94 {
95 class SelectionProgramCollectionImpl;
99 class NXOPENCPP_FEATURESEXPORT SelectionProgramCollection : public NXOpen::TaggedObjectCollection
100 {
101 private: SelectionProgramCollectionImpl * m_selectionprogramcollection_impl;
102 private: NXOpen::BasePart* m_owner;
104 public: explicit SelectionProgramCollection(NXOpen::BasePart *owner);
106 public:
108 tag_t Tag() const;
111 //lint -sem(NXOpen::Features::SelectionProgramCollection::iterator::copy,initializer)
112 class iterator : public std::iterator<std::forward_iterator_tag, NXOpen::DisplayableObject *>
113 {
114 public:
116 iterator() : m_context(nullptr), m_current(NULL_TAG)
117 {
118 // coverity[uninit_member]
119 } //lint !e1401 m_state is not initialized
120
121 explicit iterator(NXOpen::Features::SelectionProgramCollection *context) : m_context(context), m_current(NULL_TAG)
122 {
123 // coverity[uninit_member]
124 }//lint !e1401 m_state is not initialized
126
127 iterator(const iterator &other): m_context(nullptr), m_current(NULL_TAG)
128 {
129 copy(other);
130 }
131
132 iterator &operator =(const iterator &other)
133 {
134 if (&other != this)
135 copy(other);
136 return *this;
137 }
138
139 bool operator ==(const iterator &other) const
140 {
141 return m_current == other.m_current && m_context == other.m_context;
142 }
143
144 bool operator !=(const iterator &other) const
145 {
146 return !operator == (other);
147 }
148
149 NXOPENCPP_FEATURESEXPORT value_type operator * () const;
151 iterator & operator ++()
152 {
153 next();
154 return *this;
155 }
156
157 iterator operator ++(int)
158 {
159 iterator tmp(*this);
160 ++*this;
161 return tmp;
162 }
163 private:
164 void copy(const iterator &other)
165 {
166 m_context = other.m_context;
167 m_current = other.m_current;
168 for (int i = 0; i < sizeof(m_state)/sizeof(m_state[0]); i++)
169 m_state[i] = other.m_state[i];
170 }
171 NXOPENCPP_FEATURESEXPORT void next();
173 tag_t m_current;
174 unsigned int m_state[8];
175 };
176
180 {
181 return iterator(this);
182 }
183
187 (
188 NXOpen::TaggedObject * selectionObject
189 );
194 (
195 );
200 (
201 );
206 (
207 );
212 (
213 );
218 (
219 );
224 (
225 );
230 (
231 );
236 (
237 );
242 (
243 );
248 (
249 );
254 (
255 );
260 (
261 );
262 }; //lint !e1712 default constructor not defined for class
263 }
264}
265#ifdef _MSC_VER
266#pragma warning(pop)
267#endif
268#ifdef __GNUC__
269#ifndef NX_NO_GCC_DEPRECATION_WARNINGS
270#pragma GCC diagnostic warning "-Wdeprecated-declarations"
271#endif
272#endif
273#undef EXPORTLIBRARY