Include duplicates data layout diagram
authorColin Clark <colin.clark@cclark.uk>
Thu, 23 Jun 2022 13:37:29 +0000 (14:37 +0100)
committerColin Clark <colin.clark@cclark.uk>
Thu, 23 Jun 2022 13:37:29 +0000 (14:37 +0100)
A duplicates data diagram in the doxygen-created documents

doc/diagrams.c

index 2e5bf8a..03ba92b 100644 (file)
   * @file
   * @ref image_load_overview "Image Load Overview"
   */
+
+/**
+ * @page diagrams Diagrams
+ * @section duplicates_data_layout Duplicates Data Layout
+ *
+ * #_DupeWindow  #_DupeItem #_DupeMatch
+ *
+ * @startuml
+ * 
+ * database DupeWindow [
+ * <b>DupeWindow->list</b>
+ * ====
+ * DupeItem
+ * ----
+ * DupeItem
+ * ----
+ * DupeItem
+ * ----
+ * .
+ * .
+ * .
+ * ]
+ * note left
+ * One entry for each file
+ * dropped onto the dupes window
+ * end note
+ * 
+ * card DupeItem [
+ * <b>DupeItem</b>
+ * (parent)
+ * ====
+ * .
+ * .
+ * .
+ * ----
+ * fd
+ * ----
+ * group (list)
+ * ----
+ * group_rank
+ * ----
+ * .
+ * .
+ * .
+ * ]
+ * note right
+ * group_rank: (sum of all child ranks) / n
+ * end note
+ *
+ * database group [
+ * <b>group (list)</b>
+ * (children)
+ * ====
+ * DupeMatch
+ * ----
+ * DupeMatch
+ * ----
+ * DupeMatch
+ * ----
+ * .
+ * .
+ * .
+ * ]
+ * note left
+ * One entry for each file
+ * matching parent
+ * end note
+ * 
+ * card DupeMatch [
+ * <b>DupeMatch</b>
+ * ====
+ * DupeItem
+ * ----
+ * rank
+ * ----
+ * ]
+ *
+ * DupeWindow -r-> DupeItem
+ * group -r-> DupeMatch
+ * DupeItem --> group
+ * @enduml
+ */
+
+