|
NX Open C++ 参考指南 2406 v1.1
|
日期项构建器列表 更多...
#include <DateItemBuilderList.hxx>
Public 成员函数 | |
| void | Append (const std::vector< NXOpen::DateItemBuilder * > &objects) |
| void | Append (NXOpen::DateItemBuilder *object) |
| void | Clear () |
| void | Clear (NXOpen::ObjectList::DeleteOption deleteOption) |
| void | ClearIndex (int deleteIdx) |
| void | Erase (int index) |
| void | Erase (int index, NXOpen::ObjectList::DeleteOption deleteOption) |
| void | Erase (NXOpen::DateItemBuilder *obj) |
| void | Erase (NXOpen::DateItemBuilder *obj, NXOpen::ObjectList::DeleteOption deleteOption) |
| int | FindIndex (NXOpen::DateItemBuilder *obj) |
| NXOpen::DateItemBuilder * | FindItem (int index) |
| std::vector< NXOpen::DateItemBuilder * > | GetContents () |
| void | Insert (int location, NXOpen::DateItemBuilder *object) |
| int | Length () |
| void | MoveToBottom (int index) |
| void | MoveToTop (int index) |
| void | SetContents (const std::vector< NXOpen::DateItemBuilder * > &objects) |
| void | Swap (int index1, int index2) |
| void | Swap (NXOpen::DateItemBuilder *object1, NXOpen::DateItemBuilder *object2) |
| Public 成员函数 继承自 NXOpen::TaggedObject | |
| tag_t | Tag () const |
友元 | |
| class | _DateItemBuilderListBuilder |
日期项构建器列表
表示对象列表。
要创建此类的新实例,请使用 NXOpen::Part::CreateObjectList
于NX4.0.0版本创建。
| void NXOpen::DateItemBuilderList::Append | ( | const std::vector< NXOpen::DateItemBuilder * > & | objects | ) |
向列表追加一组对象
于NX4.0.0版本创建。
许可要求:无
| objects | 要追加的项 |
| void NXOpen::DateItemBuilderList::Append | ( | NXOpen::DateItemBuilder * | object | ) |
向列表追加一个对象
于NX5.0.0版本创建。
许可要求:无
| object | 要追加的项 |
| void NXOpen::DateItemBuilderList::Clear | ( | ) |
清空整个列表但不删除对象。调用者需负责管理这些对象。若部件关闭时这些对象未被使用或删除(即泄漏),将发生错误
于NX5.0.0版本创建。
许可要求:无
| void NXOpen::DateItemBuilderList::Clear | ( | NXOpen::ObjectList::DeleteOption | deleteOption | ) |
清空整个列表
于NX5.0.0版本创建。
许可要求:无
| deleteOption | 移除对象时是否删除它们 |
| void NXOpen::DateItemBuilderList::ClearIndex | ( | int | deleteIdx | ) |
删除指定索引处的项。列表的大小不变,但该索引处的项被设为NULL。
于NX4.0.0版本创建。
许可要求:无
| deleteIdx | 要删除的项的索引 |
| void NXOpen::DateItemBuilderList::Erase | ( | int | index | ) |
从列表中移除对象,但不删除该对象。 列表会移位,因此对象原来的位置不会留有空值。
于NX5.0.0版本创建。
许可要求:无
| index | 要从列表中移除的项的索引 |
| void NXOpen::DateItemBuilderList::Erase | ( | int | index, |
| NXOpen::ObjectList::DeleteOption | deleteOption ) |
从列表中删除指定位置的对象。列表会移位以消除原对象位置的空值。
于NX5.0.0版本创建。
许可要求:无
| index | 要从列表中移除的项的索引 |
| deleteOption | 是否删除对象 |
| void NXOpen::DateItemBuilderList::Erase | ( | NXOpen::DateItemBuilder * | obj | ) |
从列表中删除对象,但不删除该对象本身。列表会移位以消除原对象位置的空值。
于NX5.0.0版本创建。
许可要求:无
| obj | 要从列表中移除的对象 |
| void NXOpen::DateItemBuilderList::Erase | ( | NXOpen::DateItemBuilder * | obj, |
| NXOpen::ObjectList::DeleteOption | deleteOption ) |
从列表中删除对象。列表会移位以消除原对象位置的空值。
于NX5.0.0版本创建。
许可要求:无
| obj | 要从列表中移除的对象 |
| deleteOption | 是否删除对象 |
| int NXOpen::DateItemBuilderList::FindIndex | ( | NXOpen::DateItemBuilder * | obj | ) |
查找输入对象出现的索引。如果未找到,则返回-1。
| obj | 要查找索引的对象 |
| NXOpen::DateItemBuilder * NXOpen::DateItemBuilderList::FindItem | ( | int | index | ) |
返回输入索引处的对象。可能为NULL。
| index | 要返回的对象的索引 |
| std::vector< NXOpen::DateItemBuilder * > NXOpen::DateItemBuilderList::GetContents | ( | ) |
获取整个列表的内容
| void NXOpen::DateItemBuilderList::Insert | ( | int | location, |
| NXOpen::DateItemBuilder * | object ) |
在指定位置插入对象
于NX5.0.0版本创建。
许可要求:无
| location | 插入对象的位置 |
| object | 要插入的对象 |
| int NXOpen::DateItemBuilderList::Length | ( | ) |
返回列表的长度
于NX5.0.0版本创建。
许可要求:无
| void NXOpen::DateItemBuilderList::MoveToBottom | ( | int | index | ) |
将指定位置的对象移到列表底部。
于NX10.0.0版本创建。
许可要求:无
| index | 项的位置 |
| void NXOpen::DateItemBuilderList::MoveToTop | ( | int | index | ) |
将指定位置的对象移到列表顶部。
于NX10.0.0版本创建。
许可要求:无
| index | 项的位置 |
| void NXOpen::DateItemBuilderList::SetContents | ( | const std::vector< NXOpen::DateItemBuilder * > & | objects | ) |
设置整个列表的内容。这会覆盖列表之前的内容,但不会删除原列表中的任何对象。
于NX5.0.0版本创建。
许可要求:无
| objects | 列表内容 |
| void NXOpen::DateItemBuilderList::Swap | ( | int | index1, |
| int | index2 ) |
交换列表中两个对象的位置。第一个对象会被放置到第二个对象原来的位置,第二个对象会被放置到第一个对象原来的位置。
于NX5.0.0版本创建。
许可要求:无
| index1 | 第一个项的位置 |
| index2 | 第二个项的位置 |
| void NXOpen::DateItemBuilderList::Swap | ( | NXOpen::DateItemBuilder * | object1, |
| NXOpen::DateItemBuilder * | object2 ) |
交换列表中两个对象的位置。第一个对象会被放置到第二个对象原来的位置,第二个对象会被放置到第一个对象原来的位置。
于NX5.0.0版本创建。
许可要求:无
| object1 | 第一个项 |
| object2 | 第二个项 |