NX Open C++ 参考指南 2406 v1.1
载入中...
搜索中...
未找到
AnimationDesigner_TracerCollection.hxx
1//--------------------------------------------------------------------------
2// Copyright 2024 Siemens
3//--------------------------------------------------------------------------
4// C++ 接口到 JA API 的头文件
5//--------------------------------------------------------------------------
6//
7// 源文件:
8// AnimationDesigner_TracerCollection.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/AnimationDesigner_Tracer.hxx>
23#include <NXOpen/AnimationDesigner_TracerBuilder.hxx>
24#include <NXOpen/TaggedObjectCollection.hxx>
25#include <NXOpen/TaggedObject.hxx>
26#include <NXOpen/libanimationdesigneropencpp_exports.hxx>
27#ifdef _MSC_VER
28#pragma warning(push)
29#pragma warning(disable:4996)
30#endif
31#ifdef __GNUC__
32#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
33#endif
34namespace NXOpen
35{
36 namespace AnimationDesigner
37 {
38 class TracerCollection;
39 }
40 namespace AnimationDesigner
41 {
43 }
44 namespace AnimationDesigner
45 {
46 class Tracer;
47 }
48 namespace AnimationDesigner
49 {
50 class TracerBuilder;
51 }
52 class Part;
53 namespace AnimationDesigner
54 {
55 class TracerCollectionImpl;
59 class ANIMATIONDESIGNEROPENCPPEXPORT TracerCollection : public NXOpen::TaggedObjectCollection
60 {
61 private: TracerCollectionImpl * m_tracercollection_impl;
66 public:
68 tag_t Tag() const;
69 public: ~TracerCollection();
71 //lint -sem(NXOpen::AnimationDesigner::TracerCollection::iterator::copy,initializer)
72 class iterator : public std::iterator<std::forward_iterator_tag, NXOpen::AnimationDesigner::Tracer *>
73 {
74 public:
76 iterator() : m_context(nullptr), m_current(NULL_TAG)
77 {
78 // coverity[uninit_member]
79 } //lint !e1401 m_state is not initialized
80
81 explicit iterator(NXOpen::AnimationDesigner::TracerCollection *context) : m_context(context), m_current(NULL_TAG)
82 {
83 // coverity[uninit_member]
84 }//lint !e1401 m_state is not initialized
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 ANIMATIONDESIGNEROPENCPPEXPORT 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 ANIMATIONDESIGNEROPENCPPEXPORT 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::Part * part ,
150 );
156 (
157 NXOpen::Part * part ,
158 const NXString & name
159 );
165 (
166 NXOpen::Part * part ,
167 const char * name
168 );
169 }; //lint !e1712 default constructor not defined for class
170 }
171}
172#ifdef _MSC_VER
173#pragma warning(pop)
174#endif
175#ifdef __GNUC__
176#ifndef NX_NO_GCC_DEPRECATION_WARNINGS
177#pragma GCC diagnostic warning "-Wdeprecated-declarations"
178#endif
179#endif
180#undef EXPORTLIBRARY