NX Open C++ 参考指南 2406 v1.1
载入中...
搜索中...
未找到
Annotations_FcfCollection.hxx
1//--------------------------------------------------------------------------
2// Copyright 2024 Siemens
3//--------------------------------------------------------------------------
4// C++ 接口到 JA API 的头文件
5//--------------------------------------------------------------------------
6//
7// 源文件:
8// Annotations_FcfCollection.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_FcfData.hxx>
23#include <NXOpen/Annotations_LeaderBundle.hxx>
24#include <NXOpen/Annotations_PmiData.hxx>
25#include <NXOpen/TaggedObjectCollection.hxx>
26#include <NXOpen/TaggedObject.hxx>
27#include <NXOpen/ugmath.hxx>
28#include <NXOpen/libnxopencpp_annotations_exports.hxx>
29#ifdef _MSC_VER
30#pragma warning(push)
31#pragma warning(disable:4996)
32#endif
33#ifdef __GNUC__
34#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
35#endif
36namespace NXOpen
37{
38 namespace Annotations
39 {
40 class FcfCollection;
41 }
42 namespace Annotations
43 {
45 }
46 namespace Annotations
47 {
48 class Fcf;
49 }
50 namespace Annotations
51 {
52 class FcfData;
53 }
54 namespace Annotations
55 {
56 class LeaderBundle;
57 }
58 namespace Annotations
59 {
60 class PmiData;
61 }
62 class Xform;
63 namespace Annotations
64 {
65 class FcfCollectionImpl;
69 class NXOPENCPP_ANNOTATIONSEXPORT FcfCollection : public NXOpen::TaggedObjectCollection
70 {
71 private: FcfCollectionImpl * m_fcfcollection_impl;
76 public:
78 tag_t Tag() const;
79 public: ~FcfCollection();
81 //lint -sem(NXOpen::Annotations::FcfCollection::iterator::copy,initializer)
82 class iterator : public std::iterator<std::forward_iterator_tag, NXOpen::Annotations::Fcf *>
83 {
84 public:
86 iterator() : m_context(nullptr), m_current(NULL_TAG)
87 {
88 // coverity[uninit_member]
89 } //lint !e1401 m_state is not initialized
90
91 explicit iterator(NXOpen::Annotations::FcfCollection *context) : m_context(context), m_current(NULL_TAG)
92 {
93 // coverity[uninit_member]
94 }//lint !e1401 m_state is not initialized
96
97 iterator(const iterator &other): m_context(nullptr), m_current(NULL_TAG)
98 {
99 copy(other);
100 }
101
102 iterator &operator =(const iterator &other)
103 {
104 if (&other != this)
105 copy(other);
106 return *this;
107 }
108
109 bool operator ==(const iterator &other) const
110 {
111 return m_current == other.m_current && m_context == other.m_context;
112 }
113
114 bool operator !=(const iterator &other) const
115 {
116 return !operator == (other);
117 }
118
119 NXOPENCPP_ANNOTATIONSEXPORT value_type operator * () const;
121 iterator & operator ++()
122 {
123 next();
124 return *this;
125 }
126
127 iterator operator ++(int)
128 {
129 iterator tmp(*this);
130 ++*this;
131 return tmp;
132 }
133 private:
134 void copy(const iterator &other)
135 {
136 m_context = other.m_context;
137 m_current = other.m_current;
138 for (int i = 0; i < sizeof(m_state)/sizeof(m_state[0]); i++)
139 m_state[i] = other.m_state[i];
140 }
141 NXOPENCPP_ANNOTATIONSEXPORT void next();
143 tag_t m_current;
144 unsigned int m_state[8];
145 };
146
150 {
151 return iterator(this);
152 }
153
157 (
158 );
163 (
166 NXOpen::Xform * annotationPlane ,
167 const NXOpen::Point3d & origin ,
171 );
172 }; //lint !e1712 default constructor not defined for class
173 }
174}
175#ifdef _MSC_VER
176#pragma warning(pop)
177#endif
178#ifdef __GNUC__
179#ifndef NX_NO_GCC_DEPRECATION_WARNINGS
180#pragma GCC diagnostic warning "-Wdeprecated-declarations"
181#endif
182#endif
183#undef EXPORTLIBRARY