addMethod
Class: clibgen.ClassDefinition
Package: clibgen
Add method to C++ class definition
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:
MATLAB® creates addMethod
statements in .mlx
library definition files. Publishers can modifying the values of the
name,value
arguments. For more information, see Publish Help Text for MATLAB Interface to C++ Library, Define MATLAB Interface for C++ Library, and Use Function and Member Function Templates.