Skip to content

Commit 40a0551

Browse files
author
Damian Rouson
committed
doc: add PlantUML class diagram for example
1 parent ceb08f5 commit 40a0551

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

doc/class_diagram.puml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
@startuml
2+
Title Classes in the Derived-Type Diagnostic Data Example
3+
4+
hide empty members
5+
6+
class stuff_t{
7+
z_ : complex
8+
defined_ : logical
9+
z() : complex
10+
defined() : logical
11+
stuff_t(z : complex) : stuff_t
12+
}
13+
note right: context stuff_t(z : complex)\npost: stuff_t%defined()\n\ncontext z() \npre: self%defined()
14+
15+
16+
abstract class characterizable_t{
17+
{abstract} as_character() : character(len=:), allocatable
18+
}
19+
20+
class characterizable_stuff_t{
21+
stuff_ : stuff_t
22+
as_character() : character(len=:), allocatable
23+
characterizable_t(stuff_t) : characterizable_stuff_t
24+
}
25+
26+
characterizable_stuff_t *-down- stuff_t : aggregates
27+
characterizable_stuff_t -up-|> characterizable_t : implements
28+
29+
@enduml

0 commit comments

Comments
 (0)