NX Open C++ 参考指南 2406 v1.1
载入中...
搜索中...
未找到
Motion_FieldDataCollection.hxx
1//--------------------------------------------------------------------------
2// Copyright 2024 Siemens
3//--------------------------------------------------------------------------
4// C++接口到JA API的头文件
5//--------------------------------------------------------------------------
6//
7// 源文件:
8// Motion_FieldDataCollection.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/BasePart.hxx>
23#include <NXOpen/Motion_FieldData.hxx>
24#include <NXOpen/Motion_ProfileBuilder.hxx>
25#include <NXOpen/TaggedObjectCollection.hxx>
26#include <NXOpen/TaggedObject.hxx>
27#include <NXOpen/libnxopencpp_motion_exports.hxx>
28#ifdef _MSC_VER
29#pragma warning(push)
30#pragma warning(disable:4996)
31#endif
32#ifdef __GNUC__
33#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
34#endif
35namespace NXOpen
36{
37 namespace Motion
38 {
40 }
41 namespace Motion
42 {
43 class MotionManager;
44 }
45 namespace Motion
46 {
47 class FieldData;
48 }
49 namespace Motion
50 {
51 class ProfileBuilder;
52 }
53 namespace Motion
54 {
55 class FieldDataCollectionImpl;
59 class NXOPENCPP_MOTIONEXPORT FieldDataCollection : public NXOpen::TaggedObjectCollection
60 {
61 private: FieldDataCollectionImpl * m_fielddatacollection_impl;
62 private: NXOpen::Motion::MotionManager* m_owner;
66 public:
68 tag_t Tag() const;
69 public: ~FieldDataCollection();
71 //lint -sem(NXOpen::Motion::FieldDataCollection::iterator::copy,initializer)
72 class iterator : public std::iterator<std::forward_iterator_tag, NXOpen::Motion::FieldData *>
73 {
74 public:
76 iterator() : m_context(nullptr), m_current(NULL_TAG)
77 {
78 // coverity[uninit_member]
79 } //lint !e1401 m_state未初始化
80
81 explicit iterator(NXOpen::Motion::FieldDataCollection *context) : m_context(context), m_current(NULL_TAG)
82 {
83 // coverity[uninit_member]
84 }//lint !e1401 m_state未初始化
86
87 iterator(const iterator &other): m_context(nullptr), m_current(NULL_TAG)
88 {
89 copy(other);
90 }
91
92 iterator &operator =(const iterator &other)
93 {
94 if (&other != this)
95 copy(other);
96 return *this;
97 }
98
99 bool operator ==(const iterator &other) const
100 {
101 return m_current == other.m_current && m_context == other.m_context;
102 }
103
104 bool operator !=(const iterator &other) const
105 {
106 return !operator == (other);
107 }
108
109 NXOPENCPP_MOTIONEXPORT value_type operator * () const;
111 iterator & operator ++()
112 {
113 next();
114 return *this;
115 }
116
117 iterator operator ++(int)
118 {
119 iterator tmp(*this);
120 ++*this;
121 return tmp;
122 }
123 private:
124 void copy(const iterator &other)
125 {
126 m_context = other.m_context;
127 m_current = other.m_current;
128 for (int i = 0; i < sizeof(m_state)/sizeof(m_state[0]); i++)
129 m_state[i] = other.m_state[i];
130 }
131 NXOPENCPP_MOTIONEXPORT void next();
133 tag_t m_current;
134 unsigned int m_state[8];
135 };
136
140 {
141 return iterator(this);
142 }
143
147 (
148 NXOpen::Motion::FieldData * fieldData
150 );
156 (
157 const NXString & name
158 );
164 (
165 const char * name
166 );
167 }; //lint !e1712 类未定义默认构造函数
168 }
169}
170#ifdef _MSC_VER
171#pragma warning(pop)
172#endif
173#ifdef __GNUC__
174#ifndef NX_NO_GCC_DEPRECATION_WARNINGS
175#pragma GCC diagnostic warning "-Wdeprecated-declarations"
176#endif
177#endif
178#undef EXPORTLIBRARY