You can apply the stereotypes of the UML-to-C++ transformation profile to model elements in your source model to specify how the transformation generates C++ code. For example, when you apply the «cpp_operation» stereotype to an operation in the model, and set the isInline stereotype property to true, the transformation generates an inline operation.
| UML element | Effects |
|---|---|
| Class | The «cpp_typedef» stereotype has the highest
priority If you do not apply this stereotype, and if you apply both the «cpp_struct» and «cpp_union» stereotypes, the transformation generates a C++ union |
| Dependency | If you apply both the «cpp_dependency» and «cpp_friend» stereotypes to a UML dependency, the transformation processes both stereotypes and generates a friend relationship and a dependency |
| Operation | The transformation processes stereotypes in
the following order, from highest priority to lowest priority:
|