NX Open C++ 参考指南 2406 v1.1
载入中...
搜索中...
未找到
Routing_FillerCollection.hxx
1//--------------------------------------------------------------------------
2// Copyright 2024 Siemens
3//--------------------------------------------------------------------------
4// JA API的C++接口头文件
5//--------------------------------------------------------------------------
6//
7// 源文件:
8// Routing_FillerCollection.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/TaggedObject.hxx>
24#include <NXOpen/libnxopencpp_routing_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 Routing
35 {
36 class FillerCollection;
37 }
38 namespace Routing
39 {
40 class RouteManager;
41 }
42 namespace Routing
43 {
44 class Filler;
45 }
46 namespace Routing
47 {
48 class Anchor;
49 }
50 namespace Routing
51 {
52 class CrossSection;
53 }
54 namespace Routing
55 {
56 class ISegment;
57 }
58 namespace Routing
59 {
60 class Stock;
61 }
62 namespace Routing
63 {
64 class StockData;
65 }
66 namespace Routing
67 {
68 class FillerCollectionImpl;
73 class NXOPENCPP_ROUTINGEXPORT FillerCollection : public NXOpen::TaggedObjectCollection
74 {
75 private: FillerCollectionImpl * m_fillercollection_impl;
76 private: NXOpen::Routing::RouteManager* m_owner;
78 public: explicit FillerCollection(NXOpen::Routing::RouteManager *owner);
80 public:
82 tag_t Tag() const;
83 public: ~FillerCollection();
85 //lint -sem(NXOpen::Routing::FillerCollection::iterator::copy,initializer)
86 class iterator : public std::iterator<std::forward_iterator_tag, NXOpen::Routing::Filler *>
87 {
88 public:
90 iterator() : m_context(nullptr), m_current(NULL_TAG)
91 {
92 // coverity[uninit_member]
93 } //lint !e1401 m_state未初始化
94
95 explicit iterator(NXOpen::Routing::FillerCollection *context) : m_context(context), m_current(NULL_TAG)
96 {
97 // coverity[uninit_member]
98 }//lint !e1401 m_state未初始化
100
101 iterator(const iterator &other): m_context(nullptr), m_current(NULL_TAG)
102 {
103 copy(other);
104 }
105
106 iterator &operator =(const iterator &other)
107 {
108 if (&other != this)
109 copy(other);
110 return *this;
111 }
112
113 bool operator ==(const iterator &other) const
114 {
115 return m_current == other.m_current && m_context == other.m_context;
116 }
117
118 bool operator !=(const iterator &other) const
119 {
120 return !operator == (other);
121 }
122
123 NXOPENCPP_ROUTINGEXPORT value_type operator * () const;
125 iterator & operator ++()
126 {
127 next();
128 return *this;
129 }
130
131 iterator operator ++(int)
132 {
133 iterator tmp(*this);
134 ++*this;
135 return tmp;
136 }
137 private:
138 void copy(const iterator &other)
139 {
140 m_context = other.m_context;
141 m_current = other.m_current;
142 for (int i = 0; i < sizeof(m_state)/sizeof(m_state[0]); i++)
143 m_state[i] = other.m_state[i];
144 }
145 NXOPENCPP_ROUTINGEXPORT void next();
147 tag_t m_current;
148 unsigned int m_state[8];
149 };
150
154 {
155 return iterator(this);
156 }
157
162 public: std::vector<NXOpen::Routing::Stock *> CreateStock
163 (
164 NXOpen::Routing::StockData * stockData ,
165 NXOpen::Routing::Anchor * anchor ,
167 NXOpen::Routing::CrossSection * crossSection ,
169 const std::vector<NXOpen::Routing::ISegment *> & segments
170 );
171 }; //lint !e1712 类未定义默认构造函数
172 }
173}
174#ifdef _MSC_VER
175#pragma warning(pop)
176#endif
177#ifdef __GNUC__
178#ifndef NX_NO_GCC_DEPRECATION_WARNINGS
179#pragma GCC diagnostic warning "-Wdeprecated-declarations"
180#endif
181#endif
182#undef EXPORTLIBRARY