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