NX Open C++ 参考指南 2406 v1.1
载入中...
搜索中...
未找到
Mechatronics_GanttLinkerCollection.hxx
1//--------------------------------------------------------------------------
2// Copyright 2024 Siemens
3//--------------------------------------------------------------------------
4// JA API的C++接口头文件
5//--------------------------------------------------------------------------
6//
7// 源文件:
8// Mechatronics_GanttLinkerCollection.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/Mechatronics_GanttLinker.hxx>
23#include <NXOpen/Mechatronics_GanttLinkerBuilder.hxx>
24#include <NXOpen/TaggedObjectCollection.hxx>
25#include <NXOpen/TaggedObject.hxx>
26#include <NXOpen/libnxopencpp_mechatronics_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 Mechatronics
37 {
39 }
40 class Part;
41 namespace Mechatronics
42 {
43 class GanttLinker;
44 }
45 namespace Mechatronics
46 {
48 }
49 namespace Mechatronics
50 {
51 class GanttLinkerCollectionImpl;
55 class NXOPENCPP_MECHATRONICSEXPORT GanttLinkerCollection : public NXOpen::TaggedObjectCollection
56 {
57 private: GanttLinkerCollectionImpl * m_ganttlinkercollection_impl;
58 private: NXOpen::Part* m_owner;
60 public: explicit GanttLinkerCollection(NXOpen::Part *owner);
62 public:
64 tag_t Tag() const;
65 public: ~GanttLinkerCollection();
67 //lint -sem(NXOpen::Mechatronics::GanttLinkerCollection::iterator::copy,initializer)
68 class iterator : public std::iterator<std::forward_iterator_tag, NXOpen::Mechatronics::GanttLinker *>
69 {
70 public:
72 iterator() : m_context(nullptr), m_current(NULL_TAG)
73 {
74 // coverity[uninit_member]
75 } //lint !e1401 m_state 未初始化
76
77 explicit iterator(NXOpen::Mechatronics::GanttLinkerCollection *context) : m_context(context), m_current(NULL_TAG)
78 {
79 // coverity[uninit_member]
80 }//lint !e1401 m_state 未初始化
82
83 iterator(const iterator &other): m_context(nullptr), m_current(NULL_TAG)
84 {
85 copy(other);
86 }
87
88 iterator &operator =(const iterator &other)
89 {
90 if (&other != this)
91 copy(other);
92 return *this;
93 }
94
95 bool operator ==(const iterator &other) const
96 {
97 return m_current == other.m_current && m_context == other.m_context;
98 }
99
100 bool operator !=(const iterator &other) const
101 {
102 return !operator == (other);
103 }
104
105 NXOPENCPP_MECHATRONICSEXPORT value_type operator * () const;
107 iterator & operator ++()
108 {
109 next();
110 return *this;
111 }
112
113 iterator operator ++(int)
114 {
115 iterator tmp(*this);
116 ++*this;
117 return tmp;
118 }
119 private:
120 void copy(const iterator &other)
121 {
122 m_context = other.m_context;
123 m_current = other.m_current;
124 for (int i = 0; i < sizeof(m_state)/sizeof(m_state[0]); i++)
125 m_state[i] = other.m_state[i];
126 }
127 NXOPENCPP_MECHATRONICSEXPORT void next();
129 tag_t m_current;
130 unsigned int m_state[8];
131 };
132
136 {
137 return iterator(this);
138 }
139
143 (
145 );
151 (
152 const NXString & name
153 );
159 (
160 const char * name
161 );
162 }; //lint !e1712 类未定义默认构造函数
163 }
164}
165#ifdef _MSC_VER
166#pragma warning(pop)
167#endif
168#ifdef __GNUC__
169#ifndef NX_NO_GCC_DEPRECATION_WARNINGS
170#pragma GCC diagnostic warning "-Wdeprecated-declarations"
171#endif
172#endif
173#undef EXPORTLIBRARY