NX Open C++ 参考指南 2406 v1.1
载入中...
搜索中...
未找到
Diagramming_TitleBlockCollection.hxx
1//--------------------------------------------------------------------------
2// Copyright 2024 Siemens
3//--------------------------------------------------------------------------
4// C++接口到JA API的头文件
5//--------------------------------------------------------------------------
6//
7// 源文件:
8// Diagramming_TitleBlockCollection.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/Diagramming_DefineTitleBlockBuilder.hxx>
23#include <NXOpen/Diagramming_PopulateTitleBlockBuilder.hxx>
24#include <NXOpen/Diagramming_TitleBlock.hxx>
25#include <NXOpen/TaggedObjectCollection.hxx>
26#include <NXOpen/TaggedObject.hxx>
27#include <NXOpen/libnxopencpp_diagramming_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 Diagramming
38 {
40 }
41 namespace Diagramming
42 {
44 }
45 namespace Diagramming
46 {
47 class TitleBlock;
48 }
49 namespace Diagramming
50 {
52 }
53 namespace Diagramming
54 {
56 }
57 namespace Diagramming
58 {
59 class TitleBlockCollectionImpl;
63 class NXOPENCPP_DIAGRAMMINGEXPORT TitleBlockCollection : public NXOpen::TaggedObjectCollection
64 {
65 private: TitleBlockCollectionImpl * m_titleblockcollection_impl;
70 public:
72 tag_t Tag() const;
73 public: ~TitleBlockCollection();
75 //lint -sem(NXOpen::Diagramming::TitleBlockCollection::iterator::copy,initializer)
76 class iterator : public std::iterator<std::forward_iterator_tag, NXOpen::Diagramming::TitleBlock *>
77 {
78 public:
80 iterator() : m_context(nullptr), m_current(NULL_TAG)
81 {
82 // coverity[uninit_member]
83 } //lint !e1401 m_state未初始化
84
85 explicit iterator(NXOpen::Diagramming::TitleBlockCollection *context) : m_context(context), m_current(NULL_TAG)
86 {
87 // coverity[uninit_member]
88 }//lint !e1401 m_state未初始化
90
91 iterator(const iterator &other): m_context(nullptr), m_current(NULL_TAG)
92 {
93 copy(other);
94 }
95
96 iterator &operator =(const iterator &other)
97 {
98 if (&other != this)
99 copy(other);
100 return *this;
101 }
102
103 bool operator ==(const iterator &other) const
104 {
105 return m_current == other.m_current && m_context == other.m_context;
106 }
107
108 bool operator !=(const iterator &other) const
109 {
110 return !operator == (other);
111 }
112
113 NXOPENCPP_DIAGRAMMINGEXPORT value_type operator * () const;
115 iterator & operator ++()
116 {
117 next();
118 return *this;
119 }
120
121 iterator operator ++(int)
122 {
123 iterator tmp(*this);
124 ++*this;
125 return tmp;
126 }
127 private:
128 void copy(const iterator &other)
129 {
130 m_context = other.m_context;
131 m_current = other.m_current;
132 for (int i = 0; i < sizeof(m_state)/sizeof(m_state[0]); i++)
133 m_state[i] = other.m_state[i];
134 }
135 NXOPENCPP_DIAGRAMMINGEXPORT void next();
137 tag_t m_current;
138 unsigned int m_state[8];
139 };
140
144 {
145 return iterator(this);
146 }
147
151 (
153 );
158 (
159 const std::vector<NXOpen::Diagramming::TitleBlock *> & titleBlocks
160 );
166 (
167 const NXString & journalIdentifier
168 );
174 (
175 const char * journalIdentifier
176 );
177 }; //lint !e1712 类未定义默认构造函数
178 }
179}
180#ifdef _MSC_VER
181#pragma warning(pop)
182#endif
183#ifdef __GNUC__
184#ifndef NX_NO_GCC_DEPRECATION_WARNINGS
185#pragma GCC diagnostic warning "-Wdeprecated-declarations"
186#endif
187#endif
188#undef EXPORTLIBRARY