NX Open C++ 参考指南 2406 v1.1
载入中...
搜索中...
未找到
SketchEvaluatorCollection.hxx
1//--------------------------------------------------------------------------
2// Copyright 2024 Siemens
3//--------------------------------------------------------------------------
4// Header for C++ interface to JA API
5//--------------------------------------------------------------------------
6//
7// Source File:
8// SketchEvaluatorCollection.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_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{
35 class Part;
36 class SketchEvaluator;
37 namespace Features
38 {
39 class Feature;
40 }
41 class SketchEvaluatorCollectionImpl;
48 {
49 private: SketchEvaluatorCollectionImpl * m_sketchevaluatorcollection_impl;
50 private: NXOpen::Part* m_owner;
52 public: explicit SketchEvaluatorCollection(NXOpen::Part *owner);
54 public:
56 tag_t Tag() const;
59 //lint -sem(NXOpen::SketchEvaluatorCollection::iterator::copy,initializer)
60 class iterator : public std::iterator<std::forward_iterator_tag, NXOpen::SketchEvaluator *>
61 {
62 public:
64 iterator() : m_context(nullptr), m_current(NULL_TAG)
65 {
66 // coverity[uninit_member]
67 } //lint !e1401 m_state 未初始化
68
69 explicit iterator(NXOpen::SketchEvaluatorCollection *context) : m_context(context), m_current(NULL_TAG)
70 {
71 // coverity[uninit_member]
72 }//lint !e1401 m_state 未初始化
74
75 iterator(const iterator &other): m_context(nullptr), m_current(NULL_TAG)
76 {
77 copy(other);
78 }
79
80 iterator &operator =(const iterator &other)
81 {
82 if (&other != this)
83 copy(other);
84 return *this;
85 }
86
87 bool operator ==(const iterator &other) const
88 {
89 return m_current == other.m_current && m_context == other.m_context;
90 }
91
92 bool operator !=(const iterator &other) const
93 {
94 return !operator == (other);
95 }
96
97 NXOPENCPPEXPORT value_type operator * () const;
99 iterator & operator ++()
100 {
101 next();
102 return *this;
103 }
104
105 iterator operator ++(int)
106 {
107 iterator tmp(*this);
108 ++*this;
109 return tmp;
110 }
111 private:
112 void copy(const iterator &other)
113 {
114 m_context = other.m_context;
115 m_current = other.m_current;
116 for (int i = 0; i < sizeof(m_state)/sizeof(m_state[0]); i++)
117 m_state[i] = other.m_state[i];
118 }
119 NXOPENCPPEXPORT void next();
121 tag_t m_current;
122 unsigned int m_state[8];
123 };
124
128 {
129 return iterator(this);
130 }
131
137 (
138 NXOpen::Features::Feature * varsweep
139 );
140 }; //lint !e1712 未定义类的默认构造函数
141}
142#ifdef _MSC_VER
143#pragma warning(pop)
144#endif
145#ifdef __GNUC__
146#ifndef NX_NO_GCC_DEPRECATION_WARNINGS
147#pragma GCC diagnostic warning "-Wdeprecated-declarations"
148#endif
149#endif
150#undef EXPORTLIBRARY