NX Open C++ 参考指南 2406 v1.1
载入中...
搜索中...
未找到
Assemblies_DrawingExplosionCollection.hxx
1//--------------------------------------------------------------------------
2// Copyright 2024 Siemens
3//--------------------------------------------------------------------------
4// C++接口访问JA API的头文件
5//--------------------------------------------------------------------------
6//
7// 源文件:
8// Assemblies_DrawingExplosionCollection.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_assemblies_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 Assemblies
35 {
37 }
38 namespace Assemblies
39 {
41 }
42 namespace Assemblies
43 {
44 class DrawingExplosion;
45 }
46 namespace Assemblies
47 {
48 class DrawingExplosionCollectionImpl;
52 class NXOPENCPP_ASSEMBLIESEXPORT DrawingExplosionCollection : public NXOpen::TaggedObjectCollection
53 {
54 private: DrawingExplosionCollectionImpl * m_drawingexplosioncollection_impl;
59 public:
61 tag_t Tag() const;
64 //lint -sem(NXOpen::Assemblies::DrawingExplosionCollection::iterator::copy,initializer)
65 class iterator : public std::iterator<std::forward_iterator_tag, NXOpen::Assemblies::DrawingExplosion *>
66 {
67 public:
69 iterator() : m_context(nullptr), m_current(NULL_TAG)
70 {
71 // coverity[uninit_member]
72 } //lint !e1401 m_state is not initialized
73
74 explicit iterator(NXOpen::Assemblies::DrawingExplosionCollection *context) : m_context(context), m_current(NULL_TAG)
75 {
76 // coverity[uninit_member]
77 }//lint !e1401 m_state is not initialized
79
80 iterator(const iterator &other): m_context(nullptr), m_current(NULL_TAG)
81 {
82 copy(other);
83 }
84
85 iterator &operator =(const iterator &other)
86 {
87 if (&other != this)
88 copy(other);
89 return *this;
90 }
91
92 bool operator ==(const iterator &other) const
93 {
94 return m_current == other.m_current && m_context == other.m_context;
95 }
96
97 bool operator !=(const iterator &other) const
98 {
99 return !operator == (other);
100 }
101
102 NXOPENCPP_ASSEMBLIESEXPORT value_type operator * () const;
104 iterator & operator ++()
105 {
106 next();
107 return *this;
108 }
109
110 iterator operator ++(int)
111 {
112 iterator tmp(*this);
113 ++*this;
114 return tmp;
115 }
116 private:
117 void copy(const iterator &other)
118 {
119 m_context = other.m_context;
120 m_current = other.m_current;
121 for (int i = 0; i < sizeof(m_state)/sizeof(m_state[0]); i++)
122 m_state[i] = other.m_state[i];
123 }
124 NXOPENCPP_ASSEMBLIESEXPORT void next();
126 tag_t m_current;
127 unsigned int m_state[8];
128 };
129
133 {
134 return iterator(this);
135 }
136
143 (
144 const NXString & name
145 );
153 (
154 const char * name
155 );
156 }; //lint !e1712 类未定义默认构造函数
157 }
158}
159#ifdef _MSC_VER
160#pragma warning(pop)
161#endif
162#ifdef __GNUC__
163#ifndef NX_NO_GCC_DEPRECATION_WARNINGS
164#pragma GCC diagnostic warning "-Wdeprecated-declarations"
165#endif
166#endif
167#undef EXPORTLIBRARY