NX Open C++ 参考指南 2406 v1.1
载入中...
搜索中...
未找到
Mechatronics_FunctionObjectCollection.hxx
1//--------------------------------------------------------------------------
2// Copyright 2024 Siemens
3//--------------------------------------------------------------------------
4// C++接口JA API的头文件
5//--------------------------------------------------------------------------
6//
7// 源文件:
8// Mechatronics_FunctionObjectCollection.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_FunctionObject.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 {
38 }
39 namespace Mechatronics
40 {
42 }
43 namespace Mechatronics
44 {
45 class FunctionObject;
46 }
47 namespace Mechatronics
48 {
50 }
51 namespace Mechatronics
52 {
54 }
55 namespace Mechatronics
56 {
57 class FunctionObjectCollectionImpl;
61 class NXOPENCPP_MECHATRONICSEXPORT FunctionObjectCollection : public NXOpen::TaggedObjectCollection
62 {
63 private: FunctionObjectCollectionImpl * m_functionobjectcollection_impl;
68 public:
70 tag_t Tag() const;
73 //lint -sem(NXOpen::Mechatronics::FunctionObjectCollection::iterator::copy,initializer)
74 class iterator : public std::iterator<std::forward_iterator_tag, NXOpen::Mechatronics::FunctionObject *>
75 {
76 public:
78 iterator() : m_context(nullptr), m_current(NULL_TAG)
79 {
80 // coverity[uninit_member]
81 } //lint !e1401 m_state未初始化
82
83 explicit iterator(NXOpen::Mechatronics::FunctionObjectCollection *context) : m_context(context), m_current(NULL_TAG)
84 {
85 // coverity[uninit_member]
86 }//lint !e1401 m_state未初始化
88
89 iterator(const iterator &other): m_context(nullptr), m_current(NULL_TAG)
90 {
91 copy(other);
92 }
93
94 iterator &operator =(const iterator &other)
95 {
96 if (&other != this)
97copy(other);
98 return *this;
99 }
100
101 bool operator ==(const iterator &other) const
102 {
103 return m_current == other.m_current && m_context == other.m_context;
104 }
105
106 bool operator !=(const iterator &other) const
107 {
108 return !operator == (other);
109 }
110
111 NXOPENCPP_MECHATRONICSEXPORT value_type operator * () const;
113 iterator & operator ++()
114 {
115 next();
116 return *this;
117 }
118
119 iterator operator ++(int)
120 {
121 iterator tmp(*this);
122 ++*this;
123 return tmp;
124 }
125 private:
126 void copy(const iterator &other)
127 {
128 m_context = other.m_context;
129 m_current = other.m_current;
130 for (int i = 0; i < sizeof(m_state)/sizeof(m_state[0]); i++)
131 m_state[i] = other.m_state[i];
132 }
133 NXOPENCPP_MECHATRONICSEXPORT void next();
135 tag_t m_current;
136 unsigned int m_state[8];
137 };
138
142 {
143 return iterator(this);
144 }
145
149 (
151 );
156 (
157 );
162 (
163 const NXString & name
164 );
169 (
170 const char * name
171 );
175 public: void DeleteFunction
176 (
178 );
182 public: void RenameFunction
183 (
184 const NXString & newName ,
186 );
191 (
192 const char * newName ,
194 );
195 }; //lint !e1712 default constructor not defined for class
196 }
197}
198#ifdef _MSC_VER
199#pragma warning(pop)
200#endif
201#ifdef __GNUC__
202#ifndef NX_NO_GCC_DEPRECATION_WARNINGS
203#pragma GCC diagnostic warning "-Wdeprecated-declarations"
204#endif
205#endif
206#undef EXPORTLIBRARY