Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 8477e8483dc8b180b55d117f6080e0116866cdc4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
[module CppClassFriendDeclaration('http://www.eclipse.org/uml2/4.0.0/UML')/]
[import org::eclipse::papyrus::cpp::codegen::utils::GenUtils/]


[template public CppClassFriendDeclaration(friend : Classifier)]
friend class [friend.qualifiedName()/];
[/template]

[template public CppClassIncludeFriendDeclaration(class : Classifier)]
[for (getUsedClassifiers())]
	[if hasStereotype(C_Cpp::Friend) and (not hasStereotype(C_Cpp::NoCodeGen))]
		[CppClassFriendDeclaration()/]
	[/if]
[/for]
[/template]

Back to the top