NX Open C++ 参考指南 2406 v1.1
载入中...
搜索中...
未找到
Drawings_DrawingRegionCollection.hxx
1//--------------------------------------------------------------------------
2// Copyright 2024 Siemens
3//--------------------------------------------------------------------------
4// C++接口的JA API头文件
5//--------------------------------------------------------------------------
6//
7// 源文件:
8// Drawings_DrawingRegionCollection.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_drawings_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 Drawings
35 {
37 }
38 namespace Drafting
39 {
41 }
42 namespace Drawings
43 {
44 class DrawingRegion;
45 }
46 namespace Drawings
47 {
49 }
50 namespace Drawings
51 {
53 }
54 namespace Drawings
55 {
57 }
58 namespace Drawings
59 {
61 }
62 namespace Drawings
63 {
64 class DrawingRegionCollectionImpl;
68 class NXOPENCPP_DRAWINGSEXPORT DrawingRegionCollection : public NXOpen::TaggedObjectCollection
69 {
70 private: DrawingRegionCollectionImpl * m_drawingregioncollection_impl;
75 public:
77 tag_t Tag() const;
80 //lint -sem(NXOpen::Drawings::DrawingRegionCollection::iterator::copy,initializer)
81 class iterator : public std::iterator<std::forward_iterator_tag, NXOpen::Drawings::DrawingRegion *>
82 {
83 public:
85 iterator() : m_context(nullptr), m_current(NULL_TAG)
86 {
87 // coverity[uninit_member]
88 } //lint !e1401 m_state 未初始化
89
90 explicit iterator(NXOpen::Drawings::DrawingRegionCollection *context) : m_context(context), m_current(NULL_TAG)
91 {
92 // coverity[uninit_member]
93 }//lint !e1401 m_state 未初始化
95
96 iterator(const iterator &other): m_context(nullptr), m_current(NULL_TAG)
97{
98 copy(other);
99 }
100
101 iterator &operator =(const iterator &other)
102 {
103 if (&other != this)
104 copy(other);
105 return *this;
106 }
107
108 bool operator ==(const iterator &other) const
109 {
110 return m_current == other.m_current && m_context == other.m_context;
111 }
112
113 bool operator !=(const iterator &other) const
114 {
115 return !operator == (other);
116 }
117
118 NXOPENCPP_DRAWINGSEXPORT value_type operator * () const;
120 iterator & operator ++()
121 {
122 next();
123 return *this;
124 }
125
126 iterator operator ++(int)
127 {
128 iterator tmp(*this);
129 ++*this;
130 return tmp;
131 }
132 private:
133 void copy(const iterator &other)
134 {
135 m_context = other.m_context;
136 m_current = other.m_current;
137 for (int i = 0; i < sizeof(m_state)/sizeof(m_state[0]); i++)
138 m_state[i] = other.m_state[i];
139 }
140 NXOPENCPP_DRAWINGSEXPORT void next();
142 tag_t m_current;
143 unsigned int m_state[8];
144 };
145
149 {
150 return iterator(this);
151 }
152
156 (
158 );
163 (
164 );
169 (
170 );
175 (
176 );
182 (
183 const NXString & name
184 );
190 (
191 const char * name
192 );
193 }; //lint !e1712 default constructor not defined for class
194 }
195}
196#ifdef _MSC_VER
197#pragma warning(pop)
198#endif
199#ifdef __GNUC__
200#ifndef NX_NO_GCC_DEPRECATION_WARNINGS
201#pragma GCC diagnostic warning "-Wdeprecated-declarations"
202#endif
203#endif
204#undef EXPORTLIBRARY