NX Open C++ 参考指南 2406 v1.1
载入中...
搜索中...
未找到
Motion_BaseSectionCollection.hxx
1//--------------------------------------------------------------------------
2// Copyright 2024 Siemens
3//--------------------------------------------------------------------------
4// C++接口到JA API的头文件
5//--------------------------------------------------------------------------
6//
7// 源文件:
8// Motion_BaseSectionCollection.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_StandardSection.hxx>
24#include <NXOpen/Motion_StandardSectionBuilder.hxx>
25#include <NXOpen/Motion_UserDefinedSection.hxx>
26#include <NXOpen/Motion_UserDefinedSectionBuilder.hxx>
27#include <NXOpen/TaggedObjectCollection.hxx>
28#include <NXOpen/TaggedObject.hxx>
29#include <NXOpen/libnxopencpp_motion_exports.hxx>
30#ifdef _MSC_VER
31#pragma warning(push)
32#pragma warning(disable:4996)
33#endif
34#ifdef __GNUC__
35#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
36#endif
37namespace NXOpen
38{
39 namespace Motion
40 {
42 }
43 namespace Motion
44 {
45 class MotionManager;
46 }
47 namespace Motion
48 {
49 class BaseSection;
50 }
51 namespace Motion
52 {
53 class StandardSection;
54 }
55 namespace Motion
56 {
58 }
59 namespace Motion
60 {
62 }
63 namespace Motion
64 {
66 }
67 namespace Motion
68 {
69 class BaseSectionCollectionImpl;
73 class NXOPENCPP_MOTIONEXPORT BaseSectionCollection : public NXOpen::TaggedObjectCollection
74 {
75 private: BaseSectionCollectionImpl * m_basesectioncollection_impl;
76 private: NXOpen::Motion::MotionManager* m_owner;
80 public:
82 tag_t Tag() const;
83 public: ~BaseSectionCollection();
85 //lint -sem(NXOpen::Motion::BaseSectionCollection::iterator::copy,initializer)
86 class iterator : public std::iterator<std::forward_iterator_tag, NXOpen::Motion::BaseSection *>
87 {
88 public:
90 iterator() : m_context(nullptr), m_current(NULL_TAG)
91 {
92 // coverity[uninit_member]
93 } //lint !e1401 m_state未初始化
94
95 explicit iterator(NXOpen::Motion::BaseSectionCollection *context) : m_context(context), m_current(NULL_TAG)
96 {
97 // coverity[uninit_member]
98 }//lint !e1401 m_state未初始化
100
101 iterator(const iterator &other): m_context(nullptr), m_current(NULL_TAG)
102 {
103 copy(other);
104 }
105
106 iterator &operator =(const iterator &other)
107 {
108 if (&other != this)
109 copy(other);
110 return *this;
111 }
112
113 bool operator ==(const iterator &other) const
114 {
115 return m_current == other.m_current && m_context == other.m_context;
116 }
117
118 bool operator !=(const iterator &other) const
119 {
120 return !operator == (other);
121 }
122
123 NXOPENCPP_MOTIONEXPORT value_type operator * () const;
125 iterator & operator ++()
126 {
127 next();
128 return *this;
129 }
130
131 iterator operator ++(int)
132 {
133 iterator tmp(*this);
134 ++*this;
135 return tmp;
136 }
137 private:
138 void copy(const iterator &other)
139 {
140 m_context = other.m_context;
141 m_current = other.m_current;
142 for (int i = 0; i < sizeof(m_state)/sizeof(m_state[0]); i++)
143 m_state[i] = other.m_state[i];
144 }
145 NXOPENCPP_MOTIONEXPORT void next();
147 tag_t m_current;
148 unsigned int m_state[8];
149 };
150
154 {
155 return iterator(this);
156 }
157
161 (
162 NXOpen::Motion::UserDefinedSection * userDefinedSection
164 );
169 (
170 NXOpen::Motion::StandardSection * standardSection
172 );
178 (
179 const NXString & name
180 );
186 (
187 const char * name
188 );
189 }; //lint !e1712 类未定义默认构造函数
190 }
191}
192#ifdef _MSC_VER
193#pragma warning(pop)
194#endif
195#ifdef __GNUC__
196#ifndef NX_NO_GCC_DEPRECATION_WARNINGS
197#pragma GCC diagnostic warning "-Wdeprecated-declarations"
198#endif
199#endif
200#undef EXPORTLIBRARY