Prev | Next |
C++ Conventions
Enterprise Architect supports round trip engineering of C++, including the Managed C++ and C++/CLI extensions, where these conventions are used.
Stereotypes
Stereotype |
Applies To |
See also |
---|---|---|
enumeration |
Class Corresponds To: An enumerated type. |
|
friend |
Operation Corresponds To: The 'friend' keyword. |
|
property get |
Operation Corresponds To: A 'read' property. |
|
property set |
Operation Corresponds To: A 'write' property. |
|
struct |
Class Corresponds To: A 'struct' type. |
|
typedef |
Class Corresponds To: A 'typedef' statement, where the parent is the original type name. |
|
alias |
Class Corresponds to an 'Alias' declaration, where the parent is the original type name. |
|
union |
Class Corresponds To: A union type. |
Tagged Values
Tag |
Applies To |
See also |
---|---|---|
afx_msg |
Operation Corresponds To: The afx_msg keyword. |
|
anonymous |
Class also containing the Tagged Value typedef Corresponds To: The name of this Class being only defined by the typedef statement. |
|
attribute_name |
Operation with stereotype property get or property set Corresponds To: The name of the variable behind this property. |
|
bitfield |
Attribute Corresponds To: The size, in bits, allowed for storage of this attribute. |
|
bodyLocation |
Operation Corresponds To: The location the method body is generated to; expected values are header, classDec or classBody. |
|
callback |
Operation Corresponds To: A reference to the CALLBACK macro. |
|
constexpr |
Attribute and Operation Corresponds To: The constexpr keyword. |
|
explicit |
Operation Corresponds To: The 'explicit' keyword. |
|
initializer |
Operation Corresponds To: A constructor initialization list. |
|
inline |
Attribute and Operation Corresponds To: The 'inline' keyword and inline generation of the member variable definition and method body. |
|
mutable |
Attribute Corresponds To: The 'mutable' keyword. |
|
scoped |
Class with stereotype enumeration Corresponds To: Either the 'class' or 'struct' keyword. |
|
throws |
Operation Corresponds To: The exceptions that are thrown by this method. |
|
typedef |
Class with stereotype other than 'typedef' Corresponds To: This Class being defined in a 'typedef' statement. |
|
typeSynonyms |
Class Corresponds To: The 'typedef' name and/or fields of this type. |
|
volatile |
Operation Corresponds To: The 'volatile' keyword. |
Other Conventions
- Namespaces are generated for each Package below a namespace root
- By Reference attributes correspond to a pointer to the type specified
- The Transient property of an attribute corresponds to the volatile keyword
- The Abstract property of an attribute corresponds to the virtual keyword
- The Const property of an operation corresponds to the const keyword, specifying a constant return type
- The Is Query property of an operation corresponds to the const keyword, specifying the method doesn't modify any fields
- The Pure property of an operation corresponds to a pure virtual method using the "= 0" syntax
- The Fixed property of a parameter corresponds to the const keyword