Internal data visibility

Description

Specify whether to generate internal data structures such as Block I/O, DWork vectors, Run-time model, Zero-crossings, and continuous states as public, private, or protected data members of the C++ model class.

Category: Code Generation > Interface

Settings

Default: private

public

Generates internal data structures as public data members of the C++ model class.

private

Generates internal data structures as private data members of the C++ model class.

protected

Generates internal data structures as protected data members of the C++ model class.

Dependencies

  • This parameter appears only for ERT-based targets with Language set to C++ and Code interface packaging set to C++ class.

  • This parameter requires an Embedded Coder® license when generating code.

Command-Line Information

Parameter: InternalMemberVisibility
Type: character vector
Value: 'public' | 'private' | 'protected'
Default: 'private'

Recommended Settings

ApplicationSetting
DebuggingNo impact
TraceabilityNo impact
EfficiencyNo impact
Safety precaution

No recommendation

Related Topics