NX Open C++ 参考指南 2406 v1.1
载入中...
搜索中...
未找到
Features_CoatingsCollection.hxx
1//--------------------------------------------------------------------------
2// Copyright 2024 Siemens
3//--------------------------------------------------------------------------
4// C++接口到JA API的头文件
5//--------------------------------------------------------------------------
6//
7// 源文件:
8// Features_CoatingsCollection.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/libcoatingsopencpp_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 Coatings
39 {
40 class CoatingManager;
41 }
42 namespace Features
43 {
44 class Feature;
45 }
46 namespace Features
47 {
48 namespace Coatings
49 {
50 class CoatingRegion;
51 }
52 }
53 namespace Features
54 {
55 namespace Coatings
56 {
57 class CoatingRegionBuilder;
58 }
59 }
60 namespace Features
61 {
62 namespace Coatings
63 {
64 class CoatingThickenBody;
65 }
66 }
67 namespace Features
68 {
69 namespace Coatings
70 {
71 class CoatingThickenBodyBuilder;
72 }
73 }
74 class Part;
75 namespace Features
76 {
77 class CoatingsCollectionImpl;
81 class COATINGSOPENCPPEXPORT CoatingsCollection : public NXOpen::TaggedObjectCollection
82 {
83 private: CoatingsCollectionImpl * m_coatingscollection_impl;
84 private: NXOpen::Coatings::CoatingManager* m_owner;
86 public: explicit CoatingsCollection(NXOpen::Coatings::CoatingManager *owner);
88 public:
90 tag_t Tag() const;
91 public: ~CoatingsCollection();
93 //lint -sem(NXOpen::Features::CoatingsCollection::iterator::copy,initializer)
94 class iterator : public std::iterator<std::forward_iterator_tag, NXOpen::Features::Feature *>
95 {
96 public:
98 iterator() : m_context(nullptr), m_current(NULL_TAG)
99 {
100 // coverity[uninit_member]
101 } //lint !e1401 m_state未初始化
102
103 explicit iterator(NXOpen::Features::CoatingsCollection *context) : m_context(context), m_current(NULL_TAG)
104 {
105 // coverity[uninit_member]
106 }//lint !e1401 m_state未初始化
108
109 iterator(const iterator &other): m_context(nullptr), m_current(NULL_TAG)
110 {
111 copy(other);
112 }
113
114 iterator &operator =(const iterator &other)
115 {
116 if (&other != this)
117 copy(other);
118 return *this;
119 }
120
121 bool operator ==(const iterator &other) const
122 {
123 return m_current == other.m_current && m_context == other.m_context;
124 }
125
126 bool operator !=(const iterator &other) const
127 {
128 return !operator == (other);
129 }
130
131 COATINGSOPENCPPEXPORT value_type operator * () const;
133 iterator & operator ++()
134 {
135 next();
136 return *this;
137 }
138
139 iterator operator ++(int)
140 {
141 iterator tmp(*this);
142 ++*this;
143 return tmp;
144 }
145 private:
146 void copy(const iterator &other)
147 {
148 m_context = other.m_context;
149 m_current = other.m_current;
150 for (int i = 0; i < sizeof(m_state)/sizeof(m_state[0]); i++)
151 m_state[i] = other.m_state[i];
152 }
153 COATINGSOPENCPPEXPORT void next();
155 tag_t m_current;
156 unsigned int m_state[8];
157 };
158
162 {
163 return iterator(this);
164 }
165
168 public: NXOpen::Features::Coatings::CoatingRegionBuilder * CreateCoatingsCoatingRegionBuilder
169 (
170 NXOpen::Part * part ,
171 NXOpen::Features::Coatings::CoatingRegion * coatingRegion
172 );
174
177 public: NXOpen::Features::Coatings::CoatingThickenBodyBuilder * CreateCoatingsCoatingThickenBodyBuilder
178 (
179 NXOpen::Part * part ,
180 NXOpen::Features::Coatings::CoatingThickenBody * coatingThickenBody
181 );
183 }; //lint !e1712 类未定义默认构造函数
184 }
185}
186#ifdef _MSC_VER
187#pragma warning(pop)
188#endif
189#ifdef __GNUC__
190#ifndef NX_NO_GCC_DEPRECATION_WARNINGS
191#pragma GCC diagnostic warning "-Wdeprecated-declarations"
192#endif
193#endif
194#undef EXPORTLIBRARY