Main Content

getAllFunctionInterfaceTypes

Class: coder.codedescriptor.CodeDescriptor
Package: coder.codedescriptor

Return function interface types

Syntax

allFunctionInterfaceTypes = getAllFunctionInterfaceTypes(codeDescObj)

Description

allFunctionInterfaceTypes = getAllFunctionInterfaceTypes(codeDescObj) returns a list of the function interface types. The returned list is not specific to any model.

Input Arguments

expand all

coder.codedescriptor.CodeDescriptor object for which you want to retrieve the information about generated code.

Output Arguments

expand all

A list of the available function interface types.

Examples

Create a coder.codedescriptor.CodeDescriptor object for the required model which is built, then list the available function interface types.

  1. Build the model.

    slbuild('rtwdemo_comments')

  2. Create a coder.codedescriptor.CodeDescriptor object for the required model.

    codeDescObj = coder.getCodeDescriptor('rtwdemo_comments')
    

  3. Return a list of available function interface types.

    allFunctionInterfaceTypes = getAllFunctionInterfaceTypes(codeDescObj)
    allFunctionInterfaceTypes has these values:
        {'Allocation'}
        {'Initialize'}
        {'Output'    }
        {'Update'    }
        {'Terminate' }

Introduced in R2018a