NX Open C++ 参考指南 2406 v1.1
载入中...
搜索中...
未找到
SplineCollection.hxx
1//--------------------------------------------------------------------------
2// Copyright 2024 Siemens
3//--------------------------------------------------------------------------
4// Header for C++ interface to JA API
5//--------------------------------------------------------------------------
6//
7// Source File:
8// SplineCollection.ja
9//
10// Generated by:
11// apiwrap
12//
13// WARNING:
14// This file is automatically generated - do not edit by hand
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{
34 class SplineCollection;
35 class BasePart;
36 class Spline;
37 class SplineCollectionImpl;
41 class NXOPENCPPEXPORT SplineCollection : public NXOpen::TaggedObjectCollection
42 {
43 private: SplineCollectionImpl * m_splinecollection_impl;
44 private: NXOpen::BasePart* m_owner;
46 public: explicit SplineCollection(NXOpen::BasePart *owner);
48 public:
50 tag_t Tag() const;
51 public: ~SplineCollection();
53 //lint -sem(NXOpen::SplineCollection::iterator::copy,initializer)
54 class iterator : public std::iterator<std::forward_iterator_tag, NXOpen::Spline *>
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::SplineCollection *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();
114 NXOpen::SplineCollection *m_context;
115 tag_t m_current;
116 unsigned int m_state[8];
117 };
118
122 {
123 return iterator(this);
124 }
125
131 (
132 const NXString & journalIdentifier
133 );
140 (
141 const char * journalIdentifier
142 );
143 }; //lint !e1712 类未定义默认构造函数
144}
145#ifdef _MSC_VER
146#pragma warning(pop)
147#endif
148#ifdef __GNUC__
149#ifndef NX_NO_GCC_DEPRECATION_WARNINGS
150#pragma GCC diagnostic warning "-Wdeprecated-declarations"
151#endif
152#endif
153#undef EXPORTLIBRARY