NX Open C++ 参考指南 2406 v1.1
载入中...
搜索中...
未找到
Annotations_PmiWaveCollection.hxx
1//--------------------------------------------------------------------------
2// Copyright 2024 Siemens
3//--------------------------------------------------------------------------
4// C++接口访问JA API的头文件
5//--------------------------------------------------------------------------
6//
7// 源文件:
8// Annotations_PmiWaveCollection.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/Annotations_PmiWaveLinkBuilder.hxx>
23#include <NXOpen/TaggedObjectCollection.hxx>
24#include <NXOpen/TaggedObject.hxx>
25#include <NXOpen/libnxopencpp_annotations_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 Annotations
36 {
38 }
39 namespace Annotations
40 {
41 class PmiManager;
42 }
43 namespace Annotations
44 {
45 class Pmi;
46 }
47 namespace Annotations
48 {
49 class Annotation;
50 }
51 namespace Annotations
52 {
54 }
55 namespace Annotations
56 {
57 class PmiWaveCollectionImpl;
61 class NXOPENCPP_ANNOTATIONSEXPORT PmiWaveCollection : public NXOpen::TaggedObjectCollection
62 {
63 private: PmiWaveCollectionImpl * m_pmiwavecollection_impl;
64 private: NXOpen::Annotations::PmiManager* m_owner;
68 public:
70 tag_t Tag() const;
71 public: ~PmiWaveCollection();
73 //lint -sem(NXOpen::Annotations::PmiWaveCollection::iterator::copy,initializer)
74 class iterator : public std::iterator<std::forward_iterator_tag, NXOpen::Annotations::Pmi *>
75 {
76 public:
78 iterator() : m_context(nullptr), m_current(NULL_TAG)
79 {
80 // coverity[uninit_member]
81 } //lint !e1401 m_state is not initialized
82
83 explicit iterator(NXOpen::Annotations::PmiWaveCollection *context) : m_context(context), m_current(NULL_TAG)
84 {
85 // coverity[uninit_member]
86 }//lint !e1401 m_state is not initialized
88
89 iterator(const iterator &other): m_context(nullptr), m_current(NULL_TAG)
90 {
91 copy(other);
92 }
93
94 iterator &operator =(const iterator &other)
95 {
96 if (&other != this)
97 copy(other);
98 return *this;
99 }
100
101 bool operator ==(const iterator &other) const
102 {
103 return m_current == other.m_current && m_context == other.m_context;
104 }
105
106 bool operator !=(const iterator &other) const
107 {
108 return !operator == (other);
109 }
110
111 NXOPENCPP_ANNOTATIONSEXPORT value_type operator * () const;
113 iterator & operator ++()
114 {
115 next();
116 return *this;
117 }
118
119 iterator operator ++(int)
120 {
121 iterator tmp(*this);
122 ++*this;
123 return tmp;
124 }
125 private:
126 void copy(const iterator &other)
127 {
128 m_context = other.m_context;
129 m_current = other.m_current;
130 for (int i = 0; i < sizeof(m_state)/sizeof(m_state[0]); i++)
131 m_state[i] = other.m_state[i];
132 }
133 NXOPENCPP_ANNOTATIONSEXPORT void next();
135 tag_t m_current;
136 unsigned int m_state[8];
137 };
138
142 {
143 return iterator(this);
144 }
145
149 (
151 );
152 }; //lint !e1712 default constructor not defined for class
153 }
154}
155#ifdef _MSC_VER
156#pragma warning(pop)
157#endif
158#ifdef __GNUC__
159#ifndef NX_NO_GCC_DEPRECATION_WARNINGS
160#pragma GCC diagnostic warning "-Wdeprecated-declarations"
161#endif
162#endif
163#undef EXPORTLIBRARY