NX Open C++ 参考指南 2406 v1.1
载入中...
搜索中...
未找到
ObjectList.hxx
1//--------------------------------------------------------------------------
2// Copyright 2024 Siemens
3//--------------------------------------------------------------------------
4// JA API的C++接口头文件
5//--------------------------------------------------------------------------
6//
7// 源文件:
8// ObjectList.ja
9//
10// 生成工具:
11// apiwrap
12//
13// 警告:
14// 此文件为自动生成,请勿手动编辑
15//
16#pragma once
17#include <NXOpen/NXDeprecation.hxx>
18#include <vector>
19#include <NXOpen/NXString.hxx>
20#include <NXOpen/Callback.hxx>
21#include <NXOpen/TaggedObject.hxx>
22#include <NXOpen/libnxopencpp_exports.hxx>
23#ifdef _MSC_VER
24#pragma warning(push)
25#pragma warning(disable:4996)
26#endif
27#ifdef __GNUC__
28#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
29#endif
30namespace NXOpen
31{
32 class ObjectList;
33 class TaggedObject;
34 class _ObjectListBuilder;
35 class ObjectListImpl;
39 class NXOPENCPPEXPORT ObjectList : public NXOpen::TaggedObject
40 {
47 private: ObjectListImpl * m_objectlist_impl;
48 private: friend class _ObjectListBuilder;
49 protected: ObjectList();
50 public: ~ObjectList();
54 public: void Append
55 (
56 const std::vector<NXOpen::TaggedObject *> & objects
57 );
61 public: void Append
62 (
63 NXOpen::TaggedObject * object
64 );
68 public: int Length
69 (
70 );
74 public: void ClearIndex
75 (
76 int deleteIdx
77 );
82 public: int FindIndex
83 (
85 );
91 (
92 int index
93 );
98 public: void Erase
99 (
100 int index
101 );
106 public: void Erase
107 (
108 int index ,
110 );
115 public: void Erase
116 (
118 );
123 public: void Erase
124 (
127 );
132 public: void Clear
133 (
134 );
138 public: void Clear
139 (
141 );
145 public: std::vector<NXOpen::TaggedObject *> GetContents
146 (
147 );
152 public: void SetContents
153 (
154 const std::vector<NXOpen::TaggedObject *> & objects
155 );
161 public: void Swap
162 (
163 int index1 ,
164 int index2
165 );
171 public: void Swap
172 (
173 NXOpen::TaggedObject * object1 ,
174 NXOpen::TaggedObject * object2
175 );
179 public: void Insert
180 (
181 int location ,
182 NXOpen::TaggedObject * object
183 );
187 public: void MoveToTop
188 (
189 int index
190 );
194 public: void MoveToBottom
195 (
196 int index
197 );
198};
199}
200#ifdef _MSC_VER
201#pragma warning(pop)
202#endif
203#ifdef __GNUC__
204#ifndef NX_NO_GCC_DEPRECATION_WARNINGS
205#pragma GCC diagnostic warning "-Wdeprecated-declarations"
206#endif
207#endif
208#undef EXPORTLIBRARY