NX Open C++ 参考指南 2406 v1.1
载入中...
搜索中...
未找到
Document_RectangleCollection.hxx
1//--------------------------------------------------------------------------
2// Copyright 2024 Siemens
3//--------------------------------------------------------------------------
4// C++ 接口至 JA API 的头文件
5//--------------------------------------------------------------------------
6//
7// 源文件:
8// Document_RectangleCollection.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/Document_Page.hxx>
23#include <NXOpen/Document_Rectangle.hxx>
24#include <NXOpen/Document_RectangleBuilder.hxx>
25#include <NXOpen/TaggedObjectCollection.hxx>
26#include <NXOpen/TaggedObject.hxx>
27#include <NXOpen/libdocumentopencpp_exports.hxx>
28#ifdef _MSC_VER
29#pragma warning(push)
30#pragma warning(disable:4996)
31#endif
32#ifdef __GNUC__
33#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
34#endif
35namespace NXOpen
36{
37 namespace Document
38 {
40 }
41 namespace Document
42 {
43 class DocumentPart;
44 }
45 namespace Document
46 {
47 class Line;
48 }
49 namespace Document
50 {
51 class Page;
52 }
53 namespace Document
54 {
55 class Rectangle;
56 }
57 namespace Document
58 {
59 class RectangleBuilder;
60 }
61 namespace Document
62 {
63 class RectangleCollectionImpl;
68 class DOCUMENTOPENCPPEXPORT RectangleCollection : public NXOpen::TaggedObjectCollection
69 {
70 private: RectangleCollectionImpl * m_rectanglecollection_impl;
71 private: NXOpen::Document::DocumentPart* m_owner;
75 public:
77 tag_t Tag() const;
78 public: ~RectangleCollection();
80 //lint -sem(NXOpen::Document::RectangleCollection::iterator::copy,initializer)
81 class iterator : public std::iterator<std::forward_iterator_tag, NXOpen::Document::Line *>
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::Document::RectangleCollection *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 DOCUMENTOPENCPPEXPORT 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 DOCUMENTOPENCPPEXPORT void next();
142 tag_t m_current;
143 unsigned int m_state[8];
144 };
145
149 {
150 return iterator(this);
151 }
152
157 (
158 const NXString & journalIdentifier
159 );
165 (
166 const char * journalIdentifier
167 );
172 (
174 NXOpen::Document::Rectangle * rectangle
175 );
176 }; //lint !e1712 类未定义默认构造函数
177 }
178}
179#ifdef _MSC_VER
180#pragma warning(pop)
181#endif
182#ifdef __GNUC__
183#ifndef NX_NO_GCC_DEPRECATION_WARNINGS
184#pragma GCC diagnostic warning "-Wdeprecated-declarations"
185#endif
186#endif
187#undef EXPORTLIBRARY