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 Define MATLAB Interface for C++ Library.

Introduced in R2019a