主要内容

RTW.TflCOperationEntryML 类

命名空间: RTW

自定义代码替换表运算条目

描述

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

classdef MyElemMultEntry < RTW.TflCOperationEntryML
    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

创建对象

描述

classdef MyElemMultEntry < RTW.TflCOperationEntryML 创建一个用于创建运算条目对象的子类。

版本历史记录

在 R2010a 中推出