addMethod
R2026bClass: 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:
DescriptionDetailedDescriptionTemplateUniqueName
MATLAB® creates addMethod statements in the library definition
files. Publishers can modifying the values of the name,value
arguments.