主要内容

RTW.TflCFunctionEntryML 类

命名空间: RTW

自定义代码替换表函数条目

描述

表示自定义代码替换函数条目。从 RTW.TflCFunctionEntryML 派生子类,并在子类中实现 do_match 方法,该方法指定代码替换条目的匹配准则。

classdef TflCustomFunctionEntry < RTW.TflCFunctionEntryML
  methods
    function ent = do_match(hThis, ...
        hCSO, ... %#ok
        targetBitPerChar, ... %#ok
        targetBitPerShort, ... %#ok
        targetBitPerInt, ... %#ok
        targetBitPerLong, ... %#ok
        targetBitPerLongLong) %#ok

        % Implement custom do_match function

      end
    end
  end
end

创建对象

描述

classdef TflCustomFunctionEntry < RTW.TflCFunctionEntryML 创建一个用于创建自定义函数条目对象的子类。

版本历史记录

在 R2010a 中推出