NX Open C++ 参考指南 2406 v1.1
载入中...
搜索中...
未找到
ExpressionGroupCollection.hxx
1//--------------------------------------------------------------------------
2// Copyright 2024 Siemens
3//--------------------------------------------------------------------------
4// C++接口到JA API的头文件
5//--------------------------------------------------------------------------
6//
7// 源文件:
8// ExpressionGroupCollection.ja
9//
10// 生成方式:
11// apiwrap
12//
13// 警告:
14// 该文件为自动生成文件 - 请勿手动编辑
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/ExpressionCollection.hxx>
23#include <NXOpen/TaggedObjectCollection.hxx>
24#include <NXOpen/TaggedObject.hxx>
25#include <NXOpen/libnxopencpp_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{
36 class BasePart;
37 class ExpressionGroup;
38 class Expression;
39 class ExpressionGroupCollectionImpl;
44 {
45 private: ExpressionGroupCollectionImpl * m_expressiongroupcollection_impl;
46 private: NXOpen::BasePart* m_owner;
48 public: explicit ExpressionGroupCollection(NXOpen::BasePart *owner);
50 public:
52 tag_t Tag() const;
55 //lint -sem(NXOpen::ExpressionGroupCollection::iterator::copy,initializer)
56 class iterator : public std::iterator<std::forward_iterator_tag, NXOpen::ExpressionGroup *>
57 {
58 public:
60 iterator() : m_context(nullptr), m_current(NULL_TAG)
61 {
62 // coverity[uninit_member]
63 } //lint !e1401 m_state 未初始化
64
65 explicit iterator(NXOpen::ExpressionGroupCollection *context) : m_context(context), m_current(NULL_TAG)
66 {
67 // coverity[uninit_member]
68 }//lint !e1401 m_state 未初始化
70
71 iterator(const iterator &other): m_context(nullptr), m_current(NULL_TAG)
72 {
73 copy(other);
74 }
75
76 iterator &operator =(const iterator &other)
77 {
78 if (&other != this)
79 copy(other);
80 return *this;
81 }
82
83 bool operator ==(const iterator &other) const
84 {
85 return m_current == other.m_current && m_context == other.m_context;
86 }
87
88 bool operator !=(const iterator &other) const
89 {
90 return !operator == (other);
91 }
92
93 NXOPENCPPEXPORT value_type operator * () const;
95 iterator & operator ++()
96{
97 next();
98 return *this;
99 }
100
101 iterator operator ++(int)
102 {
103 iterator tmp(*this);
104 ++*this;
105 return tmp;
106 }
107 private:
108 void copy(const iterator &other)
109 {
110 m_context = other.m_context;
111 m_current = other.m_current;
112 for (int i = 0; i < sizeof(m_state)/sizeof(m_state[0]); i++)
113 m_state[i] = other.m_state[i];
114 }
115 NXOPENCPPEXPORT void next();
117 tag_t m_current;
118 unsigned int m_state[8];
119 };
120
124 {
125 return iterator(this);
126 }
127
131 (
132 const NXString & name
133 );
138 (
139 const char * name
140 );
144 public: void Rename
145 (
146 NXOpen::ExpressionGroup * expressionGroup ,
147 const NXString & newName
148 );
153 (
154 NXOpen::ExpressionGroup * expressionGroup ,
155 const char * newName
156 );
164 (
165 const NXString & journalIdentifier
166 );
174 (
175 const char * journalIdentifier
176 );
180 public: void Delete
181 (
182 const std::vector<NXOpen::ExpressionGroup *> & expressionGroup
183 );
188 (
189 NXOpen::Expression * expression
190 );
195 public: NX_DEPRECATED("Deprecated in NX2406.0.0. This functionality is no longer supported.") void SetAllGroupsVisible
196 (
197 );
201 public: void SetActive
202 (
203 NXOpen::ExpressionGroup * expressionGroup
204 );
209 (
210 );
215 (
216 );
221 (
222 );
226 public: bool CheckName
227 (
228 const NXString & name
229 );
234 (
235 const char * name
236 );
242 (
243 const std::vector<NXOpen::ExpressionGroup *> & expressionGroups ,
244 const NXString & fileName ,
245 NXOpen::ExpressionCollection::SortType sortType
246 );
252 (
253 const std::vector<NXOpen::ExpressionGroup *> & expressionGroups ,
254 const char * fileName ,
255 NXOpen::ExpressionCollection::SortType sortType
256 );
257 }; //lint !e1712 default constructor not defined for class
258}
259#ifdef _MSC_VER
260#pragma warning(pop)
261#endif
262#ifdef __GNUC__
263#ifndef NX_NO_GCC_DEPRECATION_WARNINGS
264#pragma GCC diagnostic warning "-Wdeprecated-declarations"
265#endif
266#endif
267#undef EXPORTLIBRARY