NX Open C++ 参考指南 2406 v1.1
载入中...
搜索中...
未找到
Schematic_ObjectTableCollection.hxx
1//--------------------------------------------------------------------------
2// Copyright 2024 Siemens
3//--------------------------------------------------------------------------
4// JA API的C++接口头文件
5//--------------------------------------------------------------------------
6//
7// 源文件:
8// Schematic_ObjectTableCollection.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/PDM_PartOperationCreateBuilder.hxx>
24#include <NXOpen/Schematic_ObjectTable.hxx>
25#include <NXOpen/TaggedObject.hxx>
26#include <NXOpen/libnxopencpp_schematic_exports.hxx>
27#ifdef _MSC_VER
28#pragma warning(push)
29#pragma warning(disable:4996)
30#endif
31#ifdef __GNUC__
32#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
33#endif
34namespace NXOpen
35{
36 namespace Schematic
37 {
39 }
40 namespace Schematic
41 {
42 class Sheet;
43 }
44 namespace Schematic
45 {
46 class ObjectTable;
47 }
48 namespace PDM
49 {
51 }
52 namespace Schematic
53 {
54 class ObjectTableCollectionImpl;
58 class NXOPENCPP_SCHEMATICEXPORT ObjectTableCollection : public NXOpen::TaggedObjectCollection
59 {
60 private: ObjectTableCollectionImpl * m_objecttablecollection_impl;
61 private: NXOpen::Schematic::Sheet* m_owner;
63 public: explicit ObjectTableCollection(NXOpen::Schematic::Sheet *owner);
65 public:
67 tag_t Tag() const;
68 public: ~ObjectTableCollection();
70 //lint -sem(NXOpen::Schematic::ObjectTableCollection::iterator::copy,initializer)
71 class iterator : public std::iterator<std::forward_iterator_tag, NXOpen::Schematic::ObjectTable *>
72 {
73 public:
75 iterator() : m_context(nullptr), m_current(NULL_TAG)
76 {
77 // coverity[uninit_member]
78 } //lint !e1401 m_state未初始化
79
80 explicit iterator(NXOpen::Schematic::ObjectTableCollection *context) : m_context(context), m_current(NULL_TAG)
81 {
82 // coverity[uninit_member]
83 }//lint !e1401 m_state未初始化
85
86 iterator(const iterator &other): m_context(nullptr), m_current(NULL_TAG)
87 {
88 copy(other);
89 }
90
91 iterator &operator =(const iterator &other)
92 {
93 if (&other != this)
94 copy(other);
95 return *this;
96 }
97
98 bool operator ==(const iterator &other) const
99 {
100 return m_current == other.m_current && m_context == other.m_context;
101 }
102
103 bool operator !=(const iterator &other) const
104 {
105 return !operator == (other);
106 }
107
108 NXOPENCPP_SCHEMATICEXPORT value_type operator * () const;
110 iterator & operator ++()
111 {
112 next();
113 return *this;
114 }
115
116 iterator operator ++(int)
117 {
118 iterator tmp(*this);
119 ++*this;
120 return tmp;
121 }
122 private:
123 void copy(const iterator &other)
124 {
125 m_context = other.m_context;
126 m_current = other.m_current;
127 for (int i = 0; i < sizeof(m_state)/sizeof(m_state[0]); i++)
128 m_state[i] = other.m_state[i];
129 }
130 NXOPENCPP_SCHEMATICEXPORT void next();
132 tag_t m_current;
133 unsigned int m_state[8];
134 };
135
139 {
140 return iterator(this);
141 }
142
147 (
148 const NXString & journalIdentifier
149 );
155 (
156 const char * journalIdentifier
157 );
163 (
164 NXOpen::Schematic::ObjectTable * automaticTable ,
165 const NXString & templatePartName
166 );
172 (
173 NXOpen::Schematic::ObjectTable * automaticTable ,
174 const char * templatePartName
175 );
181 (
182 NXOpen::Schematic::ObjectTable * automaticTable ,
184 );
191 (
192 const NXString & templatePartName
193 );
200 (
201 const char * templatePartName
202 );
203 }; //lint !e1712 default constructor not defined for class
204 }
205}
206#ifdef _MSC_VER
207#pragma warning(pop)
208#endif
209#ifdef __GNUC__
210#ifndef NX_NO_GCC_DEPRECATION_WARNINGS
211#pragma GCC diagnostic warning "-Wdeprecated-declarations"
212#endif
213#endif
214#undef EXPORTLIBRARY