NX Open C++ 参考指南 2406 v1.1
载入中...
搜索中...
未找到
Motion_PackagingCollection.hxx
1//--------------------------------------------------------------------------
2// Copyright 2024 Siemens
3//--------------------------------------------------------------------------
4// C++接口JA API的头文件
5//--------------------------------------------------------------------------
6//
7// 源文件:
8// Motion_PackagingCollection.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_motion_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 Motion
35 {
37 }
38 class Part;
39 namespace Motion
40 {
41 class Packaging;
42 }
43 namespace Motion
44 {
46 }
47 namespace Motion
48 {
50 }
51 namespace Motion
52 {
53 class PackagingMeasure;
54 }
55 namespace Motion
56 {
58 }
59 namespace Motion
60 {
61 class PackagingTrace;
62 }
63 namespace Motion
64 {
66 }
67 namespace Motion
68 {
69 class PackagingCollectionImpl;
73 class NXOPENCPP_MOTIONEXPORT PackagingCollection : public NXOpen::TaggedObjectCollection
74 {
75 private: PackagingCollectionImpl * m_packagingcollection_impl;
76 private: NXOpen::Part* m_owner;
78 public: explicit PackagingCollection(NXOpen::Part *owner);
80 public:
82 tag_t Tag() const;
83 public: ~PackagingCollection();
85 //lint -sem(NXOpen::Motion::PackagingCollection::iterator::copy,initializer)
86 class iterator : public std::iterator<std::forward_iterator_tag, NXOpen::Motion::Packaging *>
87 {
88 public:
90 iterator() : m_context(nullptr), m_current(NULL_TAG)
91 {
92 // coverity[uninit_member]
93 } //lint !e1401 m_state未初始化
94
95 explicit iterator(NXOpen::Motion::PackagingCollection *context) : m_context(context), m_current(NULL_TAG)
96{
97 // coverity[uninit_member]
98 }//lint !e1401 m_state is not initialized
100
101 iterator(const iterator &other): m_context(nullptr), m_current(NULL_TAG)
102 {
103 copy(other);
104 }
105
106 iterator &operator =(const iterator &other)
107 {
108 if (&other != this)
109 copy(other);
110 return *this;
111 }
112
113 bool operator ==(const iterator &other) const
114 {
115 return m_current == other.m_current && m_context == other.m_context;
116 }
117
118 bool operator !=(const iterator &other) const
119 {
120 return !operator == (other);
121 }
122
123 NXOPENCPP_MOTIONEXPORT value_type operator * () const;
125 iterator & operator ++()
126 {
127 next();
128 return *this;
129 }
130
131 iterator operator ++(int)
132 {
133 iterator tmp(*this);
134 ++*this;
135 return tmp;
136 }
137 private:
138 void copy(const iterator &other)
139 {
140 m_context = other.m_context;
141 m_current = other.m_current;
142 for (int i = 0; i < sizeof(m_state)/sizeof(m_state[0]); i++)
143 m_state[i] = other.m_state[i];
144 }
145 NXOPENCPP_MOTIONEXPORT void next();
147 tag_t m_current;
148 unsigned int m_state[8];
149 };
150
154 {
155 return iterator(this);
156 }
157
161 (
163 );
168 (
170 );
175 (
177 );
182 (
183 const NXString & name
184 );
189 (
190 const char * name
191 );
193
196 public: void SetDistanceMeausreBodyOnlyFilterStatus
197 (
198 bool enableBodyOnly
199 );
201 }; //lint !e1712 类未定义默认构造函数
202 }
203}
204#ifdef _MSC_VER
205#pragma warning(pop)
206#endif
207#ifdef __GNUC__
208#ifndef NX_NO_GCC_DEPRECATION_WARNINGS
209#pragma GCC diagnostic warning "-Wdeprecated-declarations"
210#endif
211#endif
212#undef EXPORTLIBRARY