clear_templateT_clear_templateClearTemplateClearTemplateclear_template (算子)

名称

clear_templateT_clear_templateClearTemplateClearTemplateclear_template — 模板内存的取消分配。

警告

clear_templateclear_templateClearTemplateClearTemplateClearTemplateclear_template 已过时,仅出于向后兼容性考虑而保留。新应用程序应改用基于形状或基于 NCC 的算子。

签名

clear_template( : : TemplateID : )

Herror T_clear_template(const Htuple TemplateID)

void ClearTemplate(const HTuple& TemplateID)

void HTemplate::ClearTemplate() const

static void HOperatorSet.ClearTemplate(HTuple templateID)

void HTemplate.ClearTemplate()

def clear_template(template_id: HHandle) -> None

描述

算子 clear_templateclear_templateClearTemplateClearTemplateClearTemplateclear_template deallocates the memory of a template which has been created by create_templatecreate_templateCreateTemplateCreateTemplateCreateTemplatecreate_template or create_template_rotcreate_template_rotCreateTemplateRotCreateTemplateRotCreateTemplateRotcreate_template_rot。After execution of the operator clear_templateclear_templateClearTemplateClearTemplateClearTemplateclear_template the template can no longer be used. The value of TemplateIDTemplateIDTemplateIDTemplateIDtemplateIDtemplate_id is not valid. However, the number can be used again by further calls of create_templatecreate_templateCreateTemplateCreateTemplateCreateTemplatecreate_template or create_template_rotcreate_template_rotCreateTemplateRotCreateTemplateRotCreateTemplateRotcreate_template_rot

执行信息

此算子修改后续输入参数的状态:

在执行此算子时,若该参数值需在多个线程间使用,则必须对其访问进行同步。

参数

TemplateIDTemplateIDTemplateIDTemplateIDtemplateIDtemplate_id (输入控制,状态被修改)  template HTemplate, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

模板编号。

结果

If the number of the template is valid, the operator clear_templateclear_templateClearTemplateClearTemplateClearTemplateclear_template 返回值 2 ( H_MSG_TRUE )。如有必要,则抛出异常。

可能的前趋

create_templatecreate_templateCreateTemplateCreateTemplateCreateTemplatecreate_template, create_template_rotcreate_template_rotCreateTemplateRotCreateTemplateRotCreateTemplateRotcreate_template_rot, read_templateread_templateReadTemplateReadTemplateReadTemplateread_template, write_templatewrite_templateWriteTemplateWriteTemplateWriteTemplatewrite_template

模块

匹配