NX Open C++ 参考指南 2406 v1.1
载入中...
搜索中...
未找到
Tooling_ToolingDrawingCollection.hxx
1//--------------------------------------------------------------------------
2// Copyright 2024 Siemens
3//--------------------------------------------------------------------------
4// Header for C++ interface to JA API
5//--------------------------------------------------------------------------
6//
7// Source File:
8// Tooling_ToolingDrawingCollection.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 {
45 }
46 namespace Tooling
47 {
49 }
50 namespace Tooling
51 {
53 }
54 namespace Tooling
55 {
57 }
58 namespace Tooling
59 {
61 }
62 namespace Tooling
63 {
64 class ToolingDrawingCollectionImpl;
69 class NXOPENCPP_TOOLINGEXPORT ToolingDrawingCollection : public NXOpen::TaggedObjectCollection
70 {
71 private: ToolingDrawingCollectionImpl * m_toolingdrawingcollection_impl;
72 private: NXOpen::Tooling::ToolingManager* m_owner;
76 public:
78 tag_t Tag() const;
81 //lint -sem(NXOpen::Tooling::ToolingDrawingCollection::iterator::copy,initializer)
82 class iterator : public std::iterator<std::forward_iterator_tag, NXOpen::Tooling::CompDrawingBuilder *>
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::Tooling::ToolingDrawingCollection *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_TOOLINGEXPORT 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_TOOLINGEXPORT void next();
143 tag_t m_current;
144 unsigned int m_state[8];
145 };
146
150 {
151 return iterator(this);
152 }
153
158 (
159 );
165 (
166 );
172 (
173 );
179 (
180 );
186 (
187 );
188 }; //lint !e1712 default constructor not defined for class
189 }
190}
191#ifdef _MSC_VER
192#pragma warning(pop)
193#endif
194#ifdef __GNUC__
195#ifndef NX_NO_GCC_DEPRECATION_WARNINGS
196#pragma GCC diagnostic warning "-Wdeprecated-declarations"
197#endif
198#endif
199#undef EXPORTLIBRARY