NX Open C++ 参考指南 2406 v1.1
载入中...
搜索中...
未找到
Tooling_QuickQuotationCollection.hxx
1//--------------------------------------------------------------------------
2// Copyright 2024 Siemens
3//--------------------------------------------------------------------------
4// Header for C++ interface to JA API
5//--------------------------------------------------------------------------
6//
7// Source File:
8// Tooling_QuickQuotationCollection.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 {
48 class QuickQuotationCollectionImpl;
51 class NXOPENCPP_TOOLINGEXPORT QuickQuotationCollection : public NXOpen::TaggedObjectCollection
52 {
53 private: QuickQuotationCollectionImpl * m_quickquotationcollection_impl;
54 private: NXOpen::Tooling::ToolingManager* m_owner;
58 public:
60 tag_t Tag() const;
63 //lint -sem(NXOpen::Tooling::QuickQuotationCollection::iterator::copy,initializer)
64 class iterator : public std::iterator<std::forward_iterator_tag, NXOpen::Tooling::QuickQuotationBuilder *>
65 {
66 public:
68 iterator() : m_context(nullptr), m_current(NULL_TAG)
69 {
70 // coverity[uninit_member]
71 } //lint !e1401 m_state is not initialized
72
73 explicit iterator(NXOpen::Tooling::QuickQuotationCollection *context) : m_context(context), m_current(NULL_TAG)
74 {
75 // coverity[uninit_member]
76 }//lint !e1401 m_state is not initialized
78
79 iterator(const iterator &other): m_context(nullptr), m_current(NULL_TAG)
80 {
81 copy(other);
82 }
83
84 iterator &operator =(const iterator &other)
85 {
86 if (&other != this)
87 copy(other);
88 return *this;
89 }
90
91 bool operator ==(const iterator &other) const
92 {
93 return m_current == other.m_current && m_context == other.m_context;
94 }
95
96 bool operator !=(const iterator &other) const
97 {
98 return !operator == (other);
99 }
100
101 NXOPENCPP_TOOLINGEXPORT value_type operator * () const;
103 iterator & operator ++()
104 {
105 next();
106 return *this;
107 }
108
109 iterator operator ++(int)
110 {
111 iterator tmp(*this);
112 ++*this;
113 return tmp;
114 }
115 private:
116 void copy(const iterator &other)
117 {
118 m_context = other.m_context;
119 m_current = other.m_current;
120 for (int i = 0; i < sizeof(m_state)/sizeof(m_state[0]); i++)
121 m_state[i] = other.m_state[i];
122 }
123 NXOPENCPP_TOOLINGEXPORT void next();
125 tag_t m_current;
126 unsigned int m_state[8];
127 };
128
132 {
133 return iterator(this);
134 }
135
139 (
140 );
141 }; //lint !e1712 default constructor not defined for class
142 }
143}
144#ifdef _MSC_VER
145#pragma warning(pop)
146#endif
147#ifdef __GNUC__
148#ifndef NX_NO_GCC_DEPRECATION_WARNINGS
149#pragma GCC diagnostic warning "-Wdeprecated-declarations"
150#endif
151#endif
152#undef EXPORTLIBRARY