addConceptualArg - Add conceptual argument to array of conceptual
arguments for code replacement table
entry - MATLAB ([original](https://www.mathworks.com/help/ecoder/ref/addconceptualarg.html)) ([raw](?raw))
Main Content
Add conceptual argument to array of conceptual arguments for code replacement table entry
Syntax
Description
addConceptualArg([hEntry](#d126e2324),[arg](#d126e2355))
adds a specified conceptual argument to the array of conceptual arguments for a code replacement table entry.
Examples
This example shows how theaddConceptualArg
function adds conceptual arguments for the output operand and the two input operands for an addition operation.
hLib = RTW.TflTable;
% Create 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 hEntry
is a handle to a code replacement table entry previously returned by instantiating a code replacement entry class, such as_`hEntry`_ = RTW.TflCFunctionEntry
or_`hEntry`_ = RTW.TflCOperationEntry
.
Example: op_entry
The arg
is the argument, such as returned by_`arg`_ = getTflArgFromString(_`name`_,_`datatype`_)
, added to the array of conceptual arguments for the code replacement table entry.
Example: 'hLib.getTflArgFromString('y1','uint8')'
Version History
Introduced in R2007b