Documentation

addEntry

Add table entry to collection of table entries registered in code replacement table

Syntax

addEntry(hTable,entry)

Description

example

addEntry(hTable,entry)adds a function or operator entry that you have constructed to the collection of table entries registered in a code replacement table.

Examples

collapse all

This example shows how to use theaddEntryfunction to add an operator entry to a code replacement table after the entry is constructed.

hLib = RTW.TflTable;% Create an entry for addition of built-in uint8 data typeop_entry = RTW.TflCOperationEntry; op_entry.setTflCOperationEntryParameters(...'Key','RTW_OP_ADD',...'Priority', 90,...'SaturationMode','RTW_SATURATE_ON_OVERFLOW',...'RoundingModes', {'RTW_ROUND_UNSPECIFIED'},...'ImplementationName','u8_add_u8_u8',...'ImplementationHeaderFile','u8_add_u8_u8.h',...'ImplementationSourceFile','u8_add_u8_u8.c'); arg = hLib.getTflArgFromString('y1',“印尼t8'); arg.IOType ='RTW_IO_OUTPUT'; op_entry.addConceptualArg( arg ); arg = hLib.getTflArgFromString('u1',“印尼t8'); op_entry.addConceptualArg( arg ); arg = hLib.getTflArgFromString('u2',“印尼t8'); op_entry.addConceptualArg( arg ); op_entry.copyConceptualArgsToImplementation(); addEntry(hLib, op_entry);

Input Arguments

collapse all

ThehTableis a handle to a code replacement table previously returned byhTable= RTW.TflTable.

Example:hLib

Theentryis a handle to a function or operator entry that you have constructed after callinghEntry= RTW.TflCFunctionEntryorhEntry= RTW.TflCOperationEntry.

Example:op_entry

Introduced in R2007b

Was this topic helpful?