NX Open C++ 参考指南 2406 v1.1
载入中...
搜索中...
未找到
Tooling_MoldDesignCollection.hxx
1//--------------------------------------------------------------------------
2// Copyright 2024 Siemens
3//--------------------------------------------------------------------------
4// Header for C++ interface to JA API
5//--------------------------------------------------------------------------
6//
7// Source File:
8// Tooling_MoldDesignCollection.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_tooling_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 namespace Tooling
35 {
37 }
38 namespace Tooling
39 {
40 class ToolingManager;
41 }
42 namespace Tooling
43 {
44 class MoldDesign;
45 }
47 namespace Tooling
48 {
50 }
51 namespace Tooling
52 {
54 }
55 namespace Tooling
56 {
57 class MoldDesignCollectionImpl;
61 class NXOPENCPP_TOOLINGEXPORT MoldDesignCollection : public NXOpen::TaggedObjectCollection
62 {
63 private: MoldDesignCollectionImpl * m_molddesigncollection_impl;
64 private: NXOpen::Tooling::ToolingManager* m_owner;
68 public:
70 tag_t Tag() const;
71 public: ~MoldDesignCollection();
73 //lint -sem(NXOpen::Tooling::MoldDesignCollection::iterator::copy,initializer)
74 class iterator : public std::iterator<std::forward_iterator_tag, NXOpen::Tooling::MoldDesign *>
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::Tooling::MoldDesignCollection *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_TOOLINGEXPORT 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_TOOLINGEXPORT void next();
135 tag_t m_current;
136 unsigned int m_state[8];
137 };
138
142 {
143 return iterator(this);
144 }
145
149 (
150 );
155 (
156 NXOpen::DisplayableObject * moldex3DResult
157 );
158 }; //lint !e1712 default constructor not defined for class
159 }
160}
161#ifdef _MSC_VER
162#pragma warning(pop)
163#endif
164#ifdef __GNUC__
165#ifndef NX_NO_GCC_DEPRECATION_WARNINGS
166#pragma GCC diagnostic warning "-Wdeprecated-declarations"
167#endif
168#endif
169#undef EXPORTLIBRARY