NX Open C++ 参考指南 2406 v1.1
载入中...
搜索中...
未找到
Features_ToolingFeatureCollection.hxx
1//--------------------------------------------------------------------------
2// 版权所有 2024 Siemens
3//--------------------------------------------------------------------------
4// JA API 的 C++ 接口头文件
5//--------------------------------------------------------------------------
6//
7// 源文件:
8// Features_ToolingFeatureCollection.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 OffsetFacetBody;
49 }
50 namespace Features
51 {
53 }
54 namespace Features
55 {
56 class ToolingBox;
57 }
58 namespace Features
59 {
61 }
62 namespace Features
63 {
64 class ToolingFeatureCollectionImpl;
68 class NXOPENCPP_FEATURESEXPORT ToolingFeatureCollection : public NXOpen::TaggedObjectCollection
69 {
70 private: ToolingFeatureCollectionImpl * m_toolingfeaturecollection_impl;
75 public:
77 tag_t Tag() const;
80 //lint -sem(NXOpen::Features::ToolingFeatureCollection::iterator::copy,initializer)
81 class iterator : public std::iterator<std::forward_iterator_tag, NXOpen::Features::Feature *>
82 {
83 public:
85 iterator() : m_context(nullptr), m_current(NULL_TAG)
86 {
87 // coverity[uninit_member]
88 } //lint !e1401 m_state 未初始化
89
90 explicit iterator(NXOpen::Features::ToolingFeatureCollection *context) : m_context(context), m_current(NULL_TAG)
91 {
92 // coverity[uninit_member]
93 }//lint !e1401 m_state 未初始化
95
96 iterator(const iterator &other): m_context(nullptr), m_current(NULL_TAG)
97 {
98 copy(other);
99 }
100
101 iterator &operator =(const iterator &other)
102 {
103 if (&other != this)
104 copy(other);
105 return *this;
106 }
107
108 bool operator ==(const iterator &other) const
109 {
110 return m_current == other.m_current && m_context == other.m_context;
111 }
112
113 bool operator !=(const iterator &other) const
114 {
115 return !operator == (other);
116 }
117
118 NXOPENCPP_FEATURESEXPORT value_type operator * () const;
120 iterator & operator ++()
121 {
122 next();
123 return *this;
124 }
125
126 iterator operator ++(int)
127 {
128 iterator tmp(*this);
129 ++*this;
130 return tmp;
131 }
132 private:
133 void copy(const iterator &other)
134 {
135 m_context = other.m_context;
136 m_current = other.m_current;
137 for (int i = 0; i < sizeof(m_state)/sizeof(m_state[0]); i++)
138 m_state[i] = other.m_state[i];
139 }
140 NXOPENCPP_FEATURESEXPORT void next();
142 tag_t m_current;
143 unsigned int m_state[8];
144 };
145
149 {
150 return iterator(this);
151 }
152
156 (
157 NXOpen::Features::ToolingBox * toolingBox
158 );
163 (
164 NXOpen::Features::OffsetFacetBody * offsetfacetBody
166 );
167 }; //lint !e1712 类未定义默认构造函数
168 }
169}
170#ifdef _MSC_VER
171#pragma warning(pop)
172#endif
173#ifdef __GNUC__
174#ifndef NX_NO_GCC_DEPRECATION_WARNINGS
175#pragma GCC diagnostic warning "-Wdeprecated-declarations"
176#endif
177#endif
178#undef EXPORTLIBRARY