NX Open C++ 参考指南 2406 v1.1
载入中...
搜索中...
未找到
Motion_SignalChartCollection.hxx
1//--------------------------------------------------------------------------
2// Copyright 2024 Siemens
3//--------------------------------------------------------------------------
4// 运动信号图表API的C++接口头文件
5//--------------------------------------------------------------------------
6//
7// 源文件:
8// Motion_SignalChartCollection.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/TaggedObjectCollection.hxx>
23#include <NXOpen/TaggedObject.hxx>
24#include <NXOpen/libnxopencpp_motion_exports.hxx>
25#ifdef _MSC_VER
26#pragma warning(push)
27#pragma warning(disable:4996)
28#endif
29#ifdef __GNUC__
30#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
31#endif
32namespace NXOpen
33{
34 namespace Motion
35 {
37 }
38 namespace Motion
39 {
40 class MotionManager;
41 }
42 namespace Motion
43 {
44 class SignalChart;
45 }
46 namespace Motion
47 {
49 }
50 namespace Motion
51 {
53 }
54 namespace Motion
55 {
56 class SignalChartCollectionImpl;
60 class NXOPENCPP_MOTIONEXPORT SignalChartCollection : public NXOpen::TaggedObjectCollection
61 {
62 private: SignalChartCollectionImpl * m_signalchartcollection_impl;
63 private: NXOpen::Motion::MotionManager* m_owner;
67 public:
69 tag_t Tag() const;
70 public: ~SignalChartCollection();
72 //lint -sem(NXOpen::Motion::SignalChartCollection::iterator::copy,initializer)
73 class iterator : public std::iterator<std::forward_iterator_tag, NXOpen::Motion::SignalChart *>
74 {
75 public:
77 iterator() : m_context(nullptr), m_current(NULL_TAG)
78 {
79 // coverity[uninit_member]
80 } //lint !e1401 m_state未初始化
81
82 explicit iterator(NXOpen::Motion::SignalChartCollection *context) : m_context(context), m_current(NULL_TAG)
83 {
84 // coverity[uninit_member]
85 }//lint !e1401 m_state未初始化
87
88 iterator(const iterator &other): m_context(nullptr), m_current(NULL_TAG)
89 {
90 copy(other);
91 }
92
93 iterator &operator =(const iterator &other)
94 {
95 if (&other != this)
96 copy(other);
97 return *this;
98 }
99
100 bool operator ==(const iterator &other) const
101 {
102 return m_current == other.m_current && m_context == other.m_context;
103 }
104
105 bool operator !=(const iterator &other) const
106 {
107 return !operator == (other);
108 }
109
110 NXOPENCPP_MOTIONEXPORT value_type operator * () const;
112 iterator & operator ++()
113 {
114 next();
115 return *this;
116 }
117
118 iterator operator ++(int)
119 {
120 iterator tmp(*this);
121 ++*this;
122 return tmp;
123 }
124 private:
125 void copy(const iterator &other)
126 {
127 m_context = other.m_context;
128 m_current = other.m_current;
129 for (int i = 0; i < sizeof(m_state)/sizeof(m_state[0]); i++)
130 m_state[i] = other.m_state[i];
131 }
132 NXOPENCPP_MOTIONEXPORT void next();
134 tag_t m_current;
135 unsigned int m_state[8];
136 };
137
141 {
142 return iterator(this);
143 }
144
148 (
149 NXOpen::Motion::SignalChart * signalchart
151 );
156 (
157 );
163 (
164 const NXString & name
165 );
171 (
172 const char * name
173 );
174 }; //lint !e1712 类未定义默认构造函数
175 }
176}
177#ifdef _MSC_VER
178#pragma warning(pop)
179#endif
180#ifdef __GNUC__
181#ifndef NX_NO_GCC_DEPRECATION_WARNINGS
182#pragma GCC diagnostic warning "-Wdeprecated-declarations"
183#endif
184#endif
185#undef EXPORTLIBRARY