NX Open C++ 参考指南 2406 v1.1
载入中...
搜索中...
未找到
DraftPointDataCollection.hxx
1//--------------------------------------------------------------------------
2// Copyright 2024 Siemens
3//--------------------------------------------------------------------------
4// C++接口JA API的头文件
5//--------------------------------------------------------------------------
6//
7// 源文件:
8// DraftPointDataCollection.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_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{
35 class Part;
36 namespace GeometricUtilities
37 {
38 class DraftPointData;
39 }
40 class Point;
41 class DraftPointDataCollectionImpl;
46 {
47 private: DraftPointDataCollectionImpl * m_draftpointdatacollection_impl;
48 private: NXOpen::Part* m_owner;
50 public: explicit DraftPointDataCollection(NXOpen::Part *owner);
52 public:
54 tag_t Tag() const;
57 //lint -sem(NXOpen::DraftPointDataCollection::iterator::copy,initializer)
58 class iterator : public std::iterator<std::forward_iterator_tag, NXOpen::GeometricUtilities::DraftPointData *>
59 {
60 public:
62 iterator() : m_context(nullptr), m_current(NULL_TAG)
63 {
64 // coverity[uninit_member]
65 } //lint !e1401 m_state未初始化
66
67 explicit iterator(NXOpen::DraftPointDataCollection *context) : m_context(context), m_current(NULL_TAG)
68 {
69 // coverity[uninit_member]
70 }//lint !e1401 m_state未初始化
72
73 iterator(const iterator &other): m_context(nullptr), m_current(NULL_TAG)
74 {
75 copy(other);
76 }
77
78 iterator &operator =(const iterator &other)
79 {
80 if (&other != this)
81 copy(other);
82 return *this;
83 }
84
85 bool operator ==(const iterator &other) const
86 {
87 return m_current == other.m_current && m_context == other.m_context;
88 }
89
90 bool operator !=(const iterator &other) const
91 {
92 return !operator == (other);
93 }
94
95 NXOPENCPPEXPORT value_type operator * () const;
97 iterator & operator ++()
98 {
99 next();
100 return *this;
101 }
102
103 iterator operator ++(int)
104 {
105 iterator tmp(*this);
106 ++*this;
107 return tmp;
108 }
109 private:
110 void copy(const iterator &other)
111 {
112 m_context = other.m_context;
113 m_current = other.m_current;
114 for (int i = 0; i < sizeof(m_state)/sizeof(m_state[0]); i++)
115 m_state[i] = other.m_state[i];
116 }
117 NXOPENCPPEXPORT void next();
119 tag_t m_current;
120 unsigned int m_state[8];
121 };
122
126 {
127 return iterator(this);
128 }
129
133 (
134 NXOpen::Point * point ,
135 const NXString & angle
136 );
141 (
142 NXOpen::Point * point ,
143 const char * angle
144 );
145 }; //lint !e1712 类未定义默认构造函数
146}
147#ifdef _MSC_VER
148#pragma warning(pop)
149#endif
150#ifdef __GNUC__
151#ifndef NX_NO_GCC_DEPRECATION_WARNINGS
152#pragma GCC diagnostic warning "-Wdeprecated-declarations"
153#endif
154#endif
155#undef EXPORTLIBRARY