Main Content

getAllFunctionInterfaceTypes

Class: coder.codedescriptor.CodeDescriptor
Namespace: 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. Open the CustomCodeComments model.

    openExample('CustomCodeComments')
  2. Build the model.

    slbuild('CustomCodeComments')

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

    codeDescObj = coder.getCodeDescriptor('CustomCodeComments')
    

  4. Return a list of available function interface types.

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

Version History

Introduced in R2018a