addEntry - Add table entry to collection of table entries
registered in code replacement table - MATLAB ([original](https://www.mathworks.com/help/ecoder/ref/addentry.html)) ([raw](?raw))
Main Content
Add table entry to collection of table entries registered in code replacement table
Syntax
Description
addEntry([hTable](#d126e2682),[entry](#d126e2709))
adds a code replacement entry that you have constructed to the collection of table entries registered in a code replacement table.
Examples
This example shows how to use theaddEntry
function 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 type op_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','uint8'); arg.IOType = 'RTW_IO_OUTPUT'; op_entry.addConceptualArg( arg );
arg = hLib.getTflArgFromString('u1','uint8'); op_entry.addConceptualArg( arg );
arg = hLib.getTflArgFromString('u2','uint8'); op_entry.addConceptualArg( arg );
op_entry.copyConceptualArgsToImplementation();
addEntry(hLib, op_entry);
Input Arguments
The hTable
is a handle to a code replacement table previously returned by _`hTable`_ = RTW.TflTable
.
Example: hLib
The entry
is a handle to a function, operator, or block entry that you have constructed by calling_`hEntry`_ = RTW.TflCFunctionEntry
, _`hEntry`_ = RTW.TflCOperationEntry
, or _`hEntry`_ = RTW.TflBlockEntry
.
Example: op_entry
Version History
Introduced in R2007b