Supported C++ Elements for Code Reverse to UML

Code reverse is an essential part of the code development process. During the software development phase, you can modify the generated C++ code; changes are reflected into the UML source model. When reverting code from C++ to UML, the following elements are supported.

Element Status Description
Class A declaration of a class in C++, used to define a custom type with members and methods.
Class member function declaration Declaration of a member function inside a class, without its complete definition.
Class member function definition The full definition of a member function, including its body, usually outside the class.
Class member variable Variable defined within a class, representing an object's state or property.
Namespace declaration A declaration of a namespace to organize classes and functions under a common name scope.
#include preprocessor directive Preprocessor directive used to include header files or libraries.
Class constructor A special function is called when an object is created, used to initialize its members.
Class destructor A special function is called when an object is destroyed, used to release resources.
Global function declaration Declaration of a function defined outside any class.
Global function definition Full definition of a global function, including its body.
Alias (typedef & using) Declaration of a type alias using typedef or using to simplify complex types.
#define preprocessor directive Preprocessor directive that defines a macro or symbolic constant.
Global variable Variable defined outside of any class or function, accessible globally in the program.
Union A special data type that allows storing different types of data in the same memory location.
Struct A declaration of a structure in C++, used to group multiple variables under the same type.
Enum Declaration of an enumerated type, used to define a set of named constants.
@port An annotation used to identify that a variable is translated into a UML port.
@getter:<var> An annotation used to identify that an operation is a getter of a variable.
@setter:<var> An annotation used to identify that an operation is a setter of a port.
@agregation Not supported.
@member Not supported.
@association Not supported.
@classifierBehavior Not supported.