Contenido principal

addConstructor

R2026b

Class: clibgen.ClassDefinition
Namespace: clibgen

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

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

Syntax

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

Description

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

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

Version History

Introduced in R2019a

collapse all