NX Open C++ 参考指南 2406 v1.1
载入中...
搜索中...
未找到
Tooling_CoolingPatternCollection.hxx
1//--------------------------------------------------------------------------
2// Copyright 2024 Siemens
3//--------------------------------------------------------------------------
4// Header for C++ interface to JA API
5//--------------------------------------------------------------------------
6//
7// Source File:
8// Tooling_CoolingPatternCollection.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/Tooling_CoolingPatternBuilder.hxx>
25#include <NXOpen/libnxopencpp_tooling_exports.hxx>
26#ifdef _MSC_VER
27#pragma warning(push)
28#pragma warning(disable:4996)
29#endif
30#ifdef __GNUC__
31#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
32#endif
33namespace NXOpen
34{
35 namespace Tooling
36 {
38 }
39 namespace Tooling
40 {
41 class ToolingManager;
42 }
43 namespace Tooling
44 {
46 }
47 namespace Tooling
48 {
49 class CoolingPatternCollectionImpl;
53 class NXOPENCPP_TOOLINGEXPORT CoolingPatternCollection : public NXOpen::TaggedObjectCollection
54 {
55 private: CoolingPatternCollectionImpl * m_coolingpatterncollection_impl;
56 private: NXOpen::Tooling::ToolingManager* m_owner;
60 public:
62 tag_t Tag() const;
65 //lint -sem(NXOpen::Tooling::CoolingPatternCollection::iterator::copy,initializer)
66 class iterator : public std::iterator<std::forward_iterator_tag, NXOpen::Tooling::CoolingPatternBuilder *>
67 {
68 public:
70 iterator() : m_context(nullptr), m_current(NULL_TAG)
71 {
72 // coverity[uninit_member]
73 } //lint !e1401 m_state is not initialized
74
75 explicit iterator(NXOpen::Tooling::CoolingPatternCollection *context) : m_context(context), m_current(NULL_TAG)
76 {
77 // coverity[uninit_member]
78 }//lint !e1401 m_state is not initialized
80
81 iterator(const iterator &other): m_context(nullptr), m_current(NULL_TAG)
82 {
83 copy(other);
84 }
85
86 iterator &operator =(const iterator &other)
87 {
88 if (&other != this)
89 copy(other);
90 return *this;
91 }
92
93 bool operator ==(const iterator &other) const
94 {
95 return m_current == other.m_current && m_context == other.m_context;
96 }
97
98 bool operator !=(const iterator &other) const
99 {
100 return !operator == (other);
101 }
102
103 NXOPENCPP_TOOLINGEXPORT value_type operator * () const;
105 iterator & operator ++()
106 {
107 next();
108 return *this;
109 }
110
111 iterator operator ++(int)
112 {
113 iterator tmp(*this);
114 ++*this;
115 return tmp;
116 }
117 private:
118 void copy(const iterator &other)
119 {
120 m_context = other.m_context;
121 m_current = other.m_current;
122 for (int i = 0; i < sizeof(m_state)/sizeof(m_state[0]); i++)
123 m_state[i] = other.m_state[i];
124 }
125 NXOPENCPP_TOOLINGEXPORT void next();
127 tag_t m_current;
128 unsigned int m_state[8];
129 };
130
134 {
135 return iterator(this);
136 }
137
141 (
142 );
143 }; //lint !e1712 default constructor not defined for class
144 }
145}
146#ifdef _MSC_VER
147#pragma warning(pop)
148#endif
149#ifdef __GNUC__
150#ifndef NX_NO_GCC_DEPRECATION_WARNINGS
151#pragma GCC diagnostic warning "-Wdeprecated-declarations"
152#endif
153#endif
154#undef EXPORTLIBRARY