Main Content

getAllFunctionInterfaceTypes

クラス: coder.codedescriptor.CodeDescriptor
名前空間: coder.codedescriptor

関数インターフェイスの種類を返す

構文

allFunctionInterfaceTypes = getAllFunctionInterfaceTypes(codeDescObj)

説明

allFunctionInterfaceTypes = getAllFunctionInterfaceTypes(codeDescObj) は、利用可能な関数インターフェイスの種類のリストを返します。返されたリストはモデル固有ではありません。

入力引数

すべて展開する

生成されたコードに関する情報を取得する coder.codedescriptor.CodeDescriptor オブジェクト。

出力引数

すべて展開する

利用可能な関数インターフェイスの種類のリスト。

ビルドされる必要なモデルの coder.codedescriptor.CodeDescriptor オブジェクトを作成して、利用可能な関数インターフェイスの種類をリストします。

  1. CustomCodeComments モデルを開きます。

    openExample('CustomCodeComments')
  2. モデルをビルドします。

    slbuild('CustomCodeComments')

  3. 必要なモデルの coder.codedescriptor.CodeDescriptor オブジェクトを作成します。

    codeDescObj = coder.getCodeDescriptor('CustomCodeComments')
    

  4. 利用可能な関数インターフェイスの種類のリストを返します。

    allFunctionInterfaceTypes = getAllFunctionInterfaceTypes(codeDescObj)
    allFunctionInterfaceTypes の値は次のとおりです。
        {'Allocation'}
        {'Initialize'}
        {'Output'    }
        {'Update'    }
        {'Terminate' }

バージョン履歴

R2018a で導入