NX Open C++ 参考指南 2406 v1.1
载入中...
搜索中...
未找到
Annotations_FrameBarCollection.hxx
1//--------------------------------------------------------------------------
2// Copyright 2024 Siemens
3//--------------------------------------------------------------------------
4// JA API的C++接口头文件
5//--------------------------------------------------------------------------
6//
7// 源文件:
8// Annotations_FrameBarCollection.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/Annotations_AddTicBuilder.hxx>
23#include <NXOpen/Annotations_FrameBarBuilder.hxx>
24#include <NXOpen/TaggedObjectCollection.hxx>
25#include <NXOpen/TaggedObject.hxx>
26#include <NXOpen/libnxopencpp_annotations_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 Annotations
37 {
39 }
40 namespace Annotations
41 {
43 }
44 namespace Annotations
45 {
46 class FrameBar;
47 }
48 namespace Annotations
49 {
50 class AddTicBuilder;
51 }
52 namespace Annotations
53 {
54 class BaseFrameBar;
55 }
56 namespace Annotations
57 {
58 class FrameBarBuilder;
59 }
60 namespace Annotations
61 {
62 class FrameBarCollectionImpl;
66 class NXOPENCPP_ANNOTATIONSEXPORT FrameBarCollection : public NXOpen::TaggedObjectCollection
67 {
68 private: FrameBarCollectionImpl * m_framebarcollection_impl;
73 public:
75 tag_t Tag() const;
76 public: ~FrameBarCollection();
78 //lint -sem(NXOpen::Annotations::FrameBarCollection::iterator::copy,initializer)
79 class iterator : public std::iterator<std::forward_iterator_tag, NXOpen::Annotations::FrameBar *>
80 {
81 public:
83 iterator() : m_context(nullptr), m_current(NULL_TAG)
84 {
85 // coverity[uninit_member]
86 } //lint !e1401 m_state is not initialized
87
88 explicit iterator(NXOpen::Annotations::FrameBarCollection *context) : m_context(context), m_current(NULL_TAG)
89 {
90 // coverity[uninit_member]
91 }//lint !e1401 m_state is not initialized
93
94 iterator(const iterator &other): m_context(nullptr), m_current(NULL_TAG)
95 {
96 copy(other);
97 }
98
99 iterator &operator =(const iterator &other)
100 {
101 if (&other != this)
102 copy(other);
103 return *this;
104 }
105
106 bool operator ==(const iterator &other) const
107 {
108 return m_current == other.m_current && m_context == other.m_context;
109 }
110
111 bool operator !=(const iterator &other) const
112 {
113 return !operator == (other);
114 }
115
116 NXOPENCPP_ANNOTATIONSEXPORT value_type operator * () const;
118 iterator & operator ++()
119 {
120 next();
121 return *this;
122 }
123
124 iterator operator ++(int)
125 {
126 iterator tmp(*this);
127 ++*this;
128 return tmp;
129 }
130 private:
131 void copy(const iterator &other)
132 {
133 m_context = other.m_context;
134 m_current = other.m_current;
135 for (int i = 0; i < sizeof(m_state)/sizeof(m_state[0]); i++)
136 m_state[i] = other.m_state[i];
137 }
138 NXOPENCPP_ANNOTATIONSEXPORT void next();
140 tag_t m_current;
141 unsigned int m_state[8];
142 };
143
147 {
148 return iterator(this);
149 }
150
154 (
156 );
161 (
163 );
168 (
169 const NXString & journalIdentifier
170 );
175 (
176 const char * journalIdentifier
177 );
178 }; //lint !e1712 default constructor not defined for class
179 }
180}
181#ifdef _MSC_VER
182#pragma warning(pop)
183#endif
184#ifdef __GNUC__
185#ifndef NX_NO_GCC_DEPRECATION_WARNINGS
186#pragma GCC diagnostic warning "-Wdeprecated-declarations"
187#endif
188#endif
189#undef EXPORTLIBRARY