NX Open C++ 参考指南 2406 v1.1
载入中...
搜索中...
未找到
ParabolaCollection.hxx
1//--------------------------------------------------------------------------
2// Copyright 2024 Siemens
3//--------------------------------------------------------------------------
4// C++接口头文件:抛物线API
5//--------------------------------------------------------------------------
6//
7// 源文件:
8// ParabolaCollection.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 BasePart;
36 class Parabola;
37 class ParabolaCollectionImpl;
42 {
43 private: ParabolaCollectionImpl * m_parabolacollection_impl;
44 private: NXOpen::BasePart* m_owner;
46 public: explicit ParabolaCollection(NXOpen::BasePart *owner);
48 public:
50 tag_t Tag() const;
51 public: ~ParabolaCollection();
53 //lint -sem(NXOpen::ParabolaCollection::iterator::copy,initializer)
54 class iterator : public std::iterator<std::forward_iterator_tag, NXOpen::Parabola *>
55 {
56 public:
58 iterator() : m_context(nullptr), m_current(NULL_TAG)
59 {
60 // coverity[uninit_member]
61 } //lint !e1401 m_state未初始化
62
63 explicit iterator(NXOpen::ParabolaCollection *context) : m_context(context), m_current(NULL_TAG)
64 {
65 // coverity[uninit_member]
66 }//lint !e1401 m_state未初始化
68
69 iterator(const iterator &other): m_context(nullptr), m_current(NULL_TAG)
70 {
71 copy(other);
72 }
73
74 iterator &operator =(const iterator &other)
75 {
76 if (&other != this)
77 copy(other);
78 return *this;
79 }
80
81 bool operator ==(const iterator &other) const
82 {
83 return m_current == other.m_current && m_context == other.m_context;
84 }
85
86 bool operator !=(const iterator &other) const
87 {
88 return !operator == (other);
89 }
90
91 NXOPENCPPEXPORT value_type operator * () const;
93 iterator & operator ++()
94 {
95 next();
96 return *this;
97 }
98
99 iterator operator ++(int)
100 {
101 iterator tmp(*this);
102 ++*this;
103 return tmp;
104 }
105 private:
106 void copy(const iterator &other)
107 {
108 m_context = other.m_context;
109 m_current = other.m_current;
110 for (int i = 0; i < sizeof(m_state)/sizeof(m_state[0]); i++)
111 m_state[i] = other.m_state[i];
112 }
113 NXOPENCPPEXPORT void next();
115 tag_t m_current;
116 unsigned int m_state[8];
117 };
118
122 {
123 return iterator(this);
124 }
125 }; //lint !e1712 类未定义默认构造函数
126}
127#ifdef _MSC_VER
128#pragma warning(pop)
129#endif
130#ifdef __GNUC__
131#ifndef NX_NO_GCC_DEPRECATION_WARNINGS
132#pragma GCC diagnostic warning "-Wdeprecated-declarations"
133#endif
134#endif
135#undef EXPORTLIBRARY