NX Open C++ 参考指南 2406 v1.1
载入中...
搜索中...
未找到
Motion_BearingPropertyCollection.hxx
1//--------------------------------------------------------------------------
2// Copyright 2024 Siemens
3//--------------------------------------------------------------------------
4// C++接口的JA API头文件
5//--------------------------------------------------------------------------
6//
7// 源文件:
8// Motion_BearingPropertyCollection.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/Motion_BearingPropertyBuilder.hxx>
23#include <NXOpen/TaggedObjectCollection.hxx>
24#include <NXOpen/TaggedObject.hxx>
25#include <NXOpen/libnxopencpp_motion_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 Motion
36 {
38 }
39 namespace Motion
40 {
41 class MotionManager;
42 }
43 namespace Motion
44 {
45 class BearingProperty;
46 }
47 namespace Motion
48 {
50 }
51 namespace Motion
52 {
53 class BearingPropertyCollectionImpl;
59 class NXOPENCPP_MOTIONEXPORT BearingPropertyCollection : public NXOpen::TaggedObjectCollection
60 {
61 private: BearingPropertyCollectionImpl * m_bearingpropertycollection_impl;
62 private: NXOpen::Motion::MotionManager* m_owner;
66 public:
68 tag_t Tag() const;
71 //lint -sem(NXOpen::Motion::BearingPropertyCollection::iterator::copy,initializer)
72 class iterator : public std::iterator<std::forward_iterator_tag, NXOpen::Motion::BearingProperty *>
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::BearingPropertyCollection *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
148 (
149 NXOpen::Motion::BearingProperty * bearingProperty
150 );
156 (
157 const std::vector<NXOpen::Motion::BearingProperty *> & bearingProperties
158 );
166 (
167 const NXString & name
168 );
176 (
177 const char * name
178 );
179}; //lint !e1712 类未定义默认构造函数
180 }
181}
182#ifdef _MSC_VER
183#pragma warning(pop)
184#endif
185#ifdef __GNUC__
186#ifndef NX_NO_GCC_DEPRECATION_WARNINGS
187#pragma GCC diagnostic warning "-Wdeprecated-declarations"
188#endif
189#endif
190#undef EXPORTLIBRARY