Main Content


Class: clibgen.ClassDefinition
Namespace: clibgen

Add method to C++ class definition


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


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 the 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.

Version History

Introduced in R2019a