NX Open C++ 参考指南 2406 v1.1
载入中...
搜索中...
未找到
Document_TableCollection.hxx
1//--------------------------------------------------------------------------
2// Copyright 2024 Siemens
3//--------------------------------------------------------------------------
4// C++接口头文件 - JA API
5//--------------------------------------------------------------------------
6//
7// 源文件:
8// Document_TableCollection.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_RuleTableBuilder.hxx>
24#include <NXOpen/Document_Table.hxx>
25#include <NXOpen/Document_TableBuilder.hxx>
26#include <NXOpen/TaggedObjectCollection.hxx>
27#include <NXOpen/TaggedObject.hxx>
28#include <NXOpen/libdocumentopencpp_exports.hxx>
29#ifdef _MSC_VER
30#pragma warning(push)
31#pragma warning(disable:4996)
32#endif
33#ifdef __GNUC__
34#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
35#endif
36namespace NXOpen
37{
38 namespace Document
39 {
40 class TableCollection;
41 }
42 namespace Document
43 {
44 class DocumentPart;
45 }
46 namespace Document
47 {
48 class Table;
49 }
50 namespace Document
51 {
52 class Page;
53 }
54 namespace Document
55 {
56 class RuleTableBuilder;
57 }
58 namespace Document
59 {
60 class TableBuilder;
61 }
62 namespace Document
63 {
64 class TableCollectionImpl;
69 class DOCUMENTOPENCPPEXPORT TableCollection : public NXOpen::TaggedObjectCollection
70 {
71 private: TableCollectionImpl * m_tablecollection_impl;
72 private: NXOpen::Document::DocumentPart* m_owner;
74 public: explicit TableCollection(NXOpen::Document::DocumentPart *owner);
76 public:
78 tag_t Tag() const;
79 public: ~TableCollection();
81 //lint -sem(NXOpen::Document::TableCollection::iterator::copy,initializer)
82 class iterator : public std::iterator<std::forward_iterator_tag, NXOpen::Document::Table *>
83 {
84 public:
86 iterator() : m_context(nullptr), m_current(NULL_TAG)
87 {
88 // coverity[uninit_member]
89 } //lint !e1401 m_state 未初始化
90
91 explicit iterator(NXOpen::Document::TableCollection *context) : m_context(context), m_current(NULL_TAG)
92 {
93 // coverity[uninit_member]
94 }//lint !e1401 m_state 未初始化
96
97 iterator(const iterator &other): m_context(nullptr), m_current(NULL_TAG)
98 {
99 copy(other);
100 }
101
102 iterator &operator =(const iterator &other)
103 {
104 if (&other != this)
105 copy(other);
106 return *this;
107 }
108
109 bool operator ==(const iterator &other) const
110 {
111 return m_current == other.m_current && m_context == other.m_context;
112 }
113
114 bool operator !=(const iterator &other) const
115 {
116 return !operator == (other);
117 }
118
119 DOCUMENTOPENCPPEXPORT value_type operator * () const;
121 iterator & operator ++()
122 {
123 next();
124 return *this;
125 }
126
127 iterator operator ++(int)
128 {
129 iterator tmp(*this);
130 ++*this;
131 return tmp;
132 }
133 private:
134 void copy(const iterator &other)
135 {
136 m_context = other.m_context;
137 m_current = other.m_current;
138 for (int i = 0; i < sizeof(m_state)/sizeof(m_state[0]); i++)
139 m_state[i] = other.m_state[i];
140 }
141 DOCUMENTOPENCPPEXPORT void next();
143 tag_t m_current;
144 unsigned int m_state[8];
145 };
146
150 {
151 return iterator(this);
152 }
153
157 (
158 NXOpen::Document::Page * owningPage ,
160 );
162
165 public: NXOpen::Document::RuleTableBuilder * CreateRuleTableBuilder
166 (
167 NXOpen::Document::Page * owningPage ,
169 );
171
176 (
177 const NXString & journalIdentifier
178 );
184 (
185 const char * journalIdentifier
186 );
187 }; //lint !e1712 类未定义默认构造函数
188 }
189}
190#ifdef _MSC_VER
191#pragma warning(pop)
192#endif
193#ifdef __GNUC__
194#ifndef NX_NO_GCC_DEPRECATION_WARNINGS
195#pragma GCC diagnostic warning "-Wdeprecated-declarations"
196#endif
197#endif
198#undef EXPORTLIBRARY