주요 콘텐츠

addMethod

R2026b

Class: clibgen.ClassDefinition
Namespace: clibgen

(Not recommended) Add method to C++ class definition

addMethod is not recommended. For more information on updating your code, see Version History.

Syntax

definition = addMethod(classDef,cppsignature,name,value)

Description

definition = addMethod(classDef,cppsignature,name,value) adds a clibgen.MethodDefinition object to class definition classDef, where cppsignature is the MethodDefinition property CPPSignature. The name,value arguments set these MethodDefinition properties:

  • Description

  • DetailedDescription

  • TemplateUniqueName

MATLAB® creates addMethod statements in the library definition files. Publishers can modifying the values of the name,value arguments.

Version History

Introduced in R2019a

collapse all