NX Open C++ 参考指南 2406 v1.1
载入中...
搜索中...
未找到
Mechatronics_SpeedControlCollection.hxx
1//--------------------------------------------------------------------------
2// Copyright 2024 Siemens
3//--------------------------------------------------------------------------
4// C++接口JA API的头文件
5//--------------------------------------------------------------------------
6//
7// 源文件:
8// Mechatronics_SpeedControlCollection.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_SpeedControl.hxx>
23#include <NXOpen/Mechatronics_SpeedControlBuilder.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 namespace Mechatronics
41 {
42 class PhysicsManager;
43 }
44 namespace Mechatronics
45 {
46 class SpeedControl;
47 }
48 namespace Assemblies
49 {
50 class Component;
51 }
52 namespace Mechatronics
53 {
55 }
56 namespace Mechatronics
57 {
58 class SpeedControlCollectionImpl;
62 class NXOPENCPP_MECHATRONICSEXPORT SpeedControlCollection : public NXOpen::TaggedObjectCollection
63 {
64 private: SpeedControlCollectionImpl * m_speedcontrolcollection_impl;
69 public:
71 tag_t Tag() const;
74 //lint -sem(NXOpen::Mechatronics::SpeedControlCollection::iterator::copy,initializer)
75 class iterator : public std::iterator<std::forward_iterator_tag, NXOpen::Mechatronics::SpeedControl *>
76 {
77 public:
79 iterator() : m_context(nullptr), m_current(NULL_TAG)
80 {
81 // coverity[uninit_member]
82 } //lint !e1401 m_state未初始化
83
84 explicit iterator(NXOpen::Mechatronics::SpeedControlCollection *context) : m_context(context), m_current(NULL_TAG)
85 {
86 // coverity[uninit_member]
87 }//lint !e1401 m_state未初始化
89
90 iterator(const iterator &other): m_context(nullptr), m_current(NULL_TAG)
91 {
92 copy(other);
93 }
94
95 iterator &operator =(const iterator &other)
96 {
97 if (&other != this)
98 copy(other);
99 return *this;
100 }
101
102 bool operator ==(const iterator &other) const
103 {
104 return m_current == other.m_current && m_context == other.m_context;
105 }
106
107 bool operator !=(const iterator &other) const
108 {
109 return !operator == (other);
110 }
111
112 NXOPENCPP_MECHATRONICSEXPORT value_type operator * () const;
114 iterator & operator ++()
115 {
116 next();
117 return *this;
118 }
119
120 iterator operator ++(int)
121 {
122 iterator tmp(*this);
123 ++*this;
124 return tmp;
125 }
126 private:
127 void copy(const iterator &other)
128 {
129 m_context = other.m_context;
130 m_current = other.m_current;
131 for (int i = 0; i < sizeof(m_state)/sizeof(m_state[0]); i++)
132 m_state[i] = other.m_state[i];
133 }
134 NXOPENCPP_MECHATRONICSEXPORT void next();
136 tag_t m_current;
137 unsigned int m_state[8];
138 };
139
143 {
144 return iterator(this);
145 }
146
150 (
152 );
157 (
160 );
166 (
167 const NXString & name
168 );
174 (
175 const char * name
176 );
177 }; //lint !e1712 类未定义默认构造函数
178 }
179}
180#ifdef _MSC_VER
181#pragma warning(pop)
182#endif
183#ifdef __GNUC__
184#ifndef NX_NO_GCC_DEPRECATION_WARNINGS
185#pragma GCC diagnostic warning "-Wdeprecated-declarations"
186#endif
187#endif
188#undef EXPORTLIBRARY