NX Open C++ 参考指南 2406 v1.1
载入中...
搜索中...
未找到
Mechatronics_GanttCollection.hxx
1//--------------------------------------------------------------------------
2// Copyright 2024 Siemens
3//--------------------------------------------------------------------------
4// 用于JA API的C++接口头文件
5//--------------------------------------------------------------------------
6//
7// 源文件:
8// Mechatronics_GanttCollection.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_GanttOperationObject.hxx>
23#include <NXOpen/TaggedObjectCollection.hxx>
24#include <NXOpen/TaggedObject.hxx>
25#include <NXOpen/libnxopencpp_mechatronics_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{
35 namespace Mechatronics
36 {
37 class GanttCollection;
38 }
39 class Part;
40 namespace Mechatronics
41 {
43 }
44 namespace Mechatronics
45 {
47 }
48 namespace Mechatronics
49 {
51 }
52 namespace Mechatronics
53 {
55 }
56 namespace Mechatronics
57 {
59 }
60 namespace Mechatronics
61 {
62 class GanttCollectionImpl;
66 class NXOPENCPP_MECHATRONICSEXPORT GanttCollection : public NXOpen::TaggedObjectCollection
67 {
68 private: GanttCollectionImpl * m_ganttcollection_impl;
69 private: NXOpen::Part* m_owner;
71 public: explicit GanttCollection(NXOpen::Part *owner);
73 public:
75 tag_t Tag() const;
76 public: ~GanttCollection();
78 //lint -sem(NXOpen::Mechatronics::GanttCollection::iterator::copy,initializer)
79 class iterator : public std::iterator<std::forward_iterator_tag, NXOpen::Mechatronics::GanttOperationObject *>
80 {
81 public:
83 iterator() : m_context(nullptr), m_current(NULL_TAG)
84 {
85 // coverity[uninit_member]
86 } //lint !e1401 m_state 未初始化
87
88 explicit iterator(NXOpen::Mechatronics::GanttCollection *context) : m_context(context), m_current(NULL_TAG)
89 {
90 // coverity[uninit_member]
91 }//lint !e1401 m_state 未初始化
93
94 iterator(const iterator &other): m_context(nullptr), m_current(NULL_TAG)
95 {
96 copy(other);
97}
98
99 iterator &operator =(const iterator &other)
100 {
101 if (&other != this)
102 copy(other);
103 return *this;
104 }
105
106 bool operator ==(const iterator &other) const
107 {
108 return m_current == other.m_current && m_context == other.m_context;
109 }
110
111 bool operator !=(const iterator &other) const
112 {
113 return !operator == (other);
114 }
115
116 NXOPENCPP_MECHATRONICSEXPORT value_type operator * () const;
118 iterator & operator ++()
119 {
120 next();
121 return *this;
122 }
123
124 iterator operator ++(int)
125 {
126 iterator tmp(*this);
127 ++*this;
128 return tmp;
129 }
130 private:
131 void copy(const iterator &other)
132 {
133 m_context = other.m_context;
134 m_current = other.m_current;
135 for (int i = 0; i < sizeof(m_state)/sizeof(m_state[0]); i++)
136 m_state[i] = other.m_state[i];
137 }
138 NXOPENCPP_MECHATRONICSEXPORT void next();
140 tag_t m_current;
141 unsigned int m_state[8];
142 };
143
147 {
148 return iterator(this);
149 }
150
154 (
156 );
161 (
162 );
167 (
168 );
173 (
175 );
181 (
182 const NXString & name
183 );
189 (
190 const char * name
191 );
192 }; //lint !e1712 default constructor not defined for class
193 }
194}
195#ifdef _MSC_VER
196#pragma warning(pop)
197#endif
198#ifdef __GNUC__
199#ifndef NX_NO_GCC_DEPRECATION_WARNINGS
200#pragma GCC diagnostic warning "-Wdeprecated-declarations"
201#endif
202#endif
203#undef EXPORTLIBRARY