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