NX Open C++ 参考指南 2406 v1.1
载入中...
搜索中...
未找到
Routing_StockDataCollection.hxx
1//--------------------------------------------------------------------------
2// Copyright 2024 Siemens
3//--------------------------------------------------------------------------
4// 布线库数据集合JA API的C++接口头文件
5//--------------------------------------------------------------------------
6//
7// 源文件:
8// Routing_StockDataCollection.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/TaggedObjectCollection.hxx>
23#include <NXOpen/Routing_CharacteristicList.hxx>
24#include <NXOpen/Routing_StockData.hxx>
25#include <NXOpen/TaggedObject.hxx>
26#include <NXOpen/libnxopencpp_routing_exports.hxx>
27#ifdef _MSC_VER
28#pragma warning(push)
29#pragma warning(disable:4996)
30#endif
31#ifdef __GNUC__
32#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
33#endif
34namespace NXOpen
35{
36 namespace Routing
37 {
39 }
40 namespace Routing
41 {
42 class RouteManager;
43 }
44 namespace Routing
45 {
46 class StockData;
47 }
48 namespace Routing
49 {
50 class Anchor;
51 }
52 namespace Routing
53 {
55 }
56 namespace Routing
57 {
58 class CrossSection;
59 }
60 namespace Routing
61 {
62 class StockDataCollectionImpl;
67 class NXOPENCPP_ROUTINGEXPORT StockDataCollection : public NXOpen::TaggedObjectCollection
68 {
69 private: StockDataCollectionImpl * m_stockdatacollection_impl;
70 private: NXOpen::Routing::RouteManager* m_owner;
74 public:
76 tag_t Tag() const;
77 public: ~StockDataCollection();
79 //lint -sem(NXOpen::Routing::StockDataCollection::iterator::copy,initializer)
80 class iterator : public std::iterator<std::forward_iterator_tag, NXOpen::Routing::StockData *>
81 {
82 public:
84 iterator() : m_context(nullptr), m_current(NULL_TAG)
85 {
86 // coverity[uninit_member]
87 } //lint !e1401 m_state is not initialized
88
89 explicit iterator(NXOpen::Routing::StockDataCollection *context) : m_context(context), m_current(NULL_TAG)
90 {
91 // coverity[uninit_member]
92 }//lint !e1401 m_state is not initialized
94
95 iterator(const iterator &other): m_context(nullptr), m_current(NULL_TAG)
96 {
97 copy(other);
98}
99
100 iterator &operator =(const iterator &other)
101 {
102 if (&other != this)
103 copy(other);
104 return *this;
105 }
106
107 bool operator ==(const iterator &other) const
108 {
109 return m_current == other.m_current && m_context == other.m_context;
110 }
111
112 bool operator !=(const iterator &other) const
113 {
114 return !operator == (other);
115 }
116
117 NXOPENCPP_ROUTINGEXPORT value_type operator * () const;
119 iterator & operator ++()
120 {
121 next();
122 return *this;
123 }
124
125 iterator operator ++(int)
126 {
127 iterator tmp(*this);
128 ++*this;
129 return tmp;
130 }
131 private:
132 void copy(const iterator &other)
133 {
134 m_context = other.m_context;
135 m_current = other.m_current;
136 for (int i = 0; i < sizeof(m_state)/sizeof(m_state[0]); i++)
137 m_state[i] = other.m_state[i];
138 }
139 NXOPENCPP_ROUTINGEXPORT void next();
141 tag_t m_current;
142 unsigned int m_state[8];
143 };
144
148 {
149 return iterator(this);
150 }
151
170 (
172 );
183 (
184 );
191 (
192 );
203 public: void LoadStockData
204 (
205 const NXString & partName ,
206 const NXString & memberName ,
207 NXOpen::Routing::StockStyle stockStyle ,
208 NXOpen::Routing::StockData ** stockData ,
209 NXOpen::Routing::Anchor ** anchor ,
210 NXOpen::Routing::CrossSection ** crossSection
211 );
223 (
224 const char * partName ,
225 const char * memberName ,
226 NXOpen::Routing::StockStyle stockStyle ,
227 NXOpen::Routing::StockData ** stockData ,
228 NXOpen::Routing::Anchor ** anchor ,
229 NXOpen::Routing::CrossSection ** crossSection
230 );
231 }; //lint !e1712 default constructor not defined for class
232 }
233}
234#ifdef _MSC_VER
235#pragma warning(pop)
236#endif
237#ifdef __GNUC__
238#ifndef NX_NO_GCC_DEPRECATION_WARNINGS
239#pragma GCC diagnostic warning "-Wdeprecated-declarations"
240#endif
241#endif
242#undef EXPORTLIBRARY