NX Open C++ 参考指南 2406 v1.1
载入中...
搜索中...
未找到
CollaborativeDesignCollection.hxx
1//--------------------------------------------------------------------------
2// Copyright 2024 Siemens
3//--------------------------------------------------------------------------
4// JA API的C++接口头文件
5//--------------------------------------------------------------------------
6//
7// 源文件:
8// CollaborativeDesignCollection.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/Assemblies_SubsetBuilder.hxx>
23#include <NXOpen/TaggedObjectCollection.hxx>
24#include <NXOpen/TaggedObject.hxx>
25#include <NXOpen/libnxopencpp_exports.hxx>
26#ifdef _MSC_VER
27#pragma warning(push)
28#pragma warning(disable:4996)
29#endif
30#ifdef __GNUC__
31#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
32#endif
33namespace NXOpen
34{
38 namespace Assemblies
39 {
40 class SubsetBuilder;
41 }
42 class TaggedObject;
43 class CollaborativeDesignCollectionImpl;
50 {
51 private: CollaborativeDesignCollectionImpl * m_collaborativedesigncollection_impl;
56 public:
58 tag_t Tag() const;
61 //lint -sem(NXOpen::CollaborativeDesignCollection::iterator::copy,initializer)
62 class iterator : public std::iterator<std::forward_iterator_tag, NXOpen::CollaborativeDesign *>
63 {
64 public:
66 iterator() : m_context(nullptr), m_current(NULL_TAG)
67 {
68 // coverity[uninit_member]
69 } //lint !e1401 m_state未初始化
70
71 explicit iterator(NXOpen::CollaborativeDesignCollection *context) : m_context(context), m_current(NULL_TAG)
72 {
73 // coverity[uninit_member]
74 }//lint !e1401 m_state未初始化
76
77 iterator(const iterator &other): m_context(nullptr), m_current(NULL_TAG)
78 {
79 copy(other);
80 }
81
82 iterator &operator =(const iterator &other)
83 {
84 if (&other != this)
85 copy(other);
86 return *this;
87 }
88
89 bool operator ==(const iterator &other) const
90 {
91 return m_current == other.m_current && m_context == other.m_context;
92 }
93
94 bool operator !=(const iterator &other) const
95 {
96 return !operator == (other);
97 }
98
99 NXOPENCPPEXPORT value_type operator * () const;
101 iterator & operator ++()
102 {
103 next();
104 return *this;
105 }
106
107 iterator operator ++(int)
108 {
109 iterator tmp(*this);
110 ++*this;
111 return tmp;
112 }
113 private:
114 void copy(const iterator &other)
115 {
116 m_context = other.m_context;
117 m_current = other.m_current;
118 for (int i = 0; i < sizeof(m_state)/sizeof(m_state[0]); i++)
119 m_state[i] = other.m_state[i];
120 }
121 NXOPENCPPEXPORT void next();
123 tag_t m_current;
124 unsigned int m_state[8];
125 };
126
130 {
131 return iterator(this);
132 }
133
139 (
140 const NXString & journalIdentifier
141 );
148 (
149 const char * journalIdentifier
150 );
155 (
156 );
163 (
164 const NXString & journalIdentifier
165 );
172 (
173 const char * journalIdentifier
174 );
175 }; //lint !e1712 类未定义默认构造函数
176}
177#ifdef _MSC_VER
178#pragma warning(pop)
179#endif
180#ifdef __GNUC__
181#ifndef NX_NO_GCC_DEPRECATION_WARNINGS
182#pragma GCC diagnostic warning "-Wdeprecated-declarations"
183#endif
184#endif
185#undef EXPORTLIBRARY