Visual Paradigm Desktop’s Instant Code Reverse for C++ enables developers to reverse engineer existing C++ source code into UML models. By analyzing C++ source files, the feature helps transform an existing implementation into visual class models and diagrams, making software structures, class relationships, and package organization easier to understand, document, and maintain.
Whether you are exploring a legacy C++ application, documenting an existing codebase, reviewing a software library, or understanding a system developed by another team, Instant Code Reverse provides a practical way to bring implementation-level information into a structured UML modeling environment.
What Is Instant Code Reverse for C++?
Instant Code Reverse for C++ is a reverse engineering feature in Visual Paradigm Desktop that converts information from existing C++ source code into UML model elements. It allows developers to import the structural information represented in C++ code into a Visual Paradigm project and use that information to create UML class diagrams and package diagrams.
Instead of manually examining source files and recreating their structures as UML elements, developers can use Instant Reverse to analyze the source code and generate corresponding model elements. The resulting UML model provides a visual representation that can be explored, organized, and further developed within Visual Paradigm.
What Does C++ Reverse Engineering Produce?
The feature supports two important reverse engineering outcomes:
- UML class models: Reconstruct class-related model elements from C++ source code, providing a foundation for understanding class structures and their relationships.
- UML package diagrams: Reconstruct package structures and relationships from source code to help visualize how the software is organized into logical groupings.
After reversing the source code, developers can form class diagrams by selecting the reversed classes and configuring which related elements and presentation details should appear.
Where Does It Fit in Visual Paradigm Desktop?
Instant Code Reverse belongs to Visual Paradigm’s code engineering capabilities. It provides a code-to-model workflow: existing implementation files are used as input, and UML model elements are produced as output.
It complements other code engineering facilities, including code generation and round-trip engineering. However, Instant Reverse should not be confused with continuous synchronization between source code and UML models. Its primary purpose is to reverse engineer a snapshot of source code into a model.
Why Use Instant Code Reverse for C++?
Instant Code Reverse is particularly valuable when developers need to understand an existing C++ implementation without manually reconstructing its architecture. It reduces the effort required to translate source-code structures into UML representations and makes structural information easier to communicate.
Understand Existing or Legacy C++ Systems
Legacy applications often contain years of accumulated implementation details. Their original design documentation may be missing, outdated, or inconsistent with the current implementation.
By reversing C++ source code into UML models, developers can obtain a visual starting point for investigating the system’s classes, relationships, and package organization. This is useful during system maintenance, modernization, migration, and technical assessment.
Reduce Manual Modeling Effort
Manually inspecting numerous C++ files and recreating their structures as UML elements can be time-consuming and error-prone. Instant Reverse automates much of this structural reconstruction, allowing developers to spend more time analyzing the resulting model rather than manually entering every class.
Improve Architecture Understanding
Source code reveals implementation details, but understanding how those details fit together can be difficult when working across many files. UML class and package diagrams provide a higher-level perspective that helps developers investigate inheritance, interface realization, associations, and containment relationships.
Support Technical Documentation
Reversed UML models can serve as a starting point for creating or updating technical documentation. Developers can select relevant classes, control the level of detail displayed, and organize the resulting diagrams to communicate important parts of the implementation.
Review and Improve Existing Implementations
A visual representation of an existing implementation can help software engineers identify areas that deserve further investigation, such as complex class dependencies, unexpected inheritance structures, or organizational weaknesses.
Explore and Reuse Existing C++ Libraries
Developers can reverse engineer a code library into UML classes to understand its structure before extending or integrating it. For example, a developer investigating a generic collection framework can use the resulting model to understand its class organization and identify suitable extension points.
What Happens Without Reverse Engineering?
Without an automated reverse engineering workflow, developers may need to rely on manual source-code inspection, handwritten documentation, or diagrams created independently of the implementation. These approaches introduce several practical challenges:
- Reconstructing class structures manually requires substantial time and effort.
- Relationships between classes can be overlooked when source files are reviewed individually.
- Manually created diagrams may not accurately reflect the actual implementation.
- Maintaining documentation becomes difficult as the codebase evolves.
- New developers may need considerable time to understand unfamiliar software architecture.
Instant Code Reverse helps reduce these challenges by providing an implementation-derived starting point for UML modeling.
Edition and Availability
Instant Code Reverse for C++ is a Visual Paradigm Desktop code engineering capability. Availability should be checked against the current Visual Paradigm Desktop edition comparison and the licensing terms applicable to the installed product version.
The official edition comparison identifies C++ round-trip engineering under Enterprise, Professional, and Standard editions. However, C++ round-trip engineering and the separately accessed Instant Reverse workflow are not necessarily interchangeable feature entitlements. The edition matrix does not provide a separate, unambiguous row specifically identifying Instant Reverse for C++.
Therefore, users should verify the exact availability of the Instant Reverse function in their edition before relying on a particular tier. Refer to the Visual Paradigm Editions Comparison or contact Visual Paradigm for confirmation.
How C++ Reverse Engineering Works
Instant Code Reverse follows a code-to-model workflow. Developers select C++ source files or a folder containing source files, configure the reverse engineering settings, and run the operation. Visual Paradigm then creates UML model elements based on the source code.
The Reverse Engineering Workflow
- Select the source code: Specify an individual C++ source file or a folder containing the source files to reverse engineer.
- Configure the reverse operation: Choose the C++ Source language, configure update behavior, select files to exclude if necessary, and specify the source encoding.
- Choose the destination model: Specify where the reversed model elements should be placed in the current Visual Paradigm project.
- Select the reverse engineering output: Choose the appropriate output, such as a UML class diagram or package diagram, where applicable.
- Execute Instant Reverse: Start the operation to analyze the source code and create the corresponding model elements.
- Form and configure diagrams: When the class diagram formation dialog appears, select the classes and configure the relationships and presentation options.
- Review the resulting model: Explore the reversed elements in the project and refine the diagrams to suit the documentation or analysis purpose.
Source Code Versus UML Model
The key distinction is that the source code is the input, while the UML model is the result of reverse engineering. Instant Reverse reconstructs structural model information from the source code; it does not simply display the original source files inside a diagram.
The resulting model can be used independently as a modeling artifact. Developers can then arrange the elements into diagrams and use Visual Paradigm’s modeling capabilities to further document the system.
Functionality Breakdown
The Instant Reverse workflow provides several configuration and modeling capabilities. Understanding these options helps users control what gets reversed, where the resulting elements are stored, and how the generated diagrams are presented.
Source Language Selection
The Language option specifies the programming language or source type that Visual Paradigm should reverse engineer. For this workflow, select C++ Source.
This selection tells Visual Paradigm to interpret the selected input as C++ source code rather than another supported source format.
Source Path Selection
The Path option specifies the location of the source code to be reversed. Users can provide the path to an individual source file or a folder containing the relevant source files.
When working with a larger codebase, selecting a folder can help process multiple source files together rather than reversing them individually.
Update Type: Handling Duplicate Classes
The Update Type option controls how Visual Paradigm handles classes that already exist in the destination model.
- Update duplicate class(es): Updates existing classes using information from the source code. This is useful when reversing updated source files into a model that already contains corresponding classes.
- Replace duplicate class(es): Discards existing duplicate classes and replaces them with classes reversed from the source code. This is useful when the source code should take precedence over the existing model elements.
The distinction is important when performing repeated reverse engineering operations. Update is intended to refresh existing elements, whereas Replace explicitly overwrites duplicate classes with reversed source information.
Exclude Source Files
The Exclude option allows users to specify files that should be skipped during the reverse engineering process.
This is useful when a source folder contains files that should not contribute to the resulting model. For example, developers may want to exclude unrelated source files or limit the reverse operation to a particular portion of a larger codebase.
Source File Encoding
The Encoding option specifies the character encoding used to read the source files.
Selecting the appropriate encoding is important when C++ source files contain non-ASCII characters, comments, or identifiers using characters outside the basic English character set. An incorrect encoding may cause text to be interpreted or displayed incorrectly.
Reverse to Model
The Reverse to Model option specifies the parent model in which reversed UML elements should be placed.
Users can choose an existing model or create a new model to organize the imported elements. This makes it possible to keep different codebases or development stages separated within the same Visual Paradigm project.
For example, a team may create separate models for legacy code and a new prototype, allowing both implementations to be represented within one project without unnecessarily mixing their model elements.
Advanced Options
Advanced Options provides additional configuration related to C++ Instant Reverse. These settings allow users to customize aspects of the reverse engineering operation beyond the main dialog options.
The exact settings available should be checked in the installed product version, as the main C++ Instant Reverse documentation does not enumerate every advanced setting.
Reverse to Diagram
The Reverse to Diagram option determines whether Visual Paradigm should generate a diagram from the reversed source code. The documented workflow supports class diagram and package diagram reverse engineering.
- Class Diagram: Creates a UML class diagram based on reversed classes and their selected relationships.
- Package Diagram: Creates UML packages and the relationships between them to represent the organization of the source code.
The choice depends on whether the primary goal is to understand the internal class structure or the broader package organization.
OK, Cancel, and Help
- OK: Starts the reverse engineering operation using the configured settings.
- Cancel: Closes the Instant Reverse dialog without starting the operation.
- Help: Opens the relevant product help information.
How to Reverse Engineer UML Classes from C++ Source Code
To reverse engineer C++ source files into UML classes, use the Instant Reverse command in Visual Paradigm Desktop. The resulting classes are stored in the selected model and can subsequently be used to form class diagrams.
Step-by-Step Instructions
- Open your Visual Paradigm Desktop project.
- Select Tools > Code > Instant Reverse… from the main toolbar/menu.
- In the Instant Reverse window, select C++ Source as the Language.
- Specify the path to an individual C++ source file or the folder containing the source files.
- Configure the Update Type to determine how duplicate classes should be handled.
- Specify any files that should be excluded from the reverse engineering operation.
- Configure the Encoding setting to match the source files.
- Choose the destination under Reverse to Model. If necessary, click the ellipsis button to open the Select Parent Model window, select an existing model, or create a new one using New Model. Click OK to confirm.
- Configure the Reverse to Diagram setting according to the intended output.
- Click OK to start reversing the C++ source code.
After the operation finishes, Visual Paradigm displays the Instant Reverse Form Diagram window when the corresponding dialog is enabled. You can use this window to select reversed classes and configure a UML class diagram.
What Happens After the Reverse Operation?
The reversed UML classes are added to the destination model. If class diagram formation is enabled, Visual Paradigm presents a dialog for selecting classes and configuring the resulting diagram.
You do not have to create a class diagram immediately after reversing the source code. If you cancel the diagram formation dialog, the reversed classes remain available in the project. You can find them through Model Explorer or Class Repository and form diagrams manually at a later time.
Generate a UML Class Diagram from Reversed C++ Code
After reversing C++ source code into UML classes, Visual Paradigm can form a class diagram using the reversed elements. Users can select which classes to include, decide which related elements should appear, and control the presentation of class attributes, operations, and types.
Select Class
The Select Class tab displays a tree of classes reversed from the source code.
Users must select at least one class to create a class diagram. Selecting a focused group of classes is recommended when working with a large codebase because including too many classes can make diagram formation computationally expensive and the resulting diagram difficult to read.
Form Diagram Options
Form Diagram Options determines which relationships and related elements are included in the generated class diagram.
- Show superclasses: Displays generalization relationships between selected classes and their superclasses or ancestors. Use this option to understand inheritance from parent classes.
- Show subclasses: Displays generalization relationships between selected classes and their subclasses or descendants. This helps reveal which classes inherit from the selected classes.
- Show suppliers (interface): Displays realization relationships between selected elements and their supplier interfaces. This helps identify interfaces implemented by classes.
- Show clients: Displays realization relationships between selected elements and their clients, meaning classes that implement the relevant interfaces.
- Show navigable classes: Displays association relationships between selected elements and their navigable target classes.
- Show non-navigable classes: Displays association relationships between selected elements and their non-navigable source classes.
- Show containers: Displays containment relationships between selected elements and their containers, such as packages.
- Show residents: Displays elements contained within the selected containers. The available scope choices include Single level only, All levels in single diagram, and All levels in sub diagrams.
- Show as containment relationships: Displays containment relationships as connectors in the generated diagram. The documentation specifically notes that containment relationships between classes are shown as connectors.
Understanding the Show Residents Options
The Show residents option controls how deeply Visual Paradigm displays the elements contained within selected containers.
- Single level only: Displays only the immediate residents at one level.
- All levels in single diagram: Displays residents from all levels in one diagram.
- All levels in sub diagrams: Displays residents from all levels using multiple diagrams, with each diagram showing one level.
These choices are particularly useful when working with nested package structures. A single-level view offers a more focused representation, while an all-level view provides a broader picture of the model organization.
Presentation Options
Presentation Options determines how attributes, operations, and type names are displayed in the generated class diagram.
Attribute Options
- Show all: Displays all attributes of the classes in the diagram.
- Public only: Displays only public attributes.
- Hide all: Hides all attributes.
- Initial values: Displays initial values of attributes.
Operation Options
- Show all: Displays all operations of the classes in the diagram.
- Public only: Displays only public operations.
- Hide all: Hides all operations.
- Initial values: Displays initial values of operations.
Type Options
- Fully-qualified: Displays fully qualified type names.
- Name only: Displays only the type name.
- Relative: Displays type names relative to the current class.
Complete the Class Diagram
- Review the classes listed in the Select Class tab.
- Select the classes you want to include in the diagram.
- Configure Form Diagram Options to include the required inheritance, realization, association, and containment relationships.
- Configure Presentation Options to control the visibility of attributes, operations, and type names.
- Click OK to form the class diagram.
The resulting diagram provides a visual representation of the selected classes and their configured relationships. You can use it as a starting point for further architecture analysis and documentation.
Generate a UML Package Diagram from C++ Source Code
Visual Paradigm also supports reverse engineering C++ source code into UML package diagrams. Unlike class diagrams, which focus on classes and their relationships, package diagrams provide a higher-level view of how software elements are organized into packages and how those packages relate to one another.
Step-by-Step Instructions
- Open your Visual Paradigm Desktop project.
- Select Tools > Code > Instant Reverse… from the main menu.
- Select C++ Source as the Language.
- Specify the path to the C++ source file or the folder containing the source files.
- Select Package Diagram for Reverse To.
- To specify where the reversed packages should be placed, click the ellipsis button beside Reverse to Model.
- In the Select Parent Model window, select an existing model or create a new model using New Model.
- Click OK to confirm the destination model.
- Click OK to start the reverse engineering operation.
What Does the Package Diagram Represent?
The generated package diagram contains UML packages and the relationships between them. It helps developers understand the logical organization of the reversed source code without requiring them to inspect every individual class.
Package diagrams are especially useful when documenting large C++ applications, investigating module dependencies, or communicating the overall organization of a software project.
Class Diagram Versus Package Diagram
| Aspect | Class Diagram | Package Diagram |
|---|---|---|
| Primary focus | Classes and their structural relationships | Packages and their relationships |
| Level of detail | Detailed structural view | Higher-level organizational view |
| Typical use | Understanding inheritance, interfaces, associations, attributes, and operations | Understanding package organization and dependencies |
| Best suited for | Class-level analysis and implementation documentation | Architectural organization and module-level documentation |
Manage Reversed C++ Models in Visual Paradigm
Reversing source code creates UML model elements that become part of the current Visual Paradigm project. Users can organize these elements within an appropriate parent model and access them even if they choose not to create diagrams immediately.
Choose an Appropriate Destination Model
The Reverse to Model option helps keep reversed elements organized. For example, a project may use separate models for a legacy implementation, a prototype, and a revised architecture.
This separation makes it easier to work with different versions or areas of a system without unnecessarily combining their elements in the same model hierarchy.
Locate Reversed Classes
After reverse engineering, users can find the reversed classes through Model Explorer or Class Repository. These project views allow users to access the model elements independently of any generated diagram.
Form Diagrams Later
Canceling the Instant Reverse Form Diagram dialog does not cancel or undo the completed reverse engineering operation. It only skips immediate diagram creation.
Users can subsequently locate the reversed classes and create diagrams manually when they are ready to visualize a particular part of the codebase.
Update or Replace Existing Classes
When repeating the reverse engineering process, choose the Update Type carefully. Update duplicate class(es) refreshes existing classes from the source, while Replace duplicate class(es) discards and replaces duplicate model elements. The appropriate choice depends on whether existing model elements should be updated or overwritten.
Configuration and Preferences for Instant Reverse
In addition to the options available in the Instant Reverse window, Visual Paradigm provides application-level preferences related to Instant Reverse.
Enable or Disable C++ Instant Reverse
The Instant Reverse Options settings include a C++ preference with three possible values:
- Not specified: The default setting. No explicit enablement or disablement is specified for C++ Instant Reverse.
- Enabled: Enables Instant Reverse for C++.
- Disabled: Disables Instant Reverse for C++.
This preference is useful when administrators or users need to control the availability of C++ reverse engineering within the application configuration.
Configure Text File Encoding
The Text File Encoding preference determines the default encoding used when reversing source files.
- System default: Uses the system’s default encoding for source files. This is the default setting.
- Other: Allows users to specify a particular encoding for source files.
When the source files use a specific character encoding, choosing the matching encoding helps ensure that their text content is interpreted correctly.
Show Instant Reverse Form Diagram Dialog After Instant Reverse
This preference determines whether Visual Paradigm displays the Instant Reverse Form Diagram dialog after completing a reverse engineering operation.
The default value is true, meaning the dialog is displayed after Instant Reverse so that users can form a diagram immediately.
When this option is disabled, the automatic diagram formation dialog is not displayed after the operation. The reversed model elements can still be accessed and used to create diagrams separately.
Practical Use Cases for C++ Instant Reverse
Documenting a Legacy C++ Application
A development team inherits a C++ application with incomplete technical documentation. The team can reverse the source files into UML classes, generate class diagrams for important parts of the application, and use package diagrams to document its overall organization.
Understanding an Unfamiliar Codebase
A developer joins an existing project and needs to understand how its classes interact. By reversing the relevant source files and selecting appropriate relationship options, the developer can obtain a visual representation of inheritance, interface realization, and associations.
Reviewing Class Hierarchies
When investigating an object-oriented C++ application, developers may need to understand which classes inherit from a particular base class. The Show superclasses and Show subclasses options help reveal these generalization relationships in the generated class diagram.
Analyzing Interface Implementations
When reviewing interface-based designs, developers can use Show suppliers (interface) and Show clients to display realization relationships. This helps identify interfaces and the classes associated with their implementations.
Exploring Software Dependencies
Developers can use association-related diagram options to visualize navigable and non-navigable classes. These views help investigate how classes are structurally connected.
Documenting Package Organization
When a C++ project is divided into multiple logical modules, package diagram reverse engineering provides a higher-level representation of the package structure and relationships.
Comparing a Legacy System with a New Prototype
A team developing a replacement for an existing application can reverse the legacy source code into one model and the prototype source code into another. Keeping the models separate makes it easier to review their respective structures and discuss architectural changes.
Best Practices and Considerations
Start with the Relevant Source Files
When working with a large codebase, consider reversing a focused group of files first. This makes it easier to validate the resulting model and understand the relationships before expanding the scope.
Use Exclude to Control Input Scope
Exclude files that are not relevant to the intended model. This helps prevent unrelated source files from contributing unnecessary elements to the reverse engineering result.
Select the Correct Encoding
Make sure the configured encoding matches the actual encoding of the source files, particularly when source code contains non-English text or special characters.
Choose Update Type Carefully
Before reversing into an existing model, consider whether you want to update duplicate classes or replace them. Replacing duplicate classes can discard existing model elements, so use this option deliberately.
Use Separate Models for Different Codebases
When working with legacy systems, prototypes, or multiple application modules, use appropriate destination models to maintain a clear project structure.
Generate Focused Diagrams
Do not automatically include every available class in one diagram. A large diagram can be expensive to generate and difficult to understand. Select the classes that are relevant to the current analysis and create additional diagrams for other areas.
Configure Relationship Visibility According to the Goal
Enable only the relationship types that help answer the question being investigated. For example, use inheritance-related options for class hierarchy analysis and association-related options for structural dependency analysis.
Distinguish Reversed Models from Original Source Code
Instant Reverse reconstructs model elements from source code. The resulting UML model is not automatically a continuously synchronized representation of the source files. If the source code changes, perform another appropriate reverse engineering operation when an updated model is required.
Review Generated Models Before Using Them as Documentation
Reverse engineering provides a useful structural starting point, but developers should review the resulting model and diagrams before treating them as definitive architectural documentation. Diagram selection, presentation settings, and the scope of the reversed source files all affect what is shown.
Troubleshooting Instant Code Reverse for C++
Instant Reverse Does Not Appear in the Tools Menu
Check whether Instant Reverse is enabled in the application configuration and whether C++ Instant Reverse is enabled. Also verify that the installed Visual Paradigm edition and license provide the required capability.
C++ Is Not Available as a Language Option
Check the C++ setting in Instant Reverse Options. If C++ Instant Reverse is disabled, enable it and reopen the Instant Reverse workflow. If the option remains unavailable, verify the installed product version and license entitlement.
Some Classes Are Missing from the Generated Model
Review the source path and Exclude settings to ensure that the relevant files are included in the reverse engineering operation. Also verify that the selected source files contain the class declarations that you expect to reverse.
If the problem persists, check the source format and whether the relevant C++ constructs are supported by the parser in your installed Visual Paradigm version.
Existing Classes Are Not Updated as Expected
Review the Update Type setting. Update duplicate class(es) and Replace duplicate class(es) have different behavior when duplicate classes are encountered. Also verify that the destination model is the one containing the existing classes.
Text Appears Incorrectly in Reversed Elements
Check the Encoding setting in the Instant Reverse dialog and the Text File Encoding preference. Select an encoding that matches the original source files.
The Class Diagram Is Too Large or Difficult to Read
Reduce the number of selected classes and review the Form Diagram Options. Disable unnecessary relationship types, hide attributes or operations that are not relevant, and use additional diagrams for separate parts of the system.
No Class Diagram Appears After Reverse Engineering
Check whether the Instant Reverse Form Diagram dialog is enabled in the application preferences. If the dialog was canceled or disabled, the reversed classes may still exist in Model Explorer or Class Repository. Locate the classes and create a diagram manually.
Reverse Engineering Does Not Produce the Expected Package Diagram
Verify that Package Diagram was selected for Reverse To and that the source path points to the intended C++ files. Also confirm the destination model selection.
Reverse Engineering Takes a Long Time
Large source folders and extensive model structures may require more processing. Consider narrowing the source scope, excluding unrelated files, and forming diagrams from a smaller selection of classes.
Frequently Asked Questions About Instant Code Reverse for C++
What is Instant Code Reverse for C++ in Visual Paradigm?
Instant Code Reverse for C++ is a Visual Paradigm Desktop feature that analyzes C++ source files and reconstructs UML model elements. It supports generating UML class models and package diagrams from existing C++ source code.
What is the purpose of C++ reverse engineering?
C++ reverse engineering converts existing source-code structures into visual UML models. Its purpose is to help developers understand, analyze, document, and review software that has already been implemented.
Can Visual Paradigm generate UML class diagrams from C++ code?
Yes. Visual Paradigm can reverse engineer C++ source files into UML classes and then form class diagrams. Users can select the classes to include and configure which relationships, attributes, operations, and type names appear in the diagram.
Can Visual Paradigm generate package diagrams from C++ code?
Yes. Select Package Diagram for the Reverse To option in the Instant Reverse workflow. Visual Paradigm will reverse engineer UML packages and their relationships from the specified C++ source files.
Which C++ files can I reverse engineer?
The documented Instant Reverse workflow accepts a C++ source file or a folder containing C++ source files. The exact source constructs and file formats supported should be verified against the parser capabilities of the installed Visual Paradigm version.
Can I reverse engineer an entire C++ project?
You can specify a folder containing the C++ source files to reverse engineer multiple files together. For large projects, it is advisable to select relevant source folders and exclude unrelated files.
Can I reverse engineer only one C++ source file?
Yes. Specify the path of an individual source file instead of a folder in the Instant Reverse dialog.
What is the difference between Update duplicate classes and Replace duplicate classes?
Update duplicate class(es) updates existing classes using the source code. Replace duplicate class(es) discards existing duplicate classes and replaces them with classes reversed from the source. Choose the option according to whether you want to update or overwrite existing model elements.
What does the Exclude option do?
Exclude specifies source files that should be skipped during the reverse engineering operation. It helps limit the input to relevant C++ files.
What does Reverse to Model mean?
Reverse to Model specifies the parent model in the Visual Paradigm project where reversed classes or packages should be stored. Users can select an existing model or create a new one.
Can I organize reversed classes into a separate model?
Yes. Use the ellipsis button beside Reverse to Model to open the Select Parent Model window. Select an existing model or click New Model to create a separate destination.
What is the difference between a UML class diagram and a UML package diagram?
A UML class diagram focuses on classes, their attributes, operations, and structural relationships. A UML package diagram focuses on the organization of packages and the relationships between them.
Can I choose which classes appear in the generated class diagram?
Yes. The Select Class tab lists the reversed classes. Select at least one class to form the diagram. You can choose a focused subset rather than including every reversed class.
What does Show superclasses do?
Show superclasses displays generalization relationships between the selected classes and their ancestor classes. It helps users understand which parent classes the selected classes inherit from.
What does Show subclasses do?
Show subclasses displays generalization relationships between the selected classes and their descendant classes. It helps users identify classes that inherit from the selected classes.
What does Show suppliers (interface) do?
Show suppliers (interface) displays realization relationships between selected elements and their supplier interfaces. It helps reveal the interfaces associated with class implementations.
What does Show clients do?
Show clients displays realization relationships between selected elements and their client classes, meaning the classes that implement the relevant interfaces.
What is the difference between Show navigable classes and Show non-navigable classes?
Show navigable classes displays association relationships to navigable target classes, while Show non-navigable classes displays association relationships to non-navigable source classes.
What does Show containers do?
Show containers displays containment relationships between selected elements and their containers, such as UML packages.
What does Show residents do?
Show residents displays elements contained within selected containers. Users can choose to display only one level, all levels in a single diagram, or all levels in multiple sub-diagrams.
Can I hide attributes and operations in the generated class diagram?
Yes. Use Attribute options and Operation options under Presentation Options. Both provide Show all, Public only, Hide all, and Initial values choices.
Can I display only public attributes and operations?
Yes. Select Public only for Attribute options and Operation options to display only public attributes and public operations in the generated class diagram.
Can I display fully qualified type names?
Yes. The Type options setting provides Fully-qualified, Name only, and Relative choices for controlling how type names are displayed.
What happens if I cancel the Form Diagram dialog?
Canceling the Instant Reverse Form Diagram dialog only skips immediate diagram creation. The reversed classes remain in the Visual Paradigm project and can be found in Model Explorer or Class Repository for later diagram creation.
Can I prevent the Form Diagram dialog from appearing after reverse engineering?
Yes. You can disable the Show Instant Reverse Form Diagram dialog after Instant Reverse preference. The default value is true.
Does Instant Reverse automatically synchronize UML models with C++ source code?
No. Instant Reverse is a reverse engineering operation that reconstructs UML model elements from source code. It should not be confused with continuous, automatic synchronization between source files and UML models.
Can I reverse updated C++ source code into an existing model?
Yes. You can run Instant Reverse again and choose the appropriate Update Type to handle duplicate classes. Update duplicate class(es) is intended to update existing classes using the source, while Replace duplicate class(es) replaces duplicate classes with reversed source information.
Does Instant Reverse generate C++ source code from UML?
No. Instant Reverse performs the code-to-model direction: it reconstructs UML model elements from existing C++ source code. Generating C++ source code from UML is a separate code generation capability.
Is C++ Instant Reverse the same as C++ Round-Trip Engineering?
No. Instant Reverse is used to reconstruct UML model elements from a snapshot of C++ source code. C++ Round-Trip Engineering is a separate code engineering workflow that supports generating C++ code from UML and reversing C++ code back into a model as part of a round-trip development process.
Which Visual Paradigm edition supports Instant Code Reverse for C++?
The current edition comparison lists C++ round-trip engineering for Enterprise, Professional, and Standard editions. However, users should verify Instant Reverse for C++ as a separate capability against the latest edition matrix and their installed version, because the comparison does not explicitly identify its entitlement in a dedicated row.
Why are some classes or relationships missing from my diagram?
Check the source path, excluded files, selected classes, and Form Diagram Options. The generated diagram displays the selected classes and the relationship types enabled in the configuration. A relationship may exist in the model but remain hidden if its corresponding display option is not selected.
How can I create a smaller, more readable class diagram?
Select fewer classes, disable unnecessary relationship options, and hide attributes or operations that are not relevant to the analysis. For large systems, create several focused diagrams rather than one diagram containing the entire model.
Summary
Visual Paradigm Desktop’s Instant Code Reverse for C++ provides a practical way to transform existing C++ source code into UML models. By automating the reconstruction of classes and package structures, it helps developers understand existing implementations, document software architecture, review class relationships, and explore unfamiliar codebases.
Its configurable reverse engineering workflow supports source selection, duplicate-class handling, file exclusion, character encoding, destination model selection, and diagram generation. The class diagram formation options provide additional control over relationship visibility and the presentation of attributes, operations, and types.
Whether the objective is to document a legacy application, investigate a class hierarchy, explore a software library, or understand package organization, Instant Code Reverse provides a useful bridge between C++ implementation and UML-based software modeling.
VISUAL PARADIGM