NX Open C++ 参考指南 2406 v1.1
载入中...
搜索中...
未找到
PartMfg_ToleranceCollection.hxx
1//--------------------------------------------------------------------------
2// Copyright 2024 Siemens
3//--------------------------------------------------------------------------
4// 公差分析API的C++接口头文件
5//--------------------------------------------------------------------------
6//
7// 源文件:
8// PartMfg_ToleranceCollection.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/PartMfg_ToleranceValidationBuilder.hxx>
24#include <NXOpen/TaggedObject.hxx>
25#include <NXOpen/libpartmfgopencpp_exports.hxx>
26#ifdef _MSC_VER
27#pragma warning(push)
28#pragma warning(disable:4996)
29#endif
30#ifdef __GNUC__
31#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
32#endif
33namespace NXOpen
34{
35 namespace PartMfg
36 {
38 }
39 namespace PartMfg
40 {
41 class PMPart;
42 }
43 namespace PartMfg
44 {
46 }
47 namespace Annotations
48 {
49 class Pmi;
50 }
51 namespace PartMfg
52 {
54 }
55 namespace PartMfg
56 {
57 class ToleranceCollectionImpl;
61 class PARTMFGOPENCPPEXPORT ToleranceCollection : public NXOpen::TaggedObjectCollection
62 {
63 private: ToleranceCollectionImpl * m_tolerancecollection_impl;
64 private: NXOpen::PartMfg::PMPart* m_owner;
66 public: explicit ToleranceCollection(NXOpen::PartMfg::PMPart *owner);
68 public:
70 tag_t Tag() const;
71 public: ~ToleranceCollection();
73 //lint -sem(NXOpen::PartMfg::ToleranceCollection::iterator::copy,initializer)
74 class iterator : public std::iterator<std::forward_iterator_tag, NXOpen::PartMfg::ToleranceValidation *>
75 {
76 public:
78 iterator() : m_context(nullptr), m_current(NULL_TAG)
79 {
80 // coverity[uninit_member]
81 } //lint !e1401 m_state未初始化
82
83 explicit iterator(NXOpen::PartMfg::ToleranceCollection *context) : m_context(context), m_current(NULL_TAG)
84 {
85 // coverity[uninit_member]
86 }//lint !e1401 m_state未初始化
88
89 iterator(const iterator &other): m_context(nullptr), m_current(NULL_TAG)
90 {
91 copy(other);
92 }
93
94 iterator &operator =(const iterator &other)
95 {
96 if (&other != this)
97 copy(other);
98 return *this;
99 }
100
101 bool operator ==(const iterator &other) const
102 {
103 return m_current == other.m_current && m_context == other.m_context;
104 }
105
106 bool operator !=(const iterator &other) const
107 {
108 return !operator == (other);
109 }
110
111 PARTMFGOPENCPPEXPORT value_type operator * () const;
113 iterator & operator ++()
114 {
115 next();
116 return *this;
117 }
118
119 iterator operator ++(int)
120 {
121 iterator tmp(*this);
122 ++*this;
123 return tmp;
124 }
125 private:
126 void copy(const iterator &other)
127 {
128 m_context = other.m_context;
129 m_current = other.m_current;
130 for (int i = 0; i < sizeof(m_state)/sizeof(m_state[0]); i++)
131 m_state[i] = other.m_state[i];
132 }
133 PARTMFGOPENCPPEXPORT void next();
135 tag_t m_current;
136 unsigned int m_state[8];
137 };
138
142 {
143 return iterator(this);
144 }
145
150 (
151 );
157 (
159 const NXString & method
160 );
166 (
168 const char * method
169 );
175 (
177 double proessCapability
178 );
179 }; //lint !e1712 类未定义默认构造函数
180 }
181}
182#ifdef _MSC_VER
183#pragma warning(pop)
184#endif
185#ifdef __GNUC__
186#ifndef NX_NO_GCC_DEPRECATION_WARNINGS
187#pragma GCC diagnostic warning "-Wdeprecated-declarations"
188#endif
189#endif
190#undef EXPORTLIBRARY