insert_objinsert_objInsertObjInsertObjinsert_obj (算子)
名称
insert_objinsert_objInsertObjInsertObjinsert_obj — 将对象插入到图标对象元组中。
签名
void InsertObj(const HObject& Objects, const HObject& ObjectsInsert, HObject* ObjectsExtended, const HTuple& Index)
HObject HObject::InsertObj(const HObject& ObjectsInsert, Hlong Index) const
HImage HImage::InsertObj(const HImage& ObjectsInsert, Hlong Index) const
HRegion HRegion::InsertObj(const HRegion& ObjectsInsert, Hlong Index) const
HXLD HXLD::InsertObj(const HXLD& ObjectsInsert, Hlong Index) const
HXLDCont HXLDCont::InsertObj(const HXLDCont& ObjectsInsert, Hlong Index) const
HXLDPoly HXLDPoly::InsertObj(const HXLDPoly& ObjectsInsert, Hlong Index) const
HXLDPara HXLDPara::InsertObj(const HXLDPara& ObjectsInsert, Hlong Index) const
HXLDModPara HXLDModPara::InsertObj(const HXLDModPara& ObjectsInsert, Hlong Index) const
HXLDExtPara HXLDExtPara::InsertObj(const HXLDExtPara& ObjectsInsert, Hlong Index) const
static void HOperatorSet.InsertObj(HObject objects, HObject objectsInsert, out HObject objectsExtended, HTuple index)
HObject HObject.InsertObj(HObject objectsInsert, int index)
HImage HImage.InsertObj(HImage objectsInsert, int index)
HRegion HRegion.InsertObj(HRegion objectsInsert, int index)
HXLD HXLD.InsertObj(HXLD objectsInsert, int index)
HXLDCont HXLDCont.InsertObj(HXLDCont objectsInsert, int index)
HXLDPoly HXLDPoly.InsertObj(HXLDPoly objectsInsert, int index)
HXLDPara HXLDPara.InsertObj(HXLDPara objectsInsert, int index)
HXLDModPara HXLDModPara.InsertObj(HXLDModPara objectsInsert, int index)
HXLDExtPara HXLDExtPara.InsertObj(HXLDExtPara objectsInsert, int index)
描述
insert_objinsert_objInsertObjInsertObjInsertObjinsert_obj inserts the elements of ObjectsInsertObjectsInsertObjectsInsertObjectsInsertobjectsInsertobjects_insert at
IndexIndexIndexIndexindexindex into the object tuple ObjectsObjectsObjectsObjectsobjectsobjects and returns the
result in ObjectsExtendedObjectsExtendedObjectsExtendedObjectsExtendedobjectsExtendedobjects_extended。
IndexIndexIndexIndexindexindex must contain a single integer value. Note that, in contrast
to control tuples, indices of object tuple elements start at 1. The length
of ObjectsExtendedObjectsExtendedObjectsExtendedObjectsExtendedobjectsExtendedobjects_extended is the sum of the length of ObjectsObjectsObjectsObjectsobjectsobjects
and ObjectsInsertObjectsInsertObjectsInsertObjectsInsertobjectsInsertobjects_insert.
It is allowed to mix images, regions and XLDs in ObjectsObjectsObjectsObjectsobjectsobjects and
ObjectsInsertObjectsInsertObjectsInsertObjectsInsertobjectsInsertobjects_insert。
执行信息
- 多线程类型:可重入(与非独占算子并行运行)。
- 多线程作用域:全局(可从任何线程调用)。
- 未采用并行化处理。
参数
ObjectsObjectsObjectsObjectsobjectsobjects (输入对象) object(-array) → objectHObjectHObjectHObjectHobject
Input object tuple.
ObjectsInsertObjectsInsertObjectsInsertObjectsInsertobjectsInsertobjects_insert (输入对象) object(-array) → objectHObjectHObjectHObjectHobject
Object tuple to insert.
ObjectsExtendedObjectsExtendedObjectsExtendedObjectsExtendedobjectsExtendedobjects_extended (输出对象) object(-array) → objectHObjectHObjectHObjectHobject *
Extended object tuple.
IndexIndexIndexIndexindexindex (输入控制) number → HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)
Index to insert objects.
示例(HDevelop)
gen_image_const (Image1, 'byte', 1, 1)
gen_image_const (Image3, 'byte', 3, 3)
concat_obj (Image1, Image3, Images)
gen_image_const (Image, 'byte', 2, 2)
insert_obj (Images, Image, Images, 2)
复杂度
Typical runtime complexity: O(|ObjectsObjectsObjectsObjectsobjectsobjects| + |ObjectsInsertObjectsInsertObjectsInsertObjectsInsertobjectsInsertobjects_insert|).
可能的前趋
count_objcount_objCountObjCountObjCountObjcount_obj
可能的后继
count_objcount_objCountObjCountObjCountObjcount_obj
替代
concat_objconcat_objConcatObjConcatObjConcatObjconcat_obj
另见
count_objcount_objCountObjCountObjCountObjcount_obj,
select_objselect_objSelectObjSelectObjSelectObjselect_obj,
copy_objcopy_objCopyObjCopyObjCopyObjcopy_obj,
remove_objremove_objRemoveObjRemoveObjRemoveObjremove_obj
模块
基础