NX Open C++ 参考指南 2406 v1.1
载入中...
搜索中...
未找到
Tooling_ElectrodeDesignCollection.hxx
1//--------------------------------------------------------------------------
2// Copyright 2024 Siemens
3//--------------------------------------------------------------------------
4// Header for C++ interface to JA API
5//--------------------------------------------------------------------------
6//
7// Source File:
8// Tooling_ElectrodeDesignCollection.ja
9//
10// Generated by:
11// apiwrap
12//
13// WARNING:
14// This file is automatically generated - do not edit by hand
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_tooling_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 Tooling
35 {
37 }
38 namespace Tooling
39 {
40 class ToolingManager;
41 }
42 namespace Tooling
43 {
44 class ElectrodeDesign;
45 }
46 namespace Tooling
47 {
49 }
50 namespace Tooling
51 {
53 }
54 namespace Tooling
55 {
57 }
58 namespace Tooling
59 {
61 }
62 namespace Tooling
63 {
65 }
66 namespace Tooling
67 {
69 }
70 namespace Tooling
71 {
73 }
74 namespace Tooling
75 {
76 class ElectrodeDesignCollectionImpl;
80 class NXOPENCPP_TOOLINGEXPORT ElectrodeDesignCollection : public NXOpen::TaggedObjectCollection
81 {
82 private: ElectrodeDesignCollectionImpl * m_electrodedesigncollection_impl;
83 private: NXOpen::Tooling::ToolingManager* m_owner;
87 public:
89 tag_t Tag() const;
92 //lint -sem(NXOpen::Tooling::ElectrodeDesignCollection::iterator::copy,initializer)
93 class iterator : public std::iterator<std::forward_iterator_tag, NXOpen::Tooling::ElectrodeDesign *>
94 {
95 public:
97 iterator() : m_context(nullptr), m_current(NULL_TAG)
98{
99 // coverity[uninit_member]
100 } //lint !e1401 m_state is not initialized
101
102 explicit iterator(NXOpen::Tooling::ElectrodeDesignCollection *context) : m_context(context), m_current(NULL_TAG)
103 {
104 // coverity[uninit_member]
105 }//lint !e1401 m_state is not initialized
107
108 iterator(const iterator &other): m_context(nullptr), m_current(NULL_TAG)
109 {
110 copy(other);
111 }
112
113 iterator &operator =(const iterator &other)
114 {
115 if (&other != this)
116 copy(other);
117 return *this;
118 }
119
120 bool operator ==(const iterator &other) const
121 {
122 return m_current == other.m_current && m_context == other.m_context;
123 }
124
125 bool operator !=(const iterator &other) const
126 {
127 return !operator == (other);
128 }
129
130 NXOPENCPP_TOOLINGEXPORT value_type operator * () const;
132 iterator & operator ++()
133 {
134 next();
135 return *this;
136 }
137
138 iterator operator ++(int)
139 {
140 iterator tmp(*this);
141 ++*this;
142 return tmp;
143 }
144 private:
145 void copy(const iterator &other)
146 {
147 m_context = other.m_context;
148 m_current = other.m_current;
149 for (int i = 0; i < sizeof(m_state)/sizeof(m_state[0]); i++)
150 m_state[i] = other.m_state[i];
151 }
152 NXOPENCPP_TOOLINGEXPORT void next();
154 tag_t m_current;
155 unsigned int m_state[8];
156 };
157
161 {
162 return iterator(this);
163 }
164
168 (
169 );
174 (
175 );
180 (
181 );
186 (
187 );
192 (
193 );
198 (
199 );
204 (
205 );
206 }; //lint !e1712 类未定义默认构造函数
207 }
208}
209#ifdef _MSC_VER
210#pragma warning(pop)
211#endif
212#ifdef __GNUC__
213#ifndef NX_NO_GCC_DEPRECATION_WARNINGS
214#pragma GCC diagnostic warning "-Wdeprecated-declarations"
215#endif
216#endif
217#undef EXPORTLIBRARY