Main Content

Generate destructor

Whether to generate destructor for model configured to use C++ class interface

Model Configuration Pane: Code Generation / Interface

Description

The Generate destructor parameter specifies whether to generate a destructor fora C++ class interface.

Dependencies

To enable this parameter, set:

  • Language to C++

  • Code interface packaging to C++ class

Settings

On (default) | Off
On

Enables generation of a destructor for the C++ model class.

Off

Disables generation of a destructor for the C++ model class.

Recommended Settings

ApplicationSetting
DebuggingNo impact
TraceabilityNo impact
EfficiencyNo impact
Safety precaution

No recommendation

Programmatic Use

Parameter: GenerateDestructor
Type: character vector
Value: 'on' | 'off'
Default: 'on'

Version History

Introduced in R2008b